lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.8.0 vs lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.9.0
- old
+ new
@@ -275,11 +275,13 @@
# `GetMetricStatistics`, you must specify either `Statistics` or
# `ExtendedStatistics`, but not both.
# @option options [Array<String>] :extended_statistics
# The percentile statistics. Specify values between p0.0 and p100. When
# calling `GetMetricStatistics`, you must specify either `Statistics` or
- # `ExtendedStatistics`, but not both.
+ # `ExtendedStatistics`, but not both. Percentile statistics are not
+ # available for metrics when any of the metric values are negative
+ # numbers.
# @option options [String] :unit
# The unit for a given metric. Metrics may be reported in multiple
# units. Not supplying a unit results in all units being returned. If
# you specify only a unit that the metric does not report, the results
# of the call are null.
@@ -331,59 +333,59 @@
# @option options [Array<String>] :ok_actions
# The actions to execute when this alarm transitions to an `OK` state
# from any other state. Each action is specified as an Amazon Resource
# Name (ARN).
#
- # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
- # arn:aws:automate:*region*\:ec2:terminate \|
- # arn:aws:automate:*region*\:ec2:recover \|
- # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
- # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
- # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
+ # Valid Values: `arn:aws:automate:region:ec2:stop` \|
+ # `arn:aws:automate:region:ec2:terminate` \|
+ # `arn:aws:automate:region:ec2:recover` \|
+ # `arn:aws:sns:region:account-id:sns-topic-name ` \|
+ # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
+ # `
#
# Valid Values (for use with IAM roles):
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
# \|
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
# \|
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
# @option options [Array<String>] :alarm_actions
# 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).
#
- # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
- # arn:aws:automate:*region*\:ec2:terminate \|
- # arn:aws:automate:*region*\:ec2:recover \|
- # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
- # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
- # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
+ # Valid Values: `arn:aws:automate:region:ec2:stop` \|
+ # `arn:aws:automate:region:ec2:terminate` \|
+ # `arn:aws:automate:region:ec2:recover` \|
+ # `arn:aws:sns:region:account-id:sns-topic-name ` \|
+ # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
+ # `
#
# Valid Values (for use with IAM roles):
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
# \|
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
# \|
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
# @option options [Array<String>] :insufficient_data_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).
#
- # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
- # arn:aws:automate:*region*\:ec2:terminate \|
- # arn:aws:automate:*region*\:ec2:recover \|
- # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
- # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
- # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
+ # Valid Values: `arn:aws:automate:region:ec2:stop` \|
+ # `arn:aws:automate:region:ec2:terminate` \|
+ # `arn:aws:automate:region:ec2:recover` \|
+ # `arn:aws:sns:region:account-id:sns-topic-name ` \|
+ # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
+ # `
#
# Valid Values (for use with IAM roles):
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
+ # `>arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
# \|
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
# \|
- # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
# @option options [String] :statistic
# The statistic for the metric associated with the alarm, other than
# percentile. For percentile statistics, use `ExtendedStatistic`. When
# you call `PutMetricAlarm`, you must specify either `Statistic` or
# `ExtendedStatistic,` but not both.
@@ -508,17 +510,20 @@
# sample_count: 1.0, # required
# sum: 1.0, # required
# minimum: 1.0, # required
# maximum: 1.0, # required
# },
+ # values: [1.0],
+ # counts: [1.0],
# unit: "Seconds", # accepts 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
# storage_resolution: 1,
# },
# ],
# })
# @param [Hash] options ({})
# @option options [required, Array<Types::MetricDatum>] :metric_data
- # The data for the metric.
+ # The data for the metric. The array can include no more than 20 metrics
+ # per call.
# @return [EmptyStructure]
def put_data(options = {})
options = Aws::Util.deep_merge(options,
namespace: @namespace,
metric_data: [{ metric_name: @name }]