MonitoringMetric
- class aws_cdk.aws_mediaconnect_alpha.MonitoringMetric(*, state, threshold)
Bases:
object(experimental) Configures a source monitoring metric.
- Parameters:
state (
State) – (experimental) Whether the metric is enabled or disabled. The threshold is persisted by the service either way, so you can toggle the metric on and off without losing the threshold value.threshold (
Duration) – (experimental) Threshold in seconds that triggers the metric’s alert. Valid range: 10–60 seconds.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_mediaconnect_alpha as mediaconnect_alpha import aws_cdk as cdk monitoring_metric = mediaconnect_alpha.MonitoringMetric( state=mediaconnect_alpha.State.ENABLED, threshold=cdk.Duration.minutes(30) )
Attributes
- state
(experimental) Whether the metric is enabled or disabled.
The threshold is persisted by the service either way, so you can toggle the metric on and off without losing the threshold value.
- Stability:
experimental
- threshold
(experimental) Threshold in seconds that triggers the metric’s alert.
Valid range: 10–60 seconds.
- Stability:
experimental