Class MetricAlarmState
Inherited Members
Namespace: Pulumi.Aws.CloudWatch
Assembly: Pulumi.Aws.dll
Syntax
public sealed class MetricAlarmState : ResourceArgs
Constructors
View SourceMetricAlarmState()
Declaration
public MetricAlarmState()
Properties
View SourceActionsEnabled
Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true.
Declaration
public Input<bool> ActionsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
AlarmActions
The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Declaration
public InputList<string> AlarmActions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
AlarmDescription
The description for the alarm.
Declaration
public Input<string> AlarmDescription { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Arn
The ARN of the cloudwatch metric alarm.
Declaration
public Input<string> Arn { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
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.
Declaration
public Input<string> ComparisonOperator { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DatapointsToAlarm
The number of datapoints that must be breaching to trigger the alarm.
Declaration
public Input<int> DatapointsToAlarm { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Dimensions
The dimensions for this metric. For the list of available dimensions see the AWS documentation here.
Declaration
public InputMap<object> Dimensions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
EvaluateLowSampleCountPercentiles
Used only for alarms
based on percentiles. If you specify ignore, the alarm state will not
change during periods with too few data points to be statistically significant.
If you specify evaluate or omit this parameter, the alarm will always be
evaluated and possibly change state no matter how many data points are available.
The following values are supported: ignore, and evaluate.
Declaration
public Input<string> EvaluateLowSampleCountPercentiles { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EvaluationPeriods
The number of periods over which data is compared to the specified threshold.
Declaration
public Input<int> EvaluationPeriods { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
ExtendedStatistic
The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
Declaration
public Input<string> ExtendedStatistic { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InsufficientDataActions
The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Declaration
public InputList<string> InsufficientDataActions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
MetricName
The name for this metric. See docs for supported metrics.
Declaration
public Input<string> MetricName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MetricQueries
Enables you to create an alarm based on a metric math expression. You may specify at most 20.
Declaration
public InputList<MetricAlarmMetricQueryGetArgs> MetricQueries { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<MetricAlarmMetricQueryGetArgs> |
Name
The descriptive name for the alarm. This name must be unique within the user's AWS account
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Namespace
The namespace for this metric. See docs for the list of namespaces. See docs for supported metrics.
Declaration
public Input<string> Namespace { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
OkActions
The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Declaration
public InputList<string> OkActions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Period
The period in seconds over which the specified stat is applied.
Declaration
public Input<int> Period { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Statistic
The statistic to apply to the alarm's associated metric.
Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum
Declaration
public Input<string> Statistic { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Tags
A map of tags to assign to the resource.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
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.
Declaration
public Input<double> Threshold { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Double> |
ThresholdMetricId
If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function.
Declaration
public Input<string> ThresholdMetricId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
TreatMissingData
Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing.
Declaration
public Input<string> TreatMissingData { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Unit
The unit for this metric.
Declaration
public Input<string> Unit { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |