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();
 
  • Method Details

    • getState

      @Stability(Experimental) @NotNull State 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

      @Stability(Experimental) @NotNull Duration getThreshold()
      (experimental) Threshold in seconds that triggers the metric's alert.

      Valid range: 10–60 seconds.

    • builder

      @Stability(Experimental) static MonitoringMetric.Builder builder()
      Returns:
      a MonitoringMetric.Builder of MonitoringMetric