MetricAlarmState constructor

const MetricAlarmState({
  1. Input<bool?>? actionsEnabled,
  2. Input<List?>? alarmActions,
  3. Input<String?>? alarmDescription,
  4. Input<String?>? arn,
  5. Input<String?>? comparisonOperator,
  6. Input<int?>? datapointsToAlarm,
  7. Input<Map<String, String>?>? dimensions,
  8. Input<String?>? evaluateLowSampleCountPercentiles,
  9. Input<MetricAlarmEvaluationCriteria?>? evaluationCriteria,
  10. Input<int?>? evaluationInterval,
  11. Input<int?>? evaluationPeriods,
  12. Input<String?>? extendedStatistic,
  13. Input<List?>? insufficientDataActions,
  14. Input<String?>? metricName,
  15. Input<List<MetricAlarmMetricQuery>?>? metricQueries,
  16. Input<String?>? name,
  17. Input<String?>? namespace,
  18. Input<List?>? okActions,
  19. Input<int?>? period,
  20. Input<String?>? region,
  21. Input<String?>? statistic,
  22. Input<Map<String, String>?>? tags,
  23. Input<Map<String, String>?>? tagsAll,
  24. Input<double?>? threshold,
  25. Input<String?>? thresholdMetricId,
  26. Input<String?>? treatMissingData,
  27. Input<String?>? unit,
})

Creates a new MetricAlarmState. actionsEnabled Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true. alarmActions List of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an ARN. alarmDescription The description for the alarm. arn The ARN of the CloudWatch Metric Alarm. comparisonOperator The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. Additionally, the values LessThanLowerOrGreaterThanUpperThreshold, LessThanLowerThreshold, and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models. datapointsToAlarm The number of data points that must be breaching to trigger the alarm. dimensions The dimensions for the alarm's associated metric. For the list of available dimensions see the AWS documentation here. evaluateLowSampleCountPercentiles Used only for alarms based on percentiles. evaluationCriteria The evaluation criteria for PromQL alarms. Cannot be used with traditional metric alarm parameters. evaluationInterval The frequency, in seconds, at which the alarm is evaluated. Valid values are 10, 20, 30, and any multiple of 60. Required when using evaluationCriteria. evaluationPeriods The number of periods over which data is compared to the specified threshold. Required for traditional metric alarms. extendedStatistic The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100. insufficientDataActions List of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN. metricName The name for the alarm's associated metric. metricQueries Enables you to create an alarm based on a metric math expression. You may specify at most 20. name The descriptive name for the alarm. This name must be unique within the user's AWS account namespace The namespace for the alarm's associated metric. See docs for the list of namespaces. okActions List of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an ARN. period The period in seconds over which the specified statistic is applied. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. statistic The statistic to apply to the alarm's associated metric. tags A map of tags to assign to the resource. .If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. threshold The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models. thresholdMetricId If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function. treatMissingData Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing. unit The unit for the alarm's associated metric.

Implementation

const MetricAlarmState({
  this.actionsEnabled,
  this.alarmActions,
  this.alarmDescription,
  this.arn,
  this.comparisonOperator,
  this.datapointsToAlarm,
  this.dimensions,
  this.evaluateLowSampleCountPercentiles,
  this.evaluationCriteria,
  this.evaluationInterval,
  this.evaluationPeriods,
  this.extendedStatistic,
  this.insufficientDataActions,
  this.metricName,
  this.metricQueries,
  this.name,
  this.namespace,
  this.okActions,
  this.period,
  this.region,
  this.statistic,
  this.tags,
  this.tagsAll,
  this.threshold,
  this.thresholdMetricId,
  this.treatMissingData,
  this.unit,
});