The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model and the time zone to use for the metric.
Contents
ExcludedTimeRanges.member.N
An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.
Type: Array of Range (p. 162) objects Required: No
MetricTimezone
The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.
To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.
Type: String
Length Constraints: Maximum length of 50.
Pattern: .*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
CompositeAlarm
CompositeAlarm
The details about a composite alarm.
Contents
ActionsEnabled
Indicates whether actions should be executed during any changes to the alarm state.
Type: Boolean Required: No
AlarmActions.member.N
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Type: Array of strings
Array Members: Maximum number of 5 items.
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No AlarmArn
The Amazon Resource Name (ARN) of the alarm.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1600.
Required: No
AlarmConfigurationUpdatedTimestamp
The time stamp of the last update to the alarm configuration.
Type: Timestamp Required: No AlarmDescription
The description of the alarm.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Required: No AlarmName
The name of the alarm.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No
AlarmRule
The rule that this alarm uses to evaluate its alarm state.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 10240.
Required: No
InsufficientDataActions.member.N
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).
Type: Array of strings
Array Members: Maximum number of 5 items.
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No OKActions.member.N
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).
Type: Array of strings
Array Members: Maximum number of 5 items.
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No StateReason
An explanation for the alarm state, in text format.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1023.
Required: No StateReasonData
An explanation for the alarm state, in JSON format.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 4000.
Required: No
StateUpdatedTimestamp
The time stamp of the last update to the alarm state.
Type: Timestamp Required: No StateValue
The state value for the alarm.
See Also
Type: String
Valid Values: OK | ALARM | INSUFFICIENT_DATA Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
DashboardEntry
Represents a specific dashboard.
Contents
DashboardArn
The Amazon Resource Name (ARN) of the dashboard.
Type: String Required: No DashboardName
The name of the dashboard.
Type: String Required: No LastModified
The time stamp of when the dashboard was last modified, either by an API call or through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
Type: Timestamp Required: No Size
The size of the dashboard, in bytes.
Type: Long Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
DashboardValidationMessage
DashboardValidationMessage
An error or warning for the operation.
Contents
DataPath
The data path related to the message.
Type: String Required: No Message
A message describing the error or warning.
Type: String Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
Datapoint
Encapsulates the statistical data that CloudWatch computes from metric data.
Contents
Average
The average of the metric values that correspond to the data point.
Type: Double Required: No
ExtendedStatistics , ExtendedStatistics.entry.N.key (key) , ExtendedStatistics.entry.N.value (value) The percentile statistic for the data point.
Type: String to double map
Key Pattern: p(\d{1,2}(\.\d{0,2})?|100) Required: No
Maximum
The maximum metric value for the data point.
Type: Double Required: No Minimum
The minimum metric value for the data point.
Type: Double Required: No SampleCount
The number of metric values that contributed to the aggregate value of this data point.
Type: Double Required: No Sum
The sum of the metric values for the data point.
Type: Double Required: No Timestamp
The time stamp used for the data point.
Type: Timestamp Required: No
See Also
Unit
The standard unit for the data point.
Type: String
Valid 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 | None Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
Dimension
A dimension is a name/value pair that is part of the identity of a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish InstanceId as a dimension name, and the actual instance ID as the value for that dimension.
You can assign up to 10 dimensions to a metric.
Contents
Name
The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:).
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes Value
The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
DimensionFilter
DimensionFilter
Represents filters for a dimension.
Contents
Name
The dimension name to be matched.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes Value
The value of the dimension to be matched.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
InsightRule
This structure contains the definition for a Contributor Insights rule. For more information about this rule, see Using Constributor Insights to analyze high-cardinality data in the Amazon CloudWatch User Guide.
Contents
Definition
The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters.
For details on the valid syntax, see Contributor Insights Rule Syntax.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 8192.
Pattern: [\x00-\x7F]+
Required: Yes Name
The name of the rule.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [\x20-\x7E]+
Required: Yes Schema
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For managed rules, this is {"Name": "ServiceLogRule", "Version": 1}
Type: String Required: Yes State
Indicates whether the rule is enabled or disabled.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 32.
Pattern: [\x20-\x7E]+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
See Also
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
InsightRuleContributor
One of the unique contributors found by a Contributor Insights rule. If the rule contains multiple keys, then a unique contributor is a unique combination of values from all the keys in the rule.
If the rule contains a single key, then each unique contributor is each unique value for this key.
For more information, see GetInsightRuleReport.
Contents
ApproximateAggregateValue
An approximation of the aggregate value that comes from this contributor.
Type: Double Required: Yes Datapoints.member.N
An array of the data points where this contributor is present. Only the data points when this contributor appeared are included in the array.
Type: Array of InsightRuleContributorDatapoint (p. 136) objects Required: Yes
Keys.member.N
One of the log entry field keywords that is used to define contributors for this rule.
Type: Array of strings Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
InsightRuleContributorDatapoint
InsightRuleContributorDatapoint
One data point related to one contributor.
For more information, see GetInsightRuleReport and InsightRuleContributor.
Contents
ApproximateValue
The approximate value that this contributor added during this timestamp.
Type: Double Required: Yes Timestamp
The timestamp of the data point.
Type: Timestamp Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
InsightRuleMetricDatapoint
One data point from the metric time series returned in a Contributor Insights rule report.
For more information, see GetInsightRuleReport.
Contents
Average
The average value from all contributors during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics array in your request.
Type: Double Required: No MaxContributorValue
The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, so the identity of the max contributor could be different for each timestamp.
This statistic is returned only if you included it in the Metrics array in your request.
Type: Double Required: No Maximum
The maximum value from a single occurence from a single contributor during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics array in your request.
Type: Double Required: No Minimum
The minimum value from a single contributor during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics array in your request.
Type: Double Required: No SampleCount
The number of occurrences that matched the rule during this data point.
This statistic is returned only if you included it in the Metrics array in your request.
Type: Double Required: No Sum
The sum of the values from all contributors during the time period represented by that data point.
See Also
This statistic is returned only if you included it in the Metrics array in your request.
Type: Double Required: No Timestamp
The timestamp of the data point.
Type: Timestamp Required: Yes UniqueContributors
The number of unique contributors who published data during this timestamp.
This statistic is returned only if you included it in the Metrics array in your request.
Type: Double Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
LabelOptions
This structure includes the Timezone parameter, which you can use to specify your time zone so that the labels that are associated with returned metrics display the correct time for your time zone.
The Timezone value affects a label only if you have a time-based dynamic expression in the label. For more information about dynamic expressions in labels, see Using Dynamic Labels.
Contents
Timezone
The time zone to use for metric data return in this operation. The format is + or - followed by four digits. The first two digits indicate the number of hours ahead or behind of UTC, and the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.
Type: String Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
MessageData
MessageData
A message returned by the GetMetricDataAPI, including a code and a description.
If a cross-Region GetMetricData operation fails with a code of Forbidden and a value of
Authentication too complex to retrieve cross region data, you can correct the problem by running the GetMetricData operation in the same Region where the metric data is.
Contents
Code
The error code or status code associated with the message.
Type: String Required: No Value
The message text.
Type: String Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
Metric
Represents a specific metric.
Contents
Dimensions.member.N
The dimensions for the metric.
Type: Array of Dimension (p. 131) objects Array Members: Maximum number of 10 items.
Required: No MetricName
The name of the metric. This is a required field.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No Namespace
The namespace of the metric.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: [^:].*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
MetricAlarm
MetricAlarm
The details about a metric alarm.
Contents
ActionsEnabled
Indicates whether actions should be executed during any changes to the alarm state.
Type: Boolean Required: No
AlarmActions.member.N
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Type: Array of strings
Array Members: Maximum number of 5 items.
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No AlarmArn
The Amazon Resource Name (ARN) of the alarm.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1600.
Required: No
AlarmConfigurationUpdatedTimestamp
The time stamp of the last update to the alarm configuration.
Type: Timestamp Required: No AlarmDescription
The description of the alarm.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Required: No AlarmName
The name of the alarm.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No
ComparisonOperator
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
Type: String
Valid Values: GreaterThanOrEqualToThreshold | GreaterThanThreshold
| LessThanThreshold | LessThanOrEqualToThreshold |
LessThanLowerOrGreaterThanUpperThreshold | LessThanLowerThreshold | GreaterThanUpperThreshold
Required: No DatapointsToAlarm
The number of data points that must be breaching to trigger the alarm.
Type: Integer
Valid Range: Minimum value of 1.
Required: No Dimensions.member.N
The dimensions for the metric associated with the alarm.
Type: Array of Dimension (p. 131) objects Array Members: Maximum number of 10 items.
Required: No
EvaluateLowSampleCountPercentile
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. If evaluate or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No EvaluationPeriods
The number of periods over which data is compared to the specified threshold.
Type: Integer
Valid Range: Minimum value of 1.
Required: No ExtendedStatistic
The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
Type: String
Pattern: p(\d{1,2}(\.\d{0,2})?|100)
Contents
Required: No
InsufficientDataActions.member.N
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).
Type: Array of strings
Array Members: Maximum number of 5 items.
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No MetricName
The name of the metric associated with the alarm, if this is an alarm based on a single metric.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No Metrics.member.N
An array of MetricDataQuery structures, used in an alarm based on a metric math expression. Each structure either retrieves a metric or performs a math expression. One item in the Metrics array is the math expression that the alarm watches. This expression by designated by having ReturnData set to true.
Type: Array of MetricDataQuery (p. 147) objects Required: No
Namespace
The namespace of the metric associated with the alarm.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: [^:].*
Required: No OKActions.member.N
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).
Type: Array of strings
Array Members: Maximum number of 5 items.
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No Period
The period, in seconds, over which the statistic is applied.
Type: Integer
Valid Range: Minimum value of 1.
Required: No StateReason
An explanation for the alarm state, in text format.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1023.
Required: No StateReasonData
An explanation for the alarm state, in JSON format.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 4000.
Required: No
StateUpdatedTimestamp
The time stamp of the last update to the alarm state.
Type: Timestamp Required: No StateValue
The state value for the alarm.
Type: String
Valid Values: OK | ALARM | INSUFFICIENT_DATA Required: No
Statistic
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.
Type: String
Valid Values: SampleCount | Average | Sum | Minimum | Maximum Required: No
Threshold
The value to compare with the specified statistic.
The value to compare with the specified statistic.