aws-sdk-cloudwatch 1.0.0.rc6 → 1.0.0.rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- data/lib/aws-sdk-cloudwatch/alarm.rb +7 -0
- data/lib/aws-sdk-cloudwatch/client.rb +245 -84
- data/lib/aws-sdk-cloudwatch/client_api.rb +112 -0
- data/lib/aws-sdk-cloudwatch/metric.rb +28 -19
- data/lib/aws-sdk-cloudwatch/resource.rb +2 -2
- data/lib/aws-sdk-cloudwatch/types.rb +261 -31
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bc30885fcd6ce39bd8200f6b222914980d24bc4
|
4
|
+
data.tar.gz: ad9d81249d7fc2f0ea880525b3af10104a68b226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24515dd0e11d4098821430e17f57e5d6cbb01f0d0ebc96eda09cb1a005a23c81fd8e93e5923995eb7d5f4bff0a8c8b61cf093b9dd99602b15327fbeda2a8650
|
7
|
+
data.tar.gz: 75215b228c414b289431b3c6ea0dc045ab9a618f8118e245d17c748886291c620b05bcf7773b7fcb00ca03bf53519f7e1dd6892b079fbdb1aedf225a83e5b1b1
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
@@ -169,11 +169,18 @@ module Aws::CloudWatch
|
|
169
169
|
data.comparison_operator
|
170
170
|
end
|
171
171
|
|
172
|
+
# Sets how this alarm is to handle missing data points. If this
|
173
|
+
# parameter is omitted, the default behavior of `missing` is used.
|
172
174
|
# @return [String]
|
173
175
|
def treat_missing_data
|
174
176
|
data.treat_missing_data
|
175
177
|
end
|
176
178
|
|
179
|
+
# Used only for alarms based on percentiles. If `ignore`, the alarm
|
180
|
+
# state does not change during periods with too few data points to be
|
181
|
+
# statistically significant. If `evaluate` or this parameter is not
|
182
|
+
# used, the alarm will always be evaluated and possibly change state no
|
183
|
+
# matter how many data points are available.
|
177
184
|
# @return [String]
|
178
185
|
def evaluate_low_sample_count_percentile
|
179
186
|
data.evaluate_low_sample_count_percentile
|
@@ -168,12 +168,36 @@ module Aws::CloudWatch
|
|
168
168
|
req.send_request(options)
|
169
169
|
end
|
170
170
|
|
171
|
+
# Deletes all dashboards that you specify. You may specify up to 100
|
172
|
+
# dashboards to delete. If there is an error during this call, no
|
173
|
+
# dashboards are deleted.
|
174
|
+
#
|
175
|
+
# @option params [Array<String>] :dashboard_names
|
176
|
+
# The dashboards to be deleted.
|
177
|
+
#
|
178
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
179
|
+
#
|
180
|
+
# @example Request syntax with placeholder values
|
181
|
+
#
|
182
|
+
# resp = client.delete_dashboards({
|
183
|
+
# dashboard_names: ["DashboardName"],
|
184
|
+
# })
|
185
|
+
#
|
186
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards AWS API Documentation
|
187
|
+
#
|
188
|
+
# @overload delete_dashboards(params = {})
|
189
|
+
# @param [Hash] params ({})
|
190
|
+
def delete_dashboards(params = {}, options = {})
|
191
|
+
req = build_request(:delete_dashboards, params)
|
192
|
+
req.send_request(options)
|
193
|
+
end
|
194
|
+
|
171
195
|
# Retrieves the history for the specified alarm. You can filter the
|
172
196
|
# results by date range or item type. If an alarm name is not specified,
|
173
197
|
# the histories for all alarms are returned.
|
174
198
|
#
|
175
|
-
#
|
176
|
-
#
|
199
|
+
# CloudWatch retains the history of an alarm even if you delete the
|
200
|
+
# alarm.
|
177
201
|
#
|
178
202
|
# @option params [String] :alarm_name
|
179
203
|
# The name of the alarm.
|
@@ -237,8 +261,8 @@ module Aws::CloudWatch
|
|
237
261
|
# The names of the alarms.
|
238
262
|
#
|
239
263
|
# @option params [String] :alarm_name_prefix
|
240
|
-
# The alarm name prefix.
|
241
|
-
#
|
264
|
+
# The alarm name prefix. If this parameter is specified, you cannot
|
265
|
+
# specify `AlarmNames`.
|
242
266
|
#
|
243
267
|
# @option params [String] :state_value
|
244
268
|
# The state value to be used in matching alarms.
|
@@ -312,8 +336,8 @@ module Aws::CloudWatch
|
|
312
336
|
req.send_request(options)
|
313
337
|
end
|
314
338
|
|
315
|
-
# Retrieves the alarms for the specified metric.
|
316
|
-
# period, or unit
|
339
|
+
# Retrieves the alarms for the specified metric. To filter the results,
|
340
|
+
# specify a statistic, period, or unit.
|
317
341
|
#
|
318
342
|
# @option params [required, String] :metric_name
|
319
343
|
# The name of the metric.
|
@@ -449,45 +473,81 @@ module Aws::CloudWatch
|
|
449
473
|
req.send_request(options)
|
450
474
|
end
|
451
475
|
|
476
|
+
# Displays the details of the dashboard that you specify.
|
477
|
+
#
|
478
|
+
# To copy an existing dashboard, use `GetDashboard`, and then use the
|
479
|
+
# data returned within `DashboardBody` as the template for the new
|
480
|
+
# dashboard when you call `PutDashboard` to create the copy.
|
481
|
+
#
|
482
|
+
# @option params [String] :dashboard_name
|
483
|
+
# The name of the dashboard to be described.
|
484
|
+
#
|
485
|
+
# @return [Types::GetDashboardOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
486
|
+
#
|
487
|
+
# * {Types::GetDashboardOutput#dashboard_arn #dashboard_arn} => String
|
488
|
+
# * {Types::GetDashboardOutput#dashboard_body #dashboard_body} => String
|
489
|
+
# * {Types::GetDashboardOutput#dashboard_name #dashboard_name} => String
|
490
|
+
#
|
491
|
+
# @example Request syntax with placeholder values
|
492
|
+
#
|
493
|
+
# resp = client.get_dashboard({
|
494
|
+
# dashboard_name: "DashboardName",
|
495
|
+
# })
|
496
|
+
#
|
497
|
+
# @example Response structure
|
498
|
+
#
|
499
|
+
# resp.dashboard_arn #=> String
|
500
|
+
# resp.dashboard_body #=> String
|
501
|
+
# resp.dashboard_name #=> String
|
502
|
+
#
|
503
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard AWS API Documentation
|
504
|
+
#
|
505
|
+
# @overload get_dashboard(params = {})
|
506
|
+
# @param [Hash] params ({})
|
507
|
+
def get_dashboard(params = {}, options = {})
|
508
|
+
req = build_request(:get_dashboard, params)
|
509
|
+
req.send_request(options)
|
510
|
+
end
|
511
|
+
|
452
512
|
# Gets statistics for the specified metric.
|
453
513
|
#
|
454
514
|
# Amazon CloudWatch retains metric data as follows:
|
455
515
|
#
|
456
|
-
# * Data points with a period of 60 seconds (1
|
516
|
+
# * Data points with a period of 60 seconds (1-minute) are available for
|
457
517
|
# 15 days
|
458
518
|
#
|
459
|
-
# * Data points with a period of 300 seconds (5
|
519
|
+
# * Data points with a period of 300 seconds (5-minute) are available
|
460
520
|
# for 63 days
|
461
521
|
#
|
462
522
|
# * Data points with a period of 3600 seconds (1 hour) are available for
|
463
523
|
# 455 days (15 months)
|
464
524
|
#
|
465
|
-
#
|
466
|
-
#
|
525
|
+
# CloudWatch started retaining 5-minute and 1-hour metric data as of
|
526
|
+
# July 9, 2016.
|
467
527
|
#
|
468
528
|
# The maximum number of data points returned from a single call is
|
469
|
-
# 1,440. If you request more than 1,440 data points,
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
# one-hour period,
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
529
|
+
# 1,440. If you request more than 1,440 data points, CloudWatch returns
|
530
|
+
# an error. To reduce the number of data points, you can narrow the
|
531
|
+
# specified time range and make multiple requests across adjacent time
|
532
|
+
# ranges, or you can increase the specified period. A period can be as
|
533
|
+
# short as one minute (60 seconds). Data points are not returned in
|
534
|
+
# chronological order.
|
535
|
+
#
|
536
|
+
# CloudWatch aggregates data points based on the length of the period
|
537
|
+
# that you specify. For example, if you request statistics with a
|
538
|
+
# one-hour period, CloudWatch aggregates all data points with time
|
539
|
+
# stamps that fall within each one-hour period. Therefore, the number of
|
540
|
+
# values aggregated by CloudWatch is larger than the number of data
|
541
|
+
# points returned.
|
482
542
|
#
|
483
543
|
# CloudWatch needs raw data points to calculate percentile statistics.
|
484
|
-
# If you publish data using a statistic set instead, you
|
485
|
-
# percentile statistics for this data
|
544
|
+
# If you publish data using a statistic set instead, you can only
|
545
|
+
# retrieve percentile statistics for this data if one of the following
|
486
546
|
# conditions is true:
|
487
547
|
#
|
488
|
-
# * The SampleCount of the statistic set is 1
|
548
|
+
# * The SampleCount value of the statistic set is 1.
|
489
549
|
#
|
490
|
-
# * The Min and the Max of the statistic set are equal
|
550
|
+
# * The Min and the Max values of the statistic set are equal.
|
491
551
|
#
|
492
552
|
# For a list of metrics and dimensions supported by AWS services, see
|
493
553
|
# the [Amazon CloudWatch Metrics and Dimensions Reference][1] in the
|
@@ -506,13 +566,13 @@ module Aws::CloudWatch
|
|
506
566
|
# @option params [Array<Types::Dimension>] :dimensions
|
507
567
|
# The dimensions. If the metric contains multiple dimensions, you must
|
508
568
|
# include a value for each dimension. CloudWatch treats each unique
|
509
|
-
# combination of dimensions as a separate metric.
|
510
|
-
#
|
511
|
-
#
|
512
|
-
# the metrics were created. For an example, see [Dimension
|
569
|
+
# combination of dimensions as a separate metric. If a specific
|
570
|
+
# combination of dimensions was not published, you can't retrieve
|
571
|
+
# statistics for it. You must specify the same dimensions that were used
|
572
|
+
# when the metrics were created. For an example, see [Dimension
|
513
573
|
# Combinations][1] in the *Amazon CloudWatch User Guide*. For more
|
514
|
-
# information
|
515
|
-
# the *Amazon CloudWatch User Guide*.
|
574
|
+
# information about specifying dimensions, see [Publishing Metrics][2]
|
575
|
+
# in the *Amazon CloudWatch User Guide*.
|
516
576
|
#
|
517
577
|
#
|
518
578
|
#
|
@@ -520,9 +580,9 @@ module Aws::CloudWatch
|
|
520
580
|
# [2]: http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
|
521
581
|
#
|
522
582
|
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
523
|
-
# The time stamp that determines the first data point to return.
|
524
|
-
#
|
525
|
-
#
|
583
|
+
# The time stamp that determines the first data point to return. Start
|
584
|
+
# times are evaluated relative to the time that CloudWatch receives the
|
585
|
+
# request.
|
526
586
|
#
|
527
587
|
# The value specified is inclusive; results include data points with the
|
528
588
|
# specified time stamp. The time stamp must be in ISO 8601 UTC format
|
@@ -544,14 +604,13 @@ module Aws::CloudWatch
|
|
544
604
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
545
605
|
# The time stamp that determines the last data point to return.
|
546
606
|
#
|
547
|
-
# The value specified is exclusive; results
|
548
|
-
#
|
607
|
+
# The value specified is exclusive; results include data points up to
|
608
|
+
# the specified time stamp. The time stamp must be in ISO 8601 UTC
|
549
609
|
# format (for example, 2016-10-10T23:00:00Z).
|
550
610
|
#
|
551
611
|
# @option params [required, Integer] :period
|
552
612
|
# The granularity, in seconds, of the returned data points. A period can
|
553
613
|
# be as short as one minute (60 seconds) and must be a multiple of 60.
|
554
|
-
# The default value is 60.
|
555
614
|
#
|
556
615
|
# If the `StartTime` parameter specifies a time stamp that is greater
|
557
616
|
# than 15 days ago, you must specify the period as follows or no data
|
@@ -565,10 +624,14 @@ module Aws::CloudWatch
|
|
565
624
|
#
|
566
625
|
# @option params [Array<String>] :statistics
|
567
626
|
# The metric statistics, other than percentile. For percentile
|
568
|
-
# statistics, use `
|
627
|
+
# statistics, use `ExtendedStatistics`. When calling
|
628
|
+
# `GetMetricStatistics`, you must specify either `Statistics` or
|
629
|
+
# `ExtendedStatistics`, but not both.
|
569
630
|
#
|
570
631
|
# @option params [Array<String>] :extended_statistics
|
571
|
-
# The percentile statistics. Specify values between p0.0 and p100.
|
632
|
+
# The percentile statistics. Specify values between p0.0 and p100. When
|
633
|
+
# calling `GetMetricStatistics`, you must specify either `Statistics` or
|
634
|
+
# `ExtendedStatistics`, but not both.
|
572
635
|
#
|
573
636
|
# @option params [String] :unit
|
574
637
|
# The unit for a given metric. Metrics may be reported in multiple
|
@@ -623,6 +686,50 @@ module Aws::CloudWatch
|
|
623
686
|
req.send_request(options)
|
624
687
|
end
|
625
688
|
|
689
|
+
# Returns a list of the dashboards for your account. If you include
|
690
|
+
# `DashboardNamePrefix`, only those dashboards with names starting with
|
691
|
+
# the prefix are listed. Otherwise, all dashboards in your account are
|
692
|
+
# listed.
|
693
|
+
#
|
694
|
+
# @option params [String] :dashboard_name_prefix
|
695
|
+
# If you specify this parameter, only the dashboards with names starting
|
696
|
+
# with the specified string are listed. The maximum length is 255, and
|
697
|
+
# valid characters are A-Z, a-z, 0-9, ".", "-", and "\_".
|
698
|
+
#
|
699
|
+
# @option params [String] :next_token
|
700
|
+
# The token returned by a previous call to indicate that there is more
|
701
|
+
# data available.
|
702
|
+
#
|
703
|
+
# @return [Types::ListDashboardsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
704
|
+
#
|
705
|
+
# * {Types::ListDashboardsOutput#dashboard_entries #dashboard_entries} => Array<Types::DashboardEntry>
|
706
|
+
# * {Types::ListDashboardsOutput#next_token #next_token} => String
|
707
|
+
#
|
708
|
+
# @example Request syntax with placeholder values
|
709
|
+
#
|
710
|
+
# resp = client.list_dashboards({
|
711
|
+
# dashboard_name_prefix: "DashboardNamePrefix",
|
712
|
+
# next_token: "NextToken",
|
713
|
+
# })
|
714
|
+
#
|
715
|
+
# @example Response structure
|
716
|
+
#
|
717
|
+
# resp.dashboard_entries #=> Array
|
718
|
+
# resp.dashboard_entries[0].dashboard_name #=> String
|
719
|
+
# resp.dashboard_entries[0].dashboard_arn #=> String
|
720
|
+
# resp.dashboard_entries[0].last_modified #=> Time
|
721
|
+
# resp.dashboard_entries[0].size #=> Integer
|
722
|
+
# resp.next_token #=> String
|
723
|
+
#
|
724
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards AWS API Documentation
|
725
|
+
#
|
726
|
+
# @overload list_dashboards(params = {})
|
727
|
+
# @param [Hash] params ({})
|
728
|
+
def list_dashboards(params = {}, options = {})
|
729
|
+
req = build_request(:list_dashboards, params)
|
730
|
+
req.send_request(options)
|
731
|
+
end
|
732
|
+
|
626
733
|
# List the specified metrics. You can use the returned metrics with
|
627
734
|
# GetMetricStatistics to obtain statistical data.
|
628
735
|
#
|
@@ -684,6 +791,56 @@ module Aws::CloudWatch
|
|
684
791
|
req.send_request(options)
|
685
792
|
end
|
686
793
|
|
794
|
+
# Creates a dashboard if it does not already exist, or updates an
|
795
|
+
# existing dashboard. If you update a dashboard, the entire contents are
|
796
|
+
# replaced with what you specify here.
|
797
|
+
#
|
798
|
+
# You can have up to 500 dashboards per account. All dashboards in your
|
799
|
+
# account are global, not region-specific.
|
800
|
+
#
|
801
|
+
# To copy an existing dashboard, use `GetDashboard`, and then use the
|
802
|
+
# data returned within `DashboardBody` as the template for the new
|
803
|
+
# dashboard when you call `PutDashboard` to create the copy.
|
804
|
+
#
|
805
|
+
# @option params [String] :dashboard_name
|
806
|
+
# The name of the dashboard. If a dashboard with this name already
|
807
|
+
# exists, this call modifies that dashboard, replacing its current
|
808
|
+
# contents. Otherwise, a new dashboard is created. The maximum length is
|
809
|
+
# 255, and valid characters are A-Z, a-z, 0-9, ".", "-", and "\_".
|
810
|
+
#
|
811
|
+
# @option params [String] :dashboard_body
|
812
|
+
# The detailed information about the dashboard in JSON format, including
|
813
|
+
# the widgets to include and their location on the dashboard.
|
814
|
+
#
|
815
|
+
# For more information about the syntax, see
|
816
|
+
# CloudWatch-Dashboard-Body-Structure.
|
817
|
+
#
|
818
|
+
# @return [Types::PutDashboardOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
819
|
+
#
|
820
|
+
# * {Types::PutDashboardOutput#dashboard_validation_messages #dashboard_validation_messages} => Array<Types::DashboardValidationMessage>
|
821
|
+
#
|
822
|
+
# @example Request syntax with placeholder values
|
823
|
+
#
|
824
|
+
# resp = client.put_dashboard({
|
825
|
+
# dashboard_name: "DashboardName",
|
826
|
+
# dashboard_body: "DashboardBody",
|
827
|
+
# })
|
828
|
+
#
|
829
|
+
# @example Response structure
|
830
|
+
#
|
831
|
+
# resp.dashboard_validation_messages #=> Array
|
832
|
+
# resp.dashboard_validation_messages[0].data_path #=> String
|
833
|
+
# resp.dashboard_validation_messages[0].message #=> String
|
834
|
+
#
|
835
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard AWS API Documentation
|
836
|
+
#
|
837
|
+
# @overload put_dashboard(params = {})
|
838
|
+
# @param [Hash] params ({})
|
839
|
+
def put_dashboard(params = {}, options = {})
|
840
|
+
req = build_request(:put_dashboard, params)
|
841
|
+
req.send_request(options)
|
842
|
+
end
|
843
|
+
|
687
844
|
# Creates or updates an alarm and associates it with the specified
|
688
845
|
# metric. Optionally, this operation can associate one or more Amazon
|
689
846
|
# SNS resources with the alarm.
|
@@ -697,8 +854,8 @@ module Aws::CloudWatch
|
|
697
854
|
# the update completely overwrites the previous configuration of the
|
698
855
|
# alarm.
|
699
856
|
#
|
700
|
-
# If you are an
|
701
|
-
#
|
857
|
+
# If you are an IAM user, you must have Amazon EC2 permissions for some
|
858
|
+
# operations:
|
702
859
|
#
|
703
860
|
# * `ec2:DescribeInstanceStatus` and `ec2:DescribeInstances` for all
|
704
861
|
# alarms on EC2 instance status metrics
|
@@ -712,25 +869,23 @@ module Aws::CloudWatch
|
|
712
869
|
#
|
713
870
|
# If you have read/write permissions for Amazon CloudWatch but not for
|
714
871
|
# Amazon EC2, you can still create an alarm, but the stop or terminate
|
715
|
-
# actions
|
716
|
-
# required permissions, the alarm actions that you created earlier
|
717
|
-
#
|
718
|
-
#
|
719
|
-
# If you are using an IAM role (for example, an
|
720
|
-
#
|
721
|
-
#
|
722
|
-
#
|
723
|
-
#
|
724
|
-
#
|
725
|
-
#
|
726
|
-
#
|
727
|
-
#
|
728
|
-
#
|
729
|
-
# Note that you must create at least one stop, terminate, or reboot
|
730
|
-
# alarm using the Amazon EC2 or CloudWatch console to create the
|
872
|
+
# actions are not performed. However, if you are later granted the
|
873
|
+
# required permissions, the alarm actions that you created earlier are
|
874
|
+
# performed.
|
875
|
+
#
|
876
|
+
# If you are using an IAM role (for example, an EC2 instance profile),
|
877
|
+
# you cannot stop or terminate the instance using alarm actions.
|
878
|
+
# However, you can still see the alarm state and perform any other
|
879
|
+
# actions such as Amazon SNS notifications or Auto Scaling policies.
|
880
|
+
#
|
881
|
+
# If you are using temporary security credentials granted using AWS STS,
|
882
|
+
# you cannot stop or terminate an EC2 instance using alarm actions.
|
883
|
+
#
|
884
|
+
# You must create at least one stop, terminate, or reboot alarm using
|
885
|
+
# either the Amazon EC2 or CloudWatch consoles to create the
|
731
886
|
# **EC2ActionsAccess** IAM role. After this IAM role is created, you can
|
732
887
|
# create stop, terminate, or reboot alarms using a command-line
|
733
|
-
# interface or
|
888
|
+
# interface or API.
|
734
889
|
#
|
735
890
|
# @option params [required, String] :alarm_name
|
736
891
|
# The name for the alarm. This name must be unique within the AWS
|
@@ -810,6 +965,9 @@ module Aws::CloudWatch
|
|
810
965
|
#
|
811
966
|
# @option params [required, Integer] :period
|
812
967
|
# The period, in seconds, over which the specified statistic is applied.
|
968
|
+
# An alarm's total current evaluation period can be no longer than one
|
969
|
+
# day, so this number multiplied by `EvaluationPeriods` must be 86,400
|
970
|
+
# or less.
|
813
971
|
#
|
814
972
|
# @option params [String] :unit
|
815
973
|
# The unit of measure for the statistic. For example, the units for the
|
@@ -820,12 +978,14 @@ module Aws::CloudWatch
|
|
820
978
|
# specify a unit of measure, such as Percent, are aggregated separately.
|
821
979
|
#
|
822
980
|
# If you specify a unit, you must use a unit that is appropriate for the
|
823
|
-
# metric. Otherwise, the
|
981
|
+
# metric. Otherwise, the CloudWatch alarm can get stuck in the
|
824
982
|
# `INSUFFICIENT DATA` state.
|
825
983
|
#
|
826
984
|
# @option params [required, Integer] :evaluation_periods
|
827
985
|
# The number of periods over which data is compared to the specified
|
828
|
-
# threshold.
|
986
|
+
# threshold. An alarm's total current evaluation period can be no
|
987
|
+
# longer than one day, so this number multiplied by `Period` must be
|
988
|
+
# 86,400 or less.
|
829
989
|
#
|
830
990
|
# @option params [required, Float] :threshold
|
831
991
|
# The value against which the specified statistic is compared.
|
@@ -849,10 +1009,10 @@ module Aws::CloudWatch
|
|
849
1009
|
#
|
850
1010
|
# @option params [String] :evaluate_low_sample_count_percentile
|
851
1011
|
# Used only for alarms based on percentiles. If you specify `ignore`,
|
852
|
-
# the alarm state
|
1012
|
+
# the alarm state does not change during periods with too few data
|
853
1013
|
# points to be statistically significant. If you specify `evaluate` or
|
854
|
-
# omit this parameter, the alarm
|
855
|
-
#
|
1014
|
+
# omit this parameter, the alarm is always evaluated and possibly
|
1015
|
+
# changes state no matter how many data points are available. For more
|
856
1016
|
# information, see [Percentile-Based CloudWatch Alarms and Low Data
|
857
1017
|
# Samples][1].
|
858
1018
|
#
|
@@ -901,23 +1061,23 @@ module Aws::CloudWatch
|
|
901
1061
|
req.send_request(options)
|
902
1062
|
end
|
903
1063
|
|
904
|
-
# Publishes metric data points to Amazon CloudWatch.
|
1064
|
+
# Publishes metric data points to Amazon CloudWatch. CloudWatch
|
905
1065
|
# associates the data points with the specified metric. If the specified
|
906
|
-
# metric does not exist,
|
907
|
-
#
|
908
|
-
#
|
1066
|
+
# metric does not exist, CloudWatch creates the metric. When CloudWatch
|
1067
|
+
# creates a metric, it can take up to fifteen minutes for the metric to
|
1068
|
+
# appear in calls to ListMetrics.
|
909
1069
|
#
|
910
1070
|
# Each `PutMetricData` request is limited to 40 KB in size for HTTP POST
|
911
1071
|
# requests.
|
912
1072
|
#
|
913
1073
|
# Although the `Value` parameter accepts numbers of type `Double`,
|
914
|
-
#
|
915
|
-
#
|
916
|
-
#
|
917
|
-
#
|
1074
|
+
# CloudWatch rejects values that are either too small or too large.
|
1075
|
+
# Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base
|
1076
|
+
# 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for
|
1077
|
+
# example, NaN, +Infinity, -Infinity) are not supported.
|
918
1078
|
#
|
919
1079
|
# You can use up to 10 dimensions per metric to further clarify what
|
920
|
-
# data the metric collects. For more information
|
1080
|
+
# data the metric collects. For more information about specifying
|
921
1081
|
# dimensions, see [Publishing Metrics][1] in the *Amazon CloudWatch User
|
922
1082
|
# Guide*.
|
923
1083
|
#
|
@@ -926,13 +1086,13 @@ module Aws::CloudWatch
|
|
926
1086
|
# time they are submitted.
|
927
1087
|
#
|
928
1088
|
# CloudWatch needs raw data points to calculate percentile statistics.
|
929
|
-
# If you publish data using a statistic set instead, you
|
930
|
-
# percentile statistics for this data
|
1089
|
+
# If you publish data using a statistic set instead, you can only
|
1090
|
+
# retrieve percentile statistics for this data if one of the following
|
931
1091
|
# conditions is true:
|
932
1092
|
#
|
933
|
-
# * The SampleCount of the statistic set is 1
|
1093
|
+
# * The SampleCount value of the statistic set is 1
|
934
1094
|
#
|
935
|
-
# * The Min and the Max of the statistic set are equal
|
1095
|
+
# * The Min and the Max values of the statistic set are equal
|
936
1096
|
#
|
937
1097
|
#
|
938
1098
|
#
|
@@ -972,6 +1132,7 @@ module Aws::CloudWatch
|
|
972
1132
|
# maximum: 1.0, # required
|
973
1133
|
# },
|
974
1134
|
# 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
|
1135
|
+
# storage_resolution: 1,
|
975
1136
|
# },
|
976
1137
|
# ],
|
977
1138
|
# })
|
@@ -989,11 +1150,11 @@ module Aws::CloudWatch
|
|
989
1150
|
# updated state differs from the previous value, the action configured
|
990
1151
|
# for the appropriate state is invoked. For example, if your alarm is
|
991
1152
|
# configured to send an Amazon SNS message when an alarm is triggered,
|
992
|
-
# temporarily changing the alarm state to `ALARM` sends an
|
993
|
-
#
|
994
|
-
#
|
995
|
-
#
|
996
|
-
#
|
1153
|
+
# temporarily changing the alarm state to `ALARM` sends an SNS message.
|
1154
|
+
# The alarm returns to its actual state (often within seconds). Because
|
1155
|
+
# the alarm state change happens quickly, it is typically only visible
|
1156
|
+
# in the alarm's **History** tab in the Amazon CloudWatch console or
|
1157
|
+
# through DescribeAlarmHistory.
|
997
1158
|
#
|
998
1159
|
# @option params [required, String] :alarm_name
|
999
1160
|
# The name for the alarm. This name must be unique within the AWS
|
@@ -1043,7 +1204,7 @@ module Aws::CloudWatch
|
|
1043
1204
|
params: params,
|
1044
1205
|
config: config)
|
1045
1206
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
1046
|
-
context[:gem_version] = '1.0.0.
|
1207
|
+
context[:gem_version] = '1.0.0.rc7'
|
1047
1208
|
Seahorse::Client::Request.new(handlers, context)
|
1048
1209
|
end
|
1049
1210
|
|