aws-sdk-cloudwatch 1.30.0 → 1.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a262881da341a1afecfbfcc3ecddb30ac7e481d7
4
- data.tar.gz: dcb9d486ce8102d81b19c4f818adfde6f090fc8e
3
+ metadata.gz: eb74dba62b70246e5687907e204af30262f36326
4
+ data.tar.gz: 6d60905dbb0e60627b4133205d4da4ef89cca1e8
5
5
  SHA512:
6
- metadata.gz: 6bd07585eb7226c22009ec268803bd830ba7f818511fe05dc9244aab1dabd9b29c05c8f403decc56bf1574231a9ca6a6057b573a9068593972cbd748f108f378
7
- data.tar.gz: 4a88bead057540a1ddb5f51c40d532783d425eb9cfa96469d5e696381242dd7e49b822e9aba7ef57f320093afe4d74acf24e142c7a54861cc70f9d0b1358a30b
6
+ metadata.gz: eafbfff62cf8fd57ef282da7206a33e0fd136e5501542d009958cca7a055b1ece2997f54c0903682f18886a49de9f0fb67938817f9b17a4ebd8a317aeb7dbb2b
7
+ data.tar.gz: 5e3084db9410492503b3d06e3322fcdaf9242f47a1e233757d1710722f33da00d6da6efe6c234199011d9e34be701937a7f680244e3a6e46558512629d85d784
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
45
45
  # @service
46
46
  module Aws::CloudWatch
47
47
 
48
- GEM_VERSION = '1.30.0'
48
+ GEM_VERSION = '1.31.0'
49
49
 
50
50
  end
@@ -156,7 +156,7 @@ module Aws::CloudWatch
156
156
  data[:evaluation_periods]
157
157
  end
158
158
 
159
- # The number of datapoints that must be breaching to trigger the alarm.
159
+ # The number of data points that must be breaching to trigger the alarm.
160
160
  # @return [Integer]
161
161
  def datapoints_to_alarm
162
162
  data[:datapoints_to_alarm]
@@ -341,6 +341,43 @@ module Aws::CloudWatch
341
341
  req.send_request(options)
342
342
  end
343
343
 
344
+ # Permanently deletes the specified Contributor Insights rules.
345
+ #
346
+ # If you create a rule, delete it, and then re-create it with the same
347
+ # name, historical data from the first time the rule was created may or
348
+ # may not be available.
349
+ #
350
+ # @option params [required, Array<String>] :rule_names
351
+ # An array of the rule names to delete. If you need to find out the
352
+ # names of your rules, use DescribeInsightRules.
353
+ #
354
+ # @return [Types::DeleteInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
355
+ #
356
+ # * {Types::DeleteInsightRulesOutput#failures #failures} => Array&lt;Types::PartialFailure&gt;
357
+ #
358
+ # @example Request syntax with placeholder values
359
+ #
360
+ # resp = client.delete_insight_rules({
361
+ # rule_names: ["InsightRuleName"], # required
362
+ # })
363
+ #
364
+ # @example Response structure
365
+ #
366
+ # resp.failures #=> Array
367
+ # resp.failures[0].failure_resource #=> String
368
+ # resp.failures[0].exception_type #=> String
369
+ # resp.failures[0].failure_code #=> String
370
+ # resp.failures[0].failure_description #=> String
371
+ #
372
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules AWS API Documentation
373
+ #
374
+ # @overload delete_insight_rules(params = {})
375
+ # @param [Hash] params ({})
376
+ def delete_insight_rules(params = {}, options = {})
377
+ req = build_request(:delete_insight_rules, params)
378
+ req.send_request(options)
379
+ end
380
+
344
381
  # Retrieves the history for the specified alarm. You can filter the
345
382
  # results by date range or item type. If an alarm name is not specified,
346
383
  # the histories for all alarms are returned.
@@ -684,6 +721,53 @@ module Aws::CloudWatch
684
721
  req.send_request(options)
685
722
  end
686
723
 
724
+ # Returns a list of all the Contributor Insights rules in your account.
725
+ # All rules in your account are returned with a single operation.
726
+ #
727
+ # For more information about Contributor Insights, see [Using
728
+ # Contributor Insights to Analyze High-Cardinality Data][1].
729
+ #
730
+ #
731
+ #
732
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html
733
+ #
734
+ # @option params [String] :next_token
735
+ # Reserved for future use.
736
+ #
737
+ # @option params [Integer] :max_results
738
+ # This parameter is not currently used. Reserved for future use. If it
739
+ # is used in the future, the maximum value may be different.
740
+ #
741
+ # @return [Types::DescribeInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
742
+ #
743
+ # * {Types::DescribeInsightRulesOutput#next_token #next_token} => String
744
+ # * {Types::DescribeInsightRulesOutput#insight_rules #insight_rules} => Array&lt;Types::InsightRule&gt;
745
+ #
746
+ # @example Request syntax with placeholder values
747
+ #
748
+ # resp = client.describe_insight_rules({
749
+ # next_token: "NextToken",
750
+ # max_results: 1,
751
+ # })
752
+ #
753
+ # @example Response structure
754
+ #
755
+ # resp.next_token #=> String
756
+ # resp.insight_rules #=> Array
757
+ # resp.insight_rules[0].name #=> String
758
+ # resp.insight_rules[0].state #=> String
759
+ # resp.insight_rules[0].schema #=> String
760
+ # resp.insight_rules[0].definition #=> String
761
+ #
762
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules AWS API Documentation
763
+ #
764
+ # @overload describe_insight_rules(params = {})
765
+ # @param [Hash] params ({})
766
+ def describe_insight_rules(params = {}, options = {})
767
+ req = build_request(:describe_insight_rules, params)
768
+ req.send_request(options)
769
+ end
770
+
687
771
  # Disables the actions for the specified alarms. When an alarm's
688
772
  # actions are disabled, the alarm actions do not execute when the alarm
689
773
  # state changes.
@@ -708,6 +792,40 @@ module Aws::CloudWatch
708
792
  req.send_request(options)
709
793
  end
710
794
 
795
+ # Disables the specified Contributor Insights rules. When rules are
796
+ # disabled, they do not analyze log groups and do not incur costs.
797
+ #
798
+ # @option params [required, Array<String>] :rule_names
799
+ # An array of the rule names to disable. If you need to find out the
800
+ # names of your rules, use DescribeInsightRules.
801
+ #
802
+ # @return [Types::DisableInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
803
+ #
804
+ # * {Types::DisableInsightRulesOutput#failures #failures} => Array&lt;Types::PartialFailure&gt;
805
+ #
806
+ # @example Request syntax with placeholder values
807
+ #
808
+ # resp = client.disable_insight_rules({
809
+ # rule_names: ["InsightRuleName"], # required
810
+ # })
811
+ #
812
+ # @example Response structure
813
+ #
814
+ # resp.failures #=> Array
815
+ # resp.failures[0].failure_resource #=> String
816
+ # resp.failures[0].exception_type #=> String
817
+ # resp.failures[0].failure_code #=> String
818
+ # resp.failures[0].failure_description #=> String
819
+ #
820
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules AWS API Documentation
821
+ #
822
+ # @overload disable_insight_rules(params = {})
823
+ # @param [Hash] params ({})
824
+ def disable_insight_rules(params = {}, options = {})
825
+ req = build_request(:disable_insight_rules, params)
826
+ req.send_request(options)
827
+ end
828
+
711
829
  # Enables the actions for the specified alarms.
712
830
  #
713
831
  # @option params [required, Array<String>] :alarm_names
@@ -730,6 +848,40 @@ module Aws::CloudWatch
730
848
  req.send_request(options)
731
849
  end
732
850
 
851
+ # Enables the specified Contributor Insights rules. When rules are
852
+ # enabled, they immediately begin analyzing log data.
853
+ #
854
+ # @option params [required, Array<String>] :rule_names
855
+ # An array of the rule names to enable. If you need to find out the
856
+ # names of your rules, use DescribeInsightRules.
857
+ #
858
+ # @return [Types::EnableInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
859
+ #
860
+ # * {Types::EnableInsightRulesOutput#failures #failures} => Array&lt;Types::PartialFailure&gt;
861
+ #
862
+ # @example Request syntax with placeholder values
863
+ #
864
+ # resp = client.enable_insight_rules({
865
+ # rule_names: ["InsightRuleName"], # required
866
+ # })
867
+ #
868
+ # @example Response structure
869
+ #
870
+ # resp.failures #=> Array
871
+ # resp.failures[0].failure_resource #=> String
872
+ # resp.failures[0].exception_type #=> String
873
+ # resp.failures[0].failure_code #=> String
874
+ # resp.failures[0].failure_description #=> String
875
+ #
876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules AWS API Documentation
877
+ #
878
+ # @overload enable_insight_rules(params = {})
879
+ # @param [Hash] params ({})
880
+ def enable_insight_rules(params = {}, options = {})
881
+ req = build_request(:enable_insight_rules, params)
882
+ req.send_request(options)
883
+ end
884
+
733
885
  # Displays the details of the dashboard that you specify.
734
886
  #
735
887
  # To copy an existing dashboard, use `GetDashboard`, and then use the
@@ -766,9 +918,153 @@ module Aws::CloudWatch
766
918
  req.send_request(options)
767
919
  end
768
920
 
921
+ # This operation returns the time series data collected by a Contributor
922
+ # Insights rule. The data includes the identity and number of
923
+ # contributors to the log group.
924
+ #
925
+ # You can also optionally return one or more statistics about each data
926
+ # point in the time series. These statistics can include the following:
927
+ #
928
+ # * `UniqueContributors` -- the number of unique contributors for each
929
+ # data point.
930
+ #
931
+ # * `MaxContributorValue` -- the value of the top contributor for each
932
+ # data point. The identity of the contributor may change for each data
933
+ # point in the graph.
934
+ #
935
+ # If this rule aggregates by COUNT, the top contributor for each data
936
+ # point is the contributor with the most occurrences in that period.
937
+ # If the rule aggregates by SUM, the top contributor is the
938
+ # contributor with the highest sum in the log field specified by the
939
+ # rule's `Value`, during that period.
940
+ #
941
+ # * `SampleCount` -- the number of data points matched by the rule.
942
+ #
943
+ # * `Sum` -- the sum of the values from all contributors during the time
944
+ # period represented by that data point.
945
+ #
946
+ # * `Minimum` -- the minimum value from a single observation during the
947
+ # time period represented by that data point.
948
+ #
949
+ # * `Maximum` -- the maximum value from a single observation during the
950
+ # time period represented by that data point.
951
+ #
952
+ # * `Average` -- the average value from all contributors during the time
953
+ # period represented by that data point.
954
+ #
955
+ # @option params [required, String] :rule_name
956
+ # The name of the rule that you want to see data from.
957
+ #
958
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_time
959
+ # The start time of the data to use in the report. When used in a raw
960
+ # HTTP Query API, it is formatted as `yyyy-MM-dd'T'HH:mm:ss`. For
961
+ # example, `2019-07-01T23:59:59`.
962
+ #
963
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_time
964
+ # The end time of the data to use in the report. When used in a raw HTTP
965
+ # Query API, it is formatted as `yyyy-MM-dd'T'HH:mm:ss`. For example,
966
+ # `2019-07-01T23:59:59`.
967
+ #
968
+ # @option params [required, Integer] :period
969
+ # The period, in seconds, to use for the statistics in the
970
+ # `InsightRuleMetricDatapoint` results.
971
+ #
972
+ # @option params [Integer] :max_contributor_count
973
+ # The maximum number of contributors to include in the report. The range
974
+ # is 1 to 100. If you omit this, the default of 10 is used.
975
+ #
976
+ # @option params [Array<String>] :metrics
977
+ # Specifies which metrics to use for aggregation of contributor values
978
+ # for the report. You can specify one or more of the following metrics:
979
+ #
980
+ # * `UniqueContributors` -- the number of unique contributors for each
981
+ # data point.
982
+ #
983
+ # * `MaxContributorValue` -- the value of the top contributor for each
984
+ # data point. The identity of the contributor may change for each data
985
+ # point in the graph.
986
+ #
987
+ # If this rule aggregates by COUNT, the top contributor for each data
988
+ # point is the contributor with the most occurrences in that period.
989
+ # If the rule aggregates by SUM, the top contributor is the
990
+ # contributor with the highest sum in the log field specified by the
991
+ # rule's `Value`, during that period.
992
+ #
993
+ # * `SampleCount` -- the number of data points matched by the rule.
994
+ #
995
+ # * `Sum` -- the sum of the values from all contributors during the time
996
+ # period represented by that data point.
997
+ #
998
+ # * `Minimum` -- the minimum value from a single observation during the
999
+ # time period represented by that data point.
1000
+ #
1001
+ # * `Maximum` -- the maximum value from a single observation during the
1002
+ # time period represented by that data point.
1003
+ #
1004
+ # * `Average` -- the average value from all contributors during the time
1005
+ # period represented by that data point.
1006
+ #
1007
+ # @option params [String] :order_by
1008
+ # Determines what statistic to use to rank the contributors. Valid
1009
+ # values are SUM and MAXIMUM.
1010
+ #
1011
+ # @return [Types::GetInsightRuleReportOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1012
+ #
1013
+ # * {Types::GetInsightRuleReportOutput#key_labels #key_labels} => Array&lt;String&gt;
1014
+ # * {Types::GetInsightRuleReportOutput#aggregation_statistic #aggregation_statistic} => String
1015
+ # * {Types::GetInsightRuleReportOutput#aggregate_value #aggregate_value} => Float
1016
+ # * {Types::GetInsightRuleReportOutput#approximate_unique_count #approximate_unique_count} => Integer
1017
+ # * {Types::GetInsightRuleReportOutput#contributors #contributors} => Array&lt;Types::InsightRuleContributor&gt;
1018
+ # * {Types::GetInsightRuleReportOutput#metric_datapoints #metric_datapoints} => Array&lt;Types::InsightRuleMetricDatapoint&gt;
1019
+ #
1020
+ # @example Request syntax with placeholder values
1021
+ #
1022
+ # resp = client.get_insight_rule_report({
1023
+ # rule_name: "InsightRuleName", # required
1024
+ # start_time: Time.now, # required
1025
+ # end_time: Time.now, # required
1026
+ # period: 1, # required
1027
+ # max_contributor_count: 1,
1028
+ # metrics: ["InsightRuleMetricName"],
1029
+ # order_by: "InsightRuleOrderBy",
1030
+ # })
1031
+ #
1032
+ # @example Response structure
1033
+ #
1034
+ # resp.key_labels #=> Array
1035
+ # resp.key_labels[0] #=> String
1036
+ # resp.aggregation_statistic #=> String
1037
+ # resp.aggregate_value #=> Float
1038
+ # resp.approximate_unique_count #=> Integer
1039
+ # resp.contributors #=> Array
1040
+ # resp.contributors[0].keys #=> Array
1041
+ # resp.contributors[0].keys[0] #=> String
1042
+ # resp.contributors[0].approximate_aggregate_value #=> Float
1043
+ # resp.contributors[0].datapoints #=> Array
1044
+ # resp.contributors[0].datapoints[0].timestamp #=> Time
1045
+ # resp.contributors[0].datapoints[0].approximate_value #=> Float
1046
+ # resp.metric_datapoints #=> Array
1047
+ # resp.metric_datapoints[0].timestamp #=> Time
1048
+ # resp.metric_datapoints[0].unique_contributors #=> Float
1049
+ # resp.metric_datapoints[0].max_contributor_value #=> Float
1050
+ # resp.metric_datapoints[0].sample_count #=> Float
1051
+ # resp.metric_datapoints[0].average #=> Float
1052
+ # resp.metric_datapoints[0].sum #=> Float
1053
+ # resp.metric_datapoints[0].minimum #=> Float
1054
+ # resp.metric_datapoints[0].maximum #=> Float
1055
+ #
1056
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport AWS API Documentation
1057
+ #
1058
+ # @overload get_insight_rule_report(params = {})
1059
+ # @param [Hash] params ({})
1060
+ def get_insight_rule_report(params = {}, options = {})
1061
+ req = build_request(:get_insight_rule_report, params)
1062
+ req.send_request(options)
1063
+ end
1064
+
769
1065
  # You can use the `GetMetricData` API to retrieve as many as 100
770
1066
  # different metrics in a single request, with a total of as many as
771
- # 100,800 datapoints. You can also optionally perform math expressions
1067
+ # 100,800 data points. You can also optionally perform math expressions
772
1068
  # on the values of the returned statistics, to create new time series
773
1069
  # that represent new insights into your data. For example, using Lambda
774
1070
  # metrics, you could divide the Errors metric by the Invocations metric
@@ -1043,8 +1339,8 @@ module Aws::CloudWatch
1043
1339
  # request.
1044
1340
  #
1045
1341
  # The value specified is inclusive; results include data points with the
1046
- # specified time stamp. The time stamp must be in ISO 8601 UTC format
1047
- # (for example, 2016-10-03T23:00:00Z).
1342
+ # specified time stamp. In a raw HTTP query, the time stamp must be in
1343
+ # ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).
1048
1344
  #
1049
1345
  # CloudWatch rounds the specified time stamp as follows:
1050
1346
  #
@@ -1072,8 +1368,8 @@ module Aws::CloudWatch
1072
1368
  # The time stamp that determines the last data point to return.
1073
1369
  #
1074
1370
  # The value specified is exclusive; results include data points up to
1075
- # the specified time stamp. The time stamp must be in ISO 8601 UTC
1076
- # format (for example, 2016-10-10T23:00:00Z).
1371
+ # the specified time stamp. In a raw HTTP query, the time stamp must be
1372
+ # in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).
1077
1373
  #
1078
1374
  # @option params [required, Integer] :period
1079
1375
  # The granularity, in seconds, of the returned data points. For metrics
@@ -1529,6 +1825,52 @@ module Aws::CloudWatch
1529
1825
  req.send_request(options)
1530
1826
  end
1531
1827
 
1828
+ # Creates a Contributor Insights rule. Rules evaluate log events in a
1829
+ # CloudWatch Logs log group, enabling you to find contributor data for
1830
+ # the log events in that log group. For more information, see [Using
1831
+ # Contributor Insights to Analyze High-Cardinality Data][1].
1832
+ #
1833
+ # If you create a rule, delete it, and then re-create it with the same
1834
+ # name, historical data from the first time the rule was created may or
1835
+ # may not be available.
1836
+ #
1837
+ #
1838
+ #
1839
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html
1840
+ #
1841
+ # @option params [required, String] :rule_name
1842
+ # A unique name for the rule.
1843
+ #
1844
+ # @option params [String] :rule_state
1845
+ # The state of the rule. Valid values are ENABLED and DISABLED.
1846
+ #
1847
+ # @option params [required, String] :rule_definition
1848
+ # The definition of the rule, as a JSON object. For details on the valid
1849
+ # syntax, see [Contributor Insights Rule Syntax][1].
1850
+ #
1851
+ #
1852
+ #
1853
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html
1854
+ #
1855
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1856
+ #
1857
+ # @example Request syntax with placeholder values
1858
+ #
1859
+ # resp = client.put_insight_rule({
1860
+ # rule_name: "InsightRuleName", # required
1861
+ # rule_state: "InsightRuleState",
1862
+ # rule_definition: "InsightRuleDefinition", # required
1863
+ # })
1864
+ #
1865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule AWS API Documentation
1866
+ #
1867
+ # @overload put_insight_rule(params = {})
1868
+ # @param [Hash] params ({})
1869
+ def put_insight_rule(params = {}, options = {})
1870
+ req = build_request(:put_insight_rule, params)
1871
+ req.send_request(options)
1872
+ end
1873
+
1532
1874
  # Creates or updates an alarm and associates it with the specified
1533
1875
  # metric, metric math expression, or anomaly detection model.
1534
1876
  #
@@ -1742,7 +2084,7 @@ module Aws::CloudWatch
1742
2084
  # seconds.
1743
2085
  #
1744
2086
  # @option params [Integer] :datapoints_to_alarm
1745
- # The number of datapoints that must be breaching to trigger the alarm.
2087
+ # The number of data points that must be breaching to trigger the alarm.
1746
2088
  # This is used only if you are setting an "M out of N" alarm. In that
1747
2089
  # case, this value is the M. For more information, see [Evaluating an
1748
2090
  # Alarm][1] in the *Amazon CloudWatch User Guide*.
@@ -1922,9 +2264,8 @@ module Aws::CloudWatch
1922
2264
  #
1923
2265
  # Although the `Value` parameter accepts numbers of type `Double`,
1924
2266
  # CloudWatch rejects values that are either too small or too large.
1925
- # Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base
1926
- # 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for
1927
- # example, NaN, +Infinity, -Infinity) are not supported.
2267
+ # Values must be in the range of -2^360 to 2^360. In addition, special
2268
+ # values (for example, NaN, +Infinity, -Infinity) are not supported.
1928
2269
  #
1929
2270
  # You can use up to 10 dimensions per metric to further clarify what
1930
2271
  # data the metric collects. Each dimension consists of a Name and Value
@@ -2139,7 +2480,7 @@ module Aws::CloudWatch
2139
2480
  params: params,
2140
2481
  config: config)
2141
2482
  context[:gem_name] = 'aws-sdk-cloudwatch'
2142
- context[:gem_version] = '1.30.0'
2483
+ context[:gem_version] = '1.31.0'
2143
2484
  Seahorse::Client::Request.new(handlers, context)
2144
2485
  end
2145
2486