MetricDefinition
¶
Source code in docs_src/capo_connect/types/metric_definition.py
arn
instance-attribute
¶
arn: ARN
The Amazon Resource Name (ARN) of the metric. May be qualified with $SAVED or $LATEST.
created_time
instance-attribute
¶
created_time: NotRequired[Timestamp]
The timestamp of when the metric was created.
created_user
instance-attribute
¶
created_user: NotRequired[CreatedByInfo]
The user that created the metric. The creator for metrics created through the CreateMetric API will be Amazon Connect API.
creation_method
instance-attribute
¶
creation_method: NotRequired[MetricCreationMethod]
The method used to create the metric. Valid values: SERVICE_LEVEL_BUILDER (created with the guided service-level experience) | METRIC_BUILDER (created with the free-form metric builder).
default_stat
instance-attribute
¶
default_stat: NotRequired[DefaultStat]
The default stat aggregation for the metric.
description
instance-attribute
¶
description: NotRequired[MetricDescription]
The description of the metric.
effective_time
instance-attribute
¶
effective_time: NotRequired[Timestamp]
The earliest time that can be queried for this metric.
groupings
instance-attribute
¶
groupings: MetricGroupingList
The groupings available for this metric.
last_modified_region
instance-attribute
¶
last_modified_region: NotRequired[RegionName]
The region where the metric was last modified.
last_modified_time
instance-attribute
¶
last_modified_time: NotRequired[Timestamp]
The timestamp of when the metric was last modified.
last_modified_user
instance-attribute
¶
last_modified_user: NotRequired[CreatedByInfo]
The user that last modified the metric. For modifications made through the API, this will be Amazon Connect API.
metric_calculation
instance-attribute
¶
metric_calculation: NotRequired[MetricCalculation]
The calculation definition for the metric.
positive_trend_indicator
instance-attribute
¶
positive_trend_indicator: NotRequired[TrendIndicator]
How an increase in the metric value should be interpreted. Valid values: POSITIVE, NEUTRAL, NEGATIVE.
primary_event_source
instance-attribute
¶
primary_event_source: NotRequired[PrimaryEventSource]
The primary event source for the metric data.
primary_event_source_effective_timestamp_type
instance-attribute
¶
primary_event_source_effective_timestamp_type: NotRequired[
PrimaryEventSourceEffectiveTimestampType
]
The timestamp type that determines where the metric appears on a time series.
refresh_rate
instance-attribute
¶
refresh_rate: RefreshRate
The minimum interval, in seconds, between data refreshes for this metric.
status
instance-attribute
¶
status: NotRequired[MetricStatus]
The publish status of the metric. Valid values: PUBLISHED | SAVED.
supported_stats
instance-attribute
¶
supported_stats: NotRequired[SupportedStatsList]
The stat aggregations available for this metric.
supports_custom_calculation
instance-attribute
¶
supports_custom_calculation: SupportsCustomCalculation
Specifies whether the metric can be used as a component of custom metrics.
supports_preaggregate_calculation
instance-attribute
¶
supports_preaggregate_calculation: SupportsPreaggregateCalculation
Specifies whether the metric can be used inside aggregating statistical functions (SUM, AVG, etc.) in custom metric calculations.
tags
instance-attribute
¶
tags: NotRequired[TagMap]
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
type
instance-attribute
¶
type: MetricType
The type of the metric. Valid values: AWS_MANAGED | CUSTOMER_MANAGED.