Interface MonitoringMetric
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MonitoringMetric.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.189Z")
@Stability(Experimental)
public interface MonitoringMetric
extends software.amazon.jsii.JsiiSerializable
(experimental) 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 software.amazon.awscdk.services.mediaconnect.alpha.*;
import software.amazon.awscdk.*;
MonitoringMetric monitoringMetric = MonitoringMetric.builder()
.state(State.ENABLED)
.threshold(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMonitoringMetricstatic final classAn implementation forMonitoringMetric -
Method Summary
Modifier and TypeMethodDescriptionstatic MonitoringMetric.Builderbuilder()getState()(experimental) Whether the metric is enabled or disabled.(experimental) Threshold in seconds that triggers the metric's alert.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getState
(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.
-
getThreshold
(experimental) Threshold in seconds that triggers the metric's alert.Valid range: 10–60 seconds.
-
builder
- Returns:
- a
MonitoringMetric.BuilderofMonitoringMetric
-