interface MonitoringMetric
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.MonitoringMetric |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#MonitoringMetric |
Java | software.amazon.awscdk.services.mediaconnect.alpha.MonitoringMetric |
Python | aws_cdk.aws_mediaconnect_alpha.MonitoringMetric |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป MonitoringMetric |
Configures a source monitoring metric.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
import * as cdk from 'aws-cdk-lib';
const monitoringMetric: mediaconnect_alpha.MonitoringMetric = {
state: mediaconnect_alpha.State.ENABLED,
threshold: cdk.Duration.minutes(30),
};
Properties
| Name | Type | Description |
|---|---|---|
| state | State | Whether the metric is enabled or disabled. |
| threshold | Duration | Threshold in seconds that triggers the metric's alert. |
state
Type:
State
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
Type:
Duration
Threshold in seconds that triggers the metric's alert.
Valid range: 10โ60 seconds.

.NET
Go
Java
Python
TypeScript (