We recommend new projects start with resources from the AWS provider.
aws-native.cloudwatch.getAlarm
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::CloudWatch::Alarm
type specifies an alarm and associates it with the specified metric or metric math expression.
When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA
. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed.
When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.
Using getAlarm
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlarm(args: GetAlarmArgs, opts?: InvokeOptions): Promise<GetAlarmResult>
function getAlarmOutput(args: GetAlarmOutputArgs, opts?: InvokeOptions): Output<GetAlarmResult>
def get_alarm(alarm_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlarmResult
def get_alarm_output(alarm_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlarmResult]
func LookupAlarm(ctx *Context, args *LookupAlarmArgs, opts ...InvokeOption) (*LookupAlarmResult, error)
func LookupAlarmOutput(ctx *Context, args *LookupAlarmOutputArgs, opts ...InvokeOption) LookupAlarmResultOutput
> Note: This function is named LookupAlarm
in the Go SDK.
public static class GetAlarm
{
public static Task<GetAlarmResult> InvokeAsync(GetAlarmArgs args, InvokeOptions? opts = null)
public static Output<GetAlarmResult> Invoke(GetAlarmInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlarmResult> getAlarm(GetAlarmArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:cloudwatch:getAlarm
arguments:
# arguments dictionary
The following arguments are supported:
- Alarm
Name string - The name of the alarm. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the alarm name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Alarm
Name string - The name of the alarm. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the alarm name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- alarm
Name String - The name of the alarm. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the alarm name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- alarm
Name string - The name of the alarm. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the alarm name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- alarm_
name str - The name of the alarm. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the alarm name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- alarm
Name String - The name of the alarm. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the alarm name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
getAlarm Result
The following output properties are available:
- Actions
Enabled bool - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- Alarm
Actions List<string> - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the API Reference.
- Alarm
Description string - The description of the alarm.
- Arn string
- The ARN of the CloudWatch alarm, such as
arn:aws:cloudwatch:us-west-2:123456789012:alarm:myCloudWatchAlarm-CPUAlarm-UXMMZK36R55Z
. - Comparison
Operator string - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
- Datapoints
To intAlarm - The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for
EvaluationPeriods
is the N value. For more information, see Evaluating an Alarm in the User Guide. If you omit this parameter, CW uses the same value here that you set forEvaluationPeriods
, and the alarm goes to alarm state if that many consecutive periods are breaching. - Dimensions
List<Pulumi.
Aws Native. Cloud Watch. Outputs. Alarm Dimension> - The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify
Dimensions
. Instead, you useMetrics
. - Evaluate
Low stringSample Count Percentile - Used only for alarms based on percentiles. If
ignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available. - Evaluation
Periods int - The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and
DatapointsToAlarm
is the M. For more information, see Evaluating an Alarm in the User Guide. - Extended
Statistic string - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyExtendedStatistic
. Instead, you useMetrics
. - Insufficient
Data List<string>Actions - The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - Metric
Name string - The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metrics
instead and you can't specifyMetricName
. - Metrics
List<Pulumi.
Aws Native. Cloud Watch. Outputs. Alarm Metric Data Query> - An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
If you specify the
Metrics
parameter, you cannot specifyMetricName
,Dimensions
,Period
,Namespace
,Statistic
,ExtendedStatistic
, orUnit
. - Namespace string
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespace
and you useMetrics
instead. For a list of namespaces for metrics from AWS services, see Services That Publish Metrics. - Ok
Actions List<string> - The actions to execute when this alarm transitions to the
OK
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - Period int
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
For an alarm based on a math expression, you can't specify
Period
, and instead you use theMetrics
parameter. Minimum: 10 - Statistic string
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
. For an alarm based on a metric, you must specify eitherStatistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyStatistic
. Instead, you useMetrics
. - List<Pulumi.
Aws Native. Outputs. Tag> - A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the
cloudwatch:TagResource
permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. - Threshold double
- The value to compare with the specified statistic.
- Threshold
Metric stringId - In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. - Treat
Missing stringData - Sets how this alarm is to handle missing data points. Valid values are
breaching
,notBreaching
,ignore
, andmissing
. For more information, see Configuring How Alarms Treat Missing Data in the Amazon User Guide. If you omit this parameter, the default behavior ofmissing
is used. - Unit string
- The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a
Metrics
array. You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- Actions
Enabled bool - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- Alarm
Actions []string - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the API Reference.
- Alarm
Description string - The description of the alarm.
- Arn string
- The ARN of the CloudWatch alarm, such as
arn:aws:cloudwatch:us-west-2:123456789012:alarm:myCloudWatchAlarm-CPUAlarm-UXMMZK36R55Z
. - Comparison
Operator string - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
- Datapoints
To intAlarm - The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for
EvaluationPeriods
is the N value. For more information, see Evaluating an Alarm in the User Guide. If you omit this parameter, CW uses the same value here that you set forEvaluationPeriods
, and the alarm goes to alarm state if that many consecutive periods are breaching. - Dimensions
[]Alarm
Dimension - The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify
Dimensions
. Instead, you useMetrics
. - Evaluate
Low stringSample Count Percentile - Used only for alarms based on percentiles. If
ignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available. - Evaluation
Periods int - The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and
DatapointsToAlarm
is the M. For more information, see Evaluating an Alarm in the User Guide. - Extended
Statistic string - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyExtendedStatistic
. Instead, you useMetrics
. - Insufficient
Data []stringActions - The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - Metric
Name string - The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metrics
instead and you can't specifyMetricName
. - Metrics
[]Alarm
Metric Data Query - An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
If you specify the
Metrics
parameter, you cannot specifyMetricName
,Dimensions
,Period
,Namespace
,Statistic
,ExtendedStatistic
, orUnit
. - Namespace string
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespace
and you useMetrics
instead. For a list of namespaces for metrics from AWS services, see Services That Publish Metrics. - Ok
Actions []string - The actions to execute when this alarm transitions to the
OK
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - Period int
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
For an alarm based on a math expression, you can't specify
Period
, and instead you use theMetrics
parameter. Minimum: 10 - Statistic string
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
. For an alarm based on a metric, you must specify eitherStatistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyStatistic
. Instead, you useMetrics
. - Tag
- A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the
cloudwatch:TagResource
permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. - Threshold float64
- The value to compare with the specified statistic.
- Threshold
Metric stringId - In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. - Treat
Missing stringData - Sets how this alarm is to handle missing data points. Valid values are
breaching
,notBreaching
,ignore
, andmissing
. For more information, see Configuring How Alarms Treat Missing Data in the Amazon User Guide. If you omit this parameter, the default behavior ofmissing
is used. - Unit string
- The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a
Metrics
array. You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- actions
Enabled Boolean - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- alarm
Actions List<String> - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the API Reference.
- alarm
Description String - The description of the alarm.
- arn String
- The ARN of the CloudWatch alarm, such as
arn:aws:cloudwatch:us-west-2:123456789012:alarm:myCloudWatchAlarm-CPUAlarm-UXMMZK36R55Z
. - comparison
Operator String - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
- datapoints
To IntegerAlarm - The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for
EvaluationPeriods
is the N value. For more information, see Evaluating an Alarm in the User Guide. If you omit this parameter, CW uses the same value here that you set forEvaluationPeriods
, and the alarm goes to alarm state if that many consecutive periods are breaching. - dimensions
List<Alarm
Dimension> - The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify
Dimensions
. Instead, you useMetrics
. - evaluate
Low StringSample Count Percentile - Used only for alarms based on percentiles. If
ignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available. - evaluation
Periods Integer - The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and
DatapointsToAlarm
is the M. For more information, see Evaluating an Alarm in the User Guide. - extended
Statistic String - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyExtendedStatistic
. Instead, you useMetrics
. - insufficient
Data List<String>Actions - The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - metric
Name String - The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metrics
instead and you can't specifyMetricName
. - metrics
List<Alarm
Metric Data Query> - An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
If you specify the
Metrics
parameter, you cannot specifyMetricName
,Dimensions
,Period
,Namespace
,Statistic
,ExtendedStatistic
, orUnit
. - namespace String
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespace
and you useMetrics
instead. For a list of namespaces for metrics from AWS services, see Services That Publish Metrics. - ok
Actions List<String> - The actions to execute when this alarm transitions to the
OK
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - period Integer
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
For an alarm based on a math expression, you can't specify
Period
, and instead you use theMetrics
parameter. Minimum: 10 - statistic String
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
. For an alarm based on a metric, you must specify eitherStatistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyStatistic
. Instead, you useMetrics
. - List<Tag>
- A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the
cloudwatch:TagResource
permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. - threshold Double
- The value to compare with the specified statistic.
- threshold
Metric StringId - In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. - treat
Missing StringData - Sets how this alarm is to handle missing data points. Valid values are
breaching
,notBreaching
,ignore
, andmissing
. For more information, see Configuring How Alarms Treat Missing Data in the Amazon User Guide. If you omit this parameter, the default behavior ofmissing
is used. - unit String
- The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a
Metrics
array. You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- actions
Enabled boolean - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- alarm
Actions string[] - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the API Reference.
- alarm
Description string - The description of the alarm.
- arn string
- The ARN of the CloudWatch alarm, such as
arn:aws:cloudwatch:us-west-2:123456789012:alarm:myCloudWatchAlarm-CPUAlarm-UXMMZK36R55Z
. - comparison
Operator string - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
- datapoints
To numberAlarm - The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for
EvaluationPeriods
is the N value. For more information, see Evaluating an Alarm in the User Guide. If you omit this parameter, CW uses the same value here that you set forEvaluationPeriods
, and the alarm goes to alarm state if that many consecutive periods are breaching. - dimensions
Alarm
Dimension[] - The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify
Dimensions
. Instead, you useMetrics
. - evaluate
Low stringSample Count Percentile - Used only for alarms based on percentiles. If
ignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available. - evaluation
Periods number - The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and
DatapointsToAlarm
is the M. For more information, see Evaluating an Alarm in the User Guide. - extended
Statistic string - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyExtendedStatistic
. Instead, you useMetrics
. - insufficient
Data string[]Actions - The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - metric
Name string - The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metrics
instead and you can't specifyMetricName
. - metrics
Alarm
Metric Data Query[] - An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
If you specify the
Metrics
parameter, you cannot specifyMetricName
,Dimensions
,Period
,Namespace
,Statistic
,ExtendedStatistic
, orUnit
. - namespace string
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespace
and you useMetrics
instead. For a list of namespaces for metrics from AWS services, see Services That Publish Metrics. - ok
Actions string[] - The actions to execute when this alarm transitions to the
OK
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - period number
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
For an alarm based on a math expression, you can't specify
Period
, and instead you use theMetrics
parameter. Minimum: 10 - statistic string
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
. For an alarm based on a metric, you must specify eitherStatistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyStatistic
. Instead, you useMetrics
. - Tag[]
- A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the
cloudwatch:TagResource
permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. - threshold number
- The value to compare with the specified statistic.
- threshold
Metric stringId - In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. - treat
Missing stringData - Sets how this alarm is to handle missing data points. Valid values are
breaching
,notBreaching
,ignore
, andmissing
. For more information, see Configuring How Alarms Treat Missing Data in the Amazon User Guide. If you omit this parameter, the default behavior ofmissing
is used. - unit string
- The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a
Metrics
array. You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- actions_
enabled bool - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- alarm_
actions Sequence[str] - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the API Reference.
- alarm_
description str - The description of the alarm.
- arn str
- The ARN of the CloudWatch alarm, such as
arn:aws:cloudwatch:us-west-2:123456789012:alarm:myCloudWatchAlarm-CPUAlarm-UXMMZK36R55Z
. - comparison_
operator str - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
- datapoints_
to_ intalarm - The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for
EvaluationPeriods
is the N value. For more information, see Evaluating an Alarm in the User Guide. If you omit this parameter, CW uses the same value here that you set forEvaluationPeriods
, and the alarm goes to alarm state if that many consecutive periods are breaching. - dimensions
Sequence[Alarm
Dimension] - The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify
Dimensions
. Instead, you useMetrics
. - evaluate_
low_ strsample_ count_ percentile - Used only for alarms based on percentiles. If
ignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available. - evaluation_
periods int - The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and
DatapointsToAlarm
is the M. For more information, see Evaluating an Alarm in the User Guide. - extended_
statistic str - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyExtendedStatistic
. Instead, you useMetrics
. - insufficient_
data_ Sequence[str]actions - The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - metric_
name str - The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metrics
instead and you can't specifyMetricName
. - metrics
Sequence[Alarm
Metric Data Query] - An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
If you specify the
Metrics
parameter, you cannot specifyMetricName
,Dimensions
,Period
,Namespace
,Statistic
,ExtendedStatistic
, orUnit
. - namespace str
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespace
and you useMetrics
instead. For a list of namespaces for metrics from AWS services, see Services That Publish Metrics. - ok_
actions Sequence[str] - The actions to execute when this alarm transitions to the
OK
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - period int
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
For an alarm based on a math expression, you can't specify
Period
, and instead you use theMetrics
parameter. Minimum: 10 - statistic str
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
. For an alarm based on a metric, you must specify eitherStatistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyStatistic
. Instead, you useMetrics
. - Sequence[root_Tag]
- A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the
cloudwatch:TagResource
permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. - threshold float
- The value to compare with the specified statistic.
- threshold_
metric_ strid - In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. - treat_
missing_ strdata - Sets how this alarm is to handle missing data points. Valid values are
breaching
,notBreaching
,ignore
, andmissing
. For more information, see Configuring How Alarms Treat Missing Data in the Amazon User Guide. If you omit this parameter, the default behavior ofmissing
is used. - unit str
- The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a
Metrics
array. You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- actions
Enabled Boolean - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- alarm
Actions List<String> - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the API Reference.
- alarm
Description String - The description of the alarm.
- arn String
- The ARN of the CloudWatch alarm, such as
arn:aws:cloudwatch:us-west-2:123456789012:alarm:myCloudWatchAlarm-CPUAlarm-UXMMZK36R55Z
. - comparison
Operator String - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
- datapoints
To NumberAlarm - The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for
EvaluationPeriods
is the N value. For more information, see Evaluating an Alarm in the User Guide. If you omit this parameter, CW uses the same value here that you set forEvaluationPeriods
, and the alarm goes to alarm state if that many consecutive periods are breaching. - dimensions List<Property Map>
- The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify
Dimensions
. Instead, you useMetrics
. - evaluate
Low StringSample Count Percentile - Used only for alarms based on percentiles. If
ignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available. - evaluation
Periods Number - The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and
DatapointsToAlarm
is the M. For more information, see Evaluating an Alarm in the User Guide. - extended
Statistic String - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyExtendedStatistic
. Instead, you useMetrics
. - insufficient
Data List<String>Actions - The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - metric
Name String - The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metrics
instead and you can't specifyMetricName
. - metrics List<Property Map>
- An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
If you specify the
Metrics
parameter, you cannot specifyMetricName
,Dimensions
,Period
,Namespace
,Statistic
,ExtendedStatistic
, orUnit
. - namespace String
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespace
and you useMetrics
instead. For a list of namespaces for metrics from AWS services, see Services That Publish Metrics. - ok
Actions List<String> - The actions to execute when this alarm transitions to the
OK
state from any other state. Each action is specified as an Amazon Resource Name (ARN). - period Number
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
For an alarm based on a math expression, you can't specify
Period
, and instead you use theMetrics
parameter. Minimum: 10 - statistic String
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
. For an alarm based on a metric, you must specify eitherStatistic
orExtendedStatistic
but not both. For an alarm based on a math expression, you can't specifyStatistic
. Instead, you useMetrics
. - List<Property Map>
- A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the
cloudwatch:TagResource
permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. - threshold Number
- The value to compare with the specified statistic.
- threshold
Metric StringId - In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. - treat
Missing StringData - Sets how this alarm is to handle missing data points. Valid values are
breaching
,notBreaching
,ignore
, andmissing
. For more information, see Configuring How Alarms Treat Missing Data in the Amazon User Guide. If you omit this parameter, the default behavior ofmissing
is used. - unit String
- The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a
Metrics
array. You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
Supporting Types
AlarmDimension
AlarmMetric
- Dimensions
List<Pulumi.
Aws Native. Cloud Watch. Inputs. Alarm Dimension> - The metric dimensions that you want to be used for the metric that the alarm will watch.
- Metric
Name string - The name of the metric that you want the alarm to watch. This is a required field.
- Namespace string
- The namespace of the metric that the alarm will watch.
- Dimensions
[]Alarm
Dimension - The metric dimensions that you want to be used for the metric that the alarm will watch.
- Metric
Name string - The name of the metric that you want the alarm to watch. This is a required field.
- Namespace string
- The namespace of the metric that the alarm will watch.
- dimensions
List<Alarm
Dimension> - The metric dimensions that you want to be used for the metric that the alarm will watch.
- metric
Name String - The name of the metric that you want the alarm to watch. This is a required field.
- namespace String
- The namespace of the metric that the alarm will watch.
- dimensions
Alarm
Dimension[] - The metric dimensions that you want to be used for the metric that the alarm will watch.
- metric
Name string - The name of the metric that you want the alarm to watch. This is a required field.
- namespace string
- The namespace of the metric that the alarm will watch.
- dimensions
Sequence[Alarm
Dimension] - The metric dimensions that you want to be used for the metric that the alarm will watch.
- metric_
name str - The name of the metric that you want the alarm to watch. This is a required field.
- namespace str
- The namespace of the metric that the alarm will watch.
- dimensions List<Property Map>
- The metric dimensions that you want to be used for the metric that the alarm will watch.
- metric
Name String - The name of the metric that you want the alarm to watch. This is a required field.
- namespace String
- The namespace of the metric that the alarm will watch.
AlarmMetricDataQuery
- Id string
- A short name used to tie this object to the results in the response. This name must be unique within a single call to
GetMetricData
. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - Account
Id string - The ID of the account where the metrics are located, if this is a cross-account alarm.
- Expression string
- The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the
Id
of the other metrics to refer to those metrics, and can also use theId
of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the User Guide. Within each MetricDataQuery object, you must specify eitherExpression
orMetricStat
but not both. - Label string
- A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CW dashboard widget, the label is shown. If
Label
is omitted, CW generates a default. - Metric
Stat Pulumi.Aws Native. Cloud Watch. Inputs. Alarm Metric Stat - The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either
Expression
orMetricStat
but not both. - Period int
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
operation that includes aStorageResolution of 1 second
. - Return
Data bool - This option indicates whether to return the timestamps and raw data values of this metric.
When you create an alarm based on a metric math expression, specify
True
for this value for only the one math expression that the alarm is based on. You must specifyFalse
forReturnData
for all the other metrics and expressions used in the alarm. This field is required.
- Id string
- A short name used to tie this object to the results in the response. This name must be unique within a single call to
GetMetricData
. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - Account
Id string - The ID of the account where the metrics are located, if this is a cross-account alarm.
- Expression string
- The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the
Id
of the other metrics to refer to those metrics, and can also use theId
of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the User Guide. Within each MetricDataQuery object, you must specify eitherExpression
orMetricStat
but not both. - Label string
- A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CW dashboard widget, the label is shown. If
Label
is omitted, CW generates a default. - Metric
Stat AlarmMetric Stat - The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either
Expression
orMetricStat
but not both. - Period int
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
operation that includes aStorageResolution of 1 second
. - Return
Data bool - This option indicates whether to return the timestamps and raw data values of this metric.
When you create an alarm based on a metric math expression, specify
True
for this value for only the one math expression that the alarm is based on. You must specifyFalse
forReturnData
for all the other metrics and expressions used in the alarm. This field is required.
- id String
- A short name used to tie this object to the results in the response. This name must be unique within a single call to
GetMetricData
. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - account
Id String - The ID of the account where the metrics are located, if this is a cross-account alarm.
- expression String
- The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the
Id
of the other metrics to refer to those metrics, and can also use theId
of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the User Guide. Within each MetricDataQuery object, you must specify eitherExpression
orMetricStat
but not both. - label String
- A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CW dashboard widget, the label is shown. If
Label
is omitted, CW generates a default. - metric
Stat AlarmMetric Stat - The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either
Expression
orMetricStat
but not both. - period Integer
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
operation that includes aStorageResolution of 1 second
. - return
Data Boolean - This option indicates whether to return the timestamps and raw data values of this metric.
When you create an alarm based on a metric math expression, specify
True
for this value for only the one math expression that the alarm is based on. You must specifyFalse
forReturnData
for all the other metrics and expressions used in the alarm. This field is required.
- id string
- A short name used to tie this object to the results in the response. This name must be unique within a single call to
GetMetricData
. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - account
Id string - The ID of the account where the metrics are located, if this is a cross-account alarm.
- expression string
- The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the
Id
of the other metrics to refer to those metrics, and can also use theId
of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the User Guide. Within each MetricDataQuery object, you must specify eitherExpression
orMetricStat
but not both. - label string
- A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CW dashboard widget, the label is shown. If
Label
is omitted, CW generates a default. - metric
Stat AlarmMetric Stat - The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either
Expression
orMetricStat
but not both. - period number
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
operation that includes aStorageResolution of 1 second
. - return
Data boolean - This option indicates whether to return the timestamps and raw data values of this metric.
When you create an alarm based on a metric math expression, specify
True
for this value for only the one math expression that the alarm is based on. You must specifyFalse
forReturnData
for all the other metrics and expressions used in the alarm. This field is required.
- id str
- A short name used to tie this object to the results in the response. This name must be unique within a single call to
GetMetricData
. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - account_
id str - The ID of the account where the metrics are located, if this is a cross-account alarm.
- expression str
- The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the
Id
of the other metrics to refer to those metrics, and can also use theId
of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the User Guide. Within each MetricDataQuery object, you must specify eitherExpression
orMetricStat
but not both. - label str
- A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CW dashboard widget, the label is shown. If
Label
is omitted, CW generates a default. - metric_
stat AlarmMetric Stat - The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either
Expression
orMetricStat
but not both. - period int
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
operation that includes aStorageResolution of 1 second
. - return_
data bool - This option indicates whether to return the timestamps and raw data values of this metric.
When you create an alarm based on a metric math expression, specify
True
for this value for only the one math expression that the alarm is based on. You must specifyFalse
forReturnData
for all the other metrics and expressions used in the alarm. This field is required.
- id String
- A short name used to tie this object to the results in the response. This name must be unique within a single call to
GetMetricData
. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - account
Id String - The ID of the account where the metrics are located, if this is a cross-account alarm.
- expression String
- The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the
Id
of the other metrics to refer to those metrics, and can also use theId
of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the User Guide. Within each MetricDataQuery object, you must specify eitherExpression
orMetricStat
but not both. - label String
- A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CW dashboard widget, the label is shown. If
Label
is omitted, CW generates a default. - metric
Stat Property Map - The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either
Expression
orMetricStat
but not both. - period Number
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
operation that includes aStorageResolution of 1 second
. - return
Data Boolean - This option indicates whether to return the timestamps and raw data values of this metric.
When you create an alarm based on a metric math expression, specify
True
for this value for only the one math expression that the alarm is based on. You must specifyFalse
forReturnData
for all the other metrics and expressions used in the alarm. This field is required.
AlarmMetricStat
- Metric
Pulumi.
Aws Native. Cloud Watch. Inputs. Alarm Metric - The metric to return, including the metric name, namespace, and dimensions.
- Period int
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
call that includes aStorageResolution
of 1 second. If theStartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
- Stat string
- The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in Statistics in the User Guide.
- Unit string
- The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- Metric
Alarm
Metric - The metric to return, including the metric name, namespace, and dimensions.
- Period int
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
call that includes aStorageResolution
of 1 second. If theStartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
- Stat string
- The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in Statistics in the User Guide.
- Unit string
- The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- metric
Alarm
Metric - The metric to return, including the metric name, namespace, and dimensions.
- period Integer
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
call that includes aStorageResolution
of 1 second. If theStartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
- stat String
- The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in Statistics in the User Guide.
- unit String
- The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- metric
Alarm
Metric - The metric to return, including the metric name, namespace, and dimensions.
- period number
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
call that includes aStorageResolution
of 1 second. If theStartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
- stat string
- The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in Statistics in the User Guide.
- unit string
- The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- metric
Alarm
Metric - The metric to return, including the metric name, namespace, and dimensions.
- period int
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
call that includes aStorageResolution
of 1 second. If theStartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
- stat str
- The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in Statistics in the User Guide.
- unit str
- The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- metric Property Map
- The metric to return, including the metric name, namespace, and dimensions.
- period Number
- The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a
PutMetricData
call that includes aStorageResolution
of 1 second. If theStartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
- stat String
- The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in Statistics in the User Guide.
- unit String
- The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.