Interface PromQLAlarmProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PromQLAlarmProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-13T16:55:05.344Z")
@Stability(Stable)
public interface PromQLAlarmProps
extends software.amazon.jsii.JsiiSerializable
Properties for creating a PromQL Alarm.
Example:
PromQLAlarm.Builder.create(this, "HighLatencyAlarm")
.alarmDescription("P99 latency exceeds 500ms for 5 minutes")
.query("histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m])) > 0.5")
.evaluationInterval(Duration.seconds(60))
.pendingPeriod(Duration.seconds(300))
.recoveryPeriod(Duration.seconds(600))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPromQLAlarmPropsstatic final classAn implementation forPromQLAlarmProps -
Method Summary
Modifier and TypeMethodDescriptionstatic PromQLAlarmProps.Builderbuilder()default BooleanWhether the actions for this alarm are enabled.default StringDescription for the alarm.default StringName of the alarm.The frequency at which the alarm is evaluated.default DurationThe duration that a contributor must continuously breach before the contributor transitions to ALARM state.getQuery()The PromQL query that the alarm evaluates.default DurationThe duration that a contributor must continuously not be breaching before it transitions back to the OK state.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEvaluationInterval
The frequency at which the alarm is evaluated.Must be between 10 seconds and 3600 seconds.
-
getQuery
The PromQL query that the alarm evaluates. -
getActionsEnabled
Whether the actions for this alarm are enabled.Default: true
-
getAlarmDescription
Description for the alarm.Default: - No description
-
getAlarmName
Name of the alarm.Default: - Automatically generated name
-
getPendingPeriod
The duration that a contributor must continuously breach before the contributor transitions to ALARM state.Default: - No pending period
-
getRecoveryPeriod
The duration that a contributor must continuously not be breaching before it transitions back to the OK state.Default: - No recovery period
-
builder
- Returns:
- a
PromQLAlarmProps.BuilderofPromQLAlarmProps
-