@aws-sdk/client-cloudwatch 3.36.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/CloudWatch.js +0 -17
- package/dist-cjs/CloudWatchClient.js +0 -22
- package/dist-cjs/commands/DeleteAlarmsCommand.js +0 -39
- package/dist-cjs/commands/DeleteAnomalyDetectorCommand.js +0 -24
- package/dist-cjs/commands/DeleteDashboardsCommand.js +0 -26
- package/dist-cjs/commands/DeleteInsightRulesCommand.js +0 -27
- package/dist-cjs/commands/DeleteMetricStreamCommand.js +0 -24
- package/dist-cjs/commands/DescribeAlarmHistoryCommand.js +0 -26
- package/dist-cjs/commands/DescribeAlarmsCommand.js +0 -25
- package/dist-cjs/commands/DescribeAlarmsForMetricCommand.js +0 -28
- package/dist-cjs/commands/DescribeAnomalyDetectorsCommand.js +0 -26
- package/dist-cjs/commands/DescribeInsightRulesCommand.js +0 -27
- package/dist-cjs/commands/DisableAlarmActionsCommand.js +0 -25
- package/dist-cjs/commands/DisableInsightRulesCommand.js +0 -25
- package/dist-cjs/commands/EnableAlarmActionsCommand.js +0 -24
- package/dist-cjs/commands/EnableInsightRulesCommand.js +0 -24
- package/dist-cjs/commands/GetDashboardCommand.js +0 -27
- package/dist-cjs/commands/GetInsightRuleReportCommand.js +0 -60
- package/dist-cjs/commands/GetMetricDataCommand.js +0 -59
- package/dist-cjs/commands/GetMetricStatisticsCommand.js +0 -75
- package/dist-cjs/commands/GetMetricStreamCommand.js +0 -24
- package/dist-cjs/commands/GetMetricWidgetImageCommand.js +0 -41
- package/dist-cjs/commands/ListDashboardsCommand.js +0 -32
- package/dist-cjs/commands/ListMetricStreamsCommand.js +0 -24
- package/dist-cjs/commands/ListMetricsCommand.js +0 -37
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutAnomalyDetectorCommand.js +0 -26
- package/dist-cjs/commands/PutCompositeAlarmCommand.js +0 -59
- package/dist-cjs/commands/PutDashboardCommand.js +0 -37
- package/dist-cjs/commands/PutInsightRuleCommand.js +0 -28
- package/dist-cjs/commands/PutMetricAlarmCommand.js +0 -87
- package/dist-cjs/commands/PutMetricDataCommand.js +0 -68
- package/dist-cjs/commands/PutMetricStreamCommand.js +0 -51
- package/dist-cjs/commands/SetAlarmStateCommand.js +0 -39
- package/dist-cjs/commands/StartMetricStreamsCommand.js +0 -24
- package/dist-cjs/commands/StopMetricStreamsCommand.js +0 -24
- package/dist-cjs/commands/TagResourceCommand.js +0 -34
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/index.js +39 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -48
- package/dist-cjs/models/models_0.js +0 -315
- package/dist-cjs/pagination/DescribeAlarmHistoryPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeAlarmsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeInsightRulesPaginator.js +0 -10
- package/dist-cjs/pagination/GetMetricDataPaginator.js +0 -10
- package/dist-cjs/pagination/ListDashboardsPaginator.js +0 -10
- package/dist-cjs/pagination/ListMetricStreamsPaginator.js +0 -10
- package/dist-cjs/pagination/ListMetricsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_query.js +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForAlarmExists.js +0 -9
- package/dist-cjs/waiters/waitForCompositeAlarmExists.js +0 -9
- package/dist-es/commands/index.js +36 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -48
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/commands/index.d.ts +36 -0
- package/dist-types/index.d.ts +5 -48
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/CloudWatch.d.ts +37 -536
- package/dist-types/ts3.4/CloudWatchClient.d.ts +24 -103
- package/dist-types/ts3.4/commands/DeleteAlarmsCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/DeleteAnomalyDetectorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteDashboardsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteInsightRulesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteMetricStreamCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeAlarmHistoryCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeAlarmsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeAlarmsForMetricCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeAnomalyDetectorsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeInsightRulesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DisableAlarmActionsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DisableInsightRulesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/EnableAlarmActionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/EnableInsightRulesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetDashboardCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetInsightRuleReportCommand.d.ts +2 -56
- package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/GetMetricStatisticsCommand.d.ts +2 -71
- package/dist-types/ts3.4/commands/GetMetricStreamCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetMetricWidgetImageCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListMetricStreamsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMetricsCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutAnomalyDetectorCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/PutCompositeAlarmCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/PutDashboardCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/PutInsightRuleCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/PutMetricAlarmCommand.d.ts +2 -83
- package/dist-types/ts3.4/commands/PutMetricDataCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/PutMetricStreamCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/SetAlarmStateCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/StartMetricStreamsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopMetricStreamsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +36 -0
- package/dist-types/ts3.4/index.d.ts +5 -48
- package/dist-types/ts3.4/models/models_0.d.ts +481 -2223
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForAlarmExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForCompositeAlarmExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +33 -33
|
@@ -36,648 +36,149 @@ import { StartMetricStreamsCommandInput, StartMetricStreamsCommandOutput } from
|
|
|
36
36
|
import { StopMetricStreamsCommandInput, StopMetricStreamsCommandOutput } from "./commands/StopMetricStreamsCommand";
|
|
37
37
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
38
38
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
39
|
-
|
|
40
|
-
* <p>Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources and the
|
|
41
|
-
* applications you run on Amazon Web Services in real time. You can use CloudWatch to collect and track
|
|
42
|
-
* metrics, which are the variables you want to measure for your resources and
|
|
43
|
-
* applications.</p>
|
|
44
|
-
*
|
|
45
|
-
* <p>CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules
|
|
46
|
-
* that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2
|
|
47
|
-
* instances. Then, use this data to determine whether you should launch
|
|
48
|
-
* additional instances to handle increased load. You can also use this data to stop
|
|
49
|
-
* under-used instances to save
|
|
50
|
-
* money.</p>
|
|
51
|
-
*
|
|
52
|
-
* <p>In addition to monitoring the built-in metrics that come with Amazon Web Services, you can monitor
|
|
53
|
-
* your own custom metrics. With CloudWatch, you gain system-wide visibility into resource
|
|
54
|
-
* utilization, application performance, and operational health.</p>
|
|
55
|
-
*/
|
|
39
|
+
|
|
56
40
|
export declare class CloudWatch extends CloudWatchClient {
|
|
57
|
-
|
|
58
|
-
* <p>Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, this total can include no more
|
|
59
|
-
* than one composite alarm. For example, you could delete 99 metric alarms and one composite alarms with one operation, but you can't
|
|
60
|
-
* delete two composite alarms with one operation.</p>
|
|
61
|
-
* <p>
|
|
62
|
-
* In the event of an error, no alarms are
|
|
63
|
-
* deleted.</p>
|
|
64
|
-
* <note>
|
|
65
|
-
* <p>It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and
|
|
66
|
-
* composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle
|
|
67
|
-
* because there is always still a composite alarm that depends on that alarm that you want to delete.</p>
|
|
68
|
-
* <p>To get out of such a situation, you must
|
|
69
|
-
* break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest
|
|
70
|
-
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>False</code>. </p>
|
|
71
|
-
* <p>Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
|
|
72
|
-
* </p>
|
|
73
|
-
* </note>
|
|
74
|
-
*/
|
|
41
|
+
|
|
75
42
|
deleteAlarms(args: DeleteAlarmsCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAlarmsCommandOutput>;
|
|
76
43
|
deleteAlarms(args: DeleteAlarmsCommandInput, cb: (err: any, data?: DeleteAlarmsCommandOutput) => void): void;
|
|
77
44
|
deleteAlarms(args: DeleteAlarmsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAlarmsCommandOutput) => void): void;
|
|
78
|
-
|
|
79
|
-
* <p>Deletes the specified anomaly detection model from your account.</p>
|
|
80
|
-
*/
|
|
45
|
+
|
|
81
46
|
deleteAnomalyDetector(args: DeleteAnomalyDetectorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAnomalyDetectorCommandOutput>;
|
|
82
47
|
deleteAnomalyDetector(args: DeleteAnomalyDetectorCommandInput, cb: (err: any, data?: DeleteAnomalyDetectorCommandOutput) => void): void;
|
|
83
48
|
deleteAnomalyDetector(args: DeleteAnomalyDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAnomalyDetectorCommandOutput) => void): void;
|
|
84
|
-
|
|
85
|
-
* <p>Deletes all dashboards that you specify. You
|
|
86
|
-
* can specify up to 100 dashboards to delete. If there is an error during this call, no dashboards are
|
|
87
|
-
* deleted.</p>
|
|
88
|
-
*/
|
|
49
|
+
|
|
89
50
|
deleteDashboards(args: DeleteDashboardsCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDashboardsCommandOutput>;
|
|
90
51
|
deleteDashboards(args: DeleteDashboardsCommandInput, cb: (err: any, data?: DeleteDashboardsCommandOutput) => void): void;
|
|
91
52
|
deleteDashboards(args: DeleteDashboardsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDashboardsCommandOutput) => void): void;
|
|
92
|
-
|
|
93
|
-
* <p>Permanently deletes the specified Contributor Insights rules.</p>
|
|
94
|
-
* <p>If you create a rule, delete it, and then re-create it with the same name, historical data from the first time
|
|
95
|
-
* the rule was created might
|
|
96
|
-
* not be available.</p>
|
|
97
|
-
*/
|
|
53
|
+
|
|
98
54
|
deleteInsightRules(args: DeleteInsightRulesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInsightRulesCommandOutput>;
|
|
99
55
|
deleteInsightRules(args: DeleteInsightRulesCommandInput, cb: (err: any, data?: DeleteInsightRulesCommandOutput) => void): void;
|
|
100
56
|
deleteInsightRules(args: DeleteInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInsightRulesCommandOutput) => void): void;
|
|
101
|
-
|
|
102
|
-
* <p>Permanently deletes the metric stream that you specify.</p>
|
|
103
|
-
*/
|
|
57
|
+
|
|
104
58
|
deleteMetricStream(args: DeleteMetricStreamCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMetricStreamCommandOutput>;
|
|
105
59
|
deleteMetricStream(args: DeleteMetricStreamCommandInput, cb: (err: any, data?: DeleteMetricStreamCommandOutput) => void): void;
|
|
106
60
|
deleteMetricStream(args: DeleteMetricStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMetricStreamCommandOutput) => void): void;
|
|
107
|
-
|
|
108
|
-
* <p>Retrieves the history for the specified alarm. You can filter the results by date range or item type.
|
|
109
|
-
* If an alarm name is not specified, the histories for either all metric alarms or all composite alarms are returned.</p>
|
|
110
|
-
* <p>CloudWatch retains the history of an alarm even if you delete the alarm.</p>
|
|
111
|
-
*/
|
|
61
|
+
|
|
112
62
|
describeAlarmHistory(args: DescribeAlarmHistoryCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAlarmHistoryCommandOutput>;
|
|
113
63
|
describeAlarmHistory(args: DescribeAlarmHistoryCommandInput, cb: (err: any, data?: DescribeAlarmHistoryCommandOutput) => void): void;
|
|
114
64
|
describeAlarmHistory(args: DescribeAlarmHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAlarmHistoryCommandOutput) => void): void;
|
|
115
|
-
|
|
116
|
-
* <p>Retrieves the specified alarms. You can filter the results by specifying a prefix for the alarm
|
|
117
|
-
* name, the alarm state, or a prefix for any action.</p>
|
|
118
|
-
*/
|
|
65
|
+
|
|
119
66
|
describeAlarms(args: DescribeAlarmsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAlarmsCommandOutput>;
|
|
120
67
|
describeAlarms(args: DescribeAlarmsCommandInput, cb: (err: any, data?: DescribeAlarmsCommandOutput) => void): void;
|
|
121
68
|
describeAlarms(args: DescribeAlarmsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAlarmsCommandOutput) => void): void;
|
|
122
|
-
|
|
123
|
-
* <p>Retrieves the alarms for the specified metric. To
|
|
124
|
-
* filter the results, specify a statistic, period, or unit.</p>
|
|
125
|
-
* <p>This operation retrieves only standard alarms that are based on
|
|
126
|
-
* the specified metric. It does not return alarms based on math expressions that
|
|
127
|
-
* use the specified metric, or composite alarms that use the specified metric.</p>
|
|
128
|
-
*/
|
|
69
|
+
|
|
129
70
|
describeAlarmsForMetric(args: DescribeAlarmsForMetricCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAlarmsForMetricCommandOutput>;
|
|
130
71
|
describeAlarmsForMetric(args: DescribeAlarmsForMetricCommandInput, cb: (err: any, data?: DescribeAlarmsForMetricCommandOutput) => void): void;
|
|
131
72
|
describeAlarmsForMetric(args: DescribeAlarmsForMetricCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAlarmsForMetricCommandOutput) => void): void;
|
|
132
|
-
|
|
133
|
-
* <p>Lists the anomaly detection models that you have created in your account. You can list all
|
|
134
|
-
* models in your account or filter the results to only the models that are related to a
|
|
135
|
-
* certain namespace, metric name, or metric dimension.</p>
|
|
136
|
-
*/
|
|
73
|
+
|
|
137
74
|
describeAnomalyDetectors(args: DescribeAnomalyDetectorsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAnomalyDetectorsCommandOutput>;
|
|
138
75
|
describeAnomalyDetectors(args: DescribeAnomalyDetectorsCommandInput, cb: (err: any, data?: DescribeAnomalyDetectorsCommandOutput) => void): void;
|
|
139
76
|
describeAnomalyDetectors(args: DescribeAnomalyDetectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAnomalyDetectorsCommandOutput) => void): void;
|
|
140
|
-
|
|
141
|
-
* <p>Returns a list of all the Contributor Insights rules in your account.</p>
|
|
142
|
-
*
|
|
143
|
-
* <p>For more information about Contributor Insights, see
|
|
144
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using Contributor Insights to Analyze High-Cardinality Data</a>.</p>
|
|
145
|
-
*/
|
|
77
|
+
|
|
146
78
|
describeInsightRules(args: DescribeInsightRulesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeInsightRulesCommandOutput>;
|
|
147
79
|
describeInsightRules(args: DescribeInsightRulesCommandInput, cb: (err: any, data?: DescribeInsightRulesCommandOutput) => void): void;
|
|
148
80
|
describeInsightRules(args: DescribeInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInsightRulesCommandOutput) => void): void;
|
|
149
|
-
|
|
150
|
-
* <p>Disables the actions for the specified alarms. When an alarm's actions are disabled, the
|
|
151
|
-
* alarm actions do not execute when the alarm state changes.</p>
|
|
152
|
-
*/
|
|
81
|
+
|
|
153
82
|
disableAlarmActions(args: DisableAlarmActionsCommandInput, options?: __HttpHandlerOptions): Promise<DisableAlarmActionsCommandOutput>;
|
|
154
83
|
disableAlarmActions(args: DisableAlarmActionsCommandInput, cb: (err: any, data?: DisableAlarmActionsCommandOutput) => void): void;
|
|
155
84
|
disableAlarmActions(args: DisableAlarmActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableAlarmActionsCommandOutput) => void): void;
|
|
156
|
-
|
|
157
|
-
* <p>Disables the specified Contributor Insights rules. When rules are disabled, they do not analyze log groups and do
|
|
158
|
-
* not incur costs.</p>
|
|
159
|
-
*/
|
|
85
|
+
|
|
160
86
|
disableInsightRules(args: DisableInsightRulesCommandInput, options?: __HttpHandlerOptions): Promise<DisableInsightRulesCommandOutput>;
|
|
161
87
|
disableInsightRules(args: DisableInsightRulesCommandInput, cb: (err: any, data?: DisableInsightRulesCommandOutput) => void): void;
|
|
162
88
|
disableInsightRules(args: DisableInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableInsightRulesCommandOutput) => void): void;
|
|
163
|
-
|
|
164
|
-
* <p>Enables the actions for the specified alarms.</p>
|
|
165
|
-
*/
|
|
89
|
+
|
|
166
90
|
enableAlarmActions(args: EnableAlarmActionsCommandInput, options?: __HttpHandlerOptions): Promise<EnableAlarmActionsCommandOutput>;
|
|
167
91
|
enableAlarmActions(args: EnableAlarmActionsCommandInput, cb: (err: any, data?: EnableAlarmActionsCommandOutput) => void): void;
|
|
168
92
|
enableAlarmActions(args: EnableAlarmActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableAlarmActionsCommandOutput) => void): void;
|
|
169
|
-
|
|
170
|
-
* <p>Enables the specified Contributor Insights rules. When rules are enabled, they immediately begin analyzing log data.</p>
|
|
171
|
-
*/
|
|
93
|
+
|
|
172
94
|
enableInsightRules(args: EnableInsightRulesCommandInput, options?: __HttpHandlerOptions): Promise<EnableInsightRulesCommandOutput>;
|
|
173
95
|
enableInsightRules(args: EnableInsightRulesCommandInput, cb: (err: any, data?: EnableInsightRulesCommandOutput) => void): void;
|
|
174
96
|
enableInsightRules(args: EnableInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableInsightRulesCommandOutput) => void): void;
|
|
175
|
-
|
|
176
|
-
* <p>Displays the details of the dashboard that you specify.</p>
|
|
177
|
-
* <p>To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data returned
|
|
178
|
-
* within <code>DashboardBody</code> as the template for the new dashboard when you call <code>PutDashboard</code> to create
|
|
179
|
-
* the copy.</p>
|
|
180
|
-
*/
|
|
97
|
+
|
|
181
98
|
getDashboard(args: GetDashboardCommandInput, options?: __HttpHandlerOptions): Promise<GetDashboardCommandOutput>;
|
|
182
99
|
getDashboard(args: GetDashboardCommandInput, cb: (err: any, data?: GetDashboardCommandOutput) => void): void;
|
|
183
100
|
getDashboard(args: GetDashboardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDashboardCommandOutput) => void): void;
|
|
184
|
-
|
|
185
|
-
* <p>This operation returns the time series data collected by a Contributor Insights rule. The data includes the identity and number of
|
|
186
|
-
* contributors to the log group.</p>
|
|
187
|
-
* <p>You can also optionally return one or more statistics about each data point in the time series. These statistics can include the following:</p>
|
|
188
|
-
* <ul>
|
|
189
|
-
* <li>
|
|
190
|
-
* <p>
|
|
191
|
-
* <code>UniqueContributors</code> -- the number of unique contributors for each data point.</p>
|
|
192
|
-
* </li>
|
|
193
|
-
* <li>
|
|
194
|
-
* <p>
|
|
195
|
-
* <code>MaxContributorValue</code> -- the value of the top contributor for each data point. The identity of the
|
|
196
|
-
* contributor might change for each data point in the graph.</p>
|
|
197
|
-
* <p>If this rule aggregates by COUNT, the top contributor for each data point is the contributor with the
|
|
198
|
-
* most occurrences in that period. If the rule aggregates by SUM, the top contributor is the contributor with the highest sum in the log field specified
|
|
199
|
-
* by the rule's <code>Value</code>, during that period.</p>
|
|
200
|
-
* </li>
|
|
201
|
-
* <li>
|
|
202
|
-
* <p>
|
|
203
|
-
* <code>SampleCount</code> -- the number of data points matched by the rule.</p>
|
|
204
|
-
* </li>
|
|
205
|
-
* <li>
|
|
206
|
-
* <p>
|
|
207
|
-
* <code>Sum</code> -- the sum of the values from all contributors during the time period represented by that data point.</p>
|
|
208
|
-
* </li>
|
|
209
|
-
* <li>
|
|
210
|
-
* <p>
|
|
211
|
-
* <code>Minimum</code> -- the minimum value from a single observation during the time period represented by that data point.</p>
|
|
212
|
-
* </li>
|
|
213
|
-
* <li>
|
|
214
|
-
* <p>
|
|
215
|
-
* <code>Maximum</code> -- the maximum value from a single observation during the time period represented by that data point.</p>
|
|
216
|
-
* </li>
|
|
217
|
-
* <li>
|
|
218
|
-
* <p>
|
|
219
|
-
* <code>Average</code> -- the average value from all contributors during the time period represented by that data point.</p>
|
|
220
|
-
* </li>
|
|
221
|
-
* </ul>
|
|
222
|
-
*/
|
|
101
|
+
|
|
223
102
|
getInsightRuleReport(args: GetInsightRuleReportCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightRuleReportCommandOutput>;
|
|
224
103
|
getInsightRuleReport(args: GetInsightRuleReportCommandInput, cb: (err: any, data?: GetInsightRuleReportCommandOutput) => void): void;
|
|
225
104
|
getInsightRuleReport(args: GetInsightRuleReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInsightRuleReportCommandOutput) => void): void;
|
|
226
|
-
|
|
227
|
-
* <p>You can use the <code>GetMetricData</code> API to retrieve as many as 500 different
|
|
228
|
-
* metrics in a single request, with a total of as many as 100,800 data points. You can also
|
|
229
|
-
* optionally perform math expressions on the values of the returned statistics, to create
|
|
230
|
-
* new time series that represent new insights into your data. For example, using Lambda
|
|
231
|
-
* metrics, you could divide the Errors metric by the Invocations metric to get an error
|
|
232
|
-
* rate time series. For more information about metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric Math Syntax and Functions</a> in the <i>Amazon CloudWatch User
|
|
233
|
-
* Guide</i>.</p>
|
|
234
|
-
*
|
|
235
|
-
* <p>Calls to the <code>GetMetricData</code> API have a different pricing structure than
|
|
236
|
-
* calls to <code>GetMetricStatistics</code>. For more information about pricing, see
|
|
237
|
-
* <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.</p>
|
|
238
|
-
*
|
|
239
|
-
* <p>Amazon CloudWatch retains metric data as follows:</p>
|
|
240
|
-
* <ul>
|
|
241
|
-
* <li>
|
|
242
|
-
* <p>Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution
|
|
243
|
-
* metrics and are available only for custom metrics that have been defined with a <code>StorageResolution</code> of 1.</p>
|
|
244
|
-
* </li>
|
|
245
|
-
* <li>
|
|
246
|
-
* <p>Data points with a period of 60 seconds (1-minute) are available for 15 days.</p>
|
|
247
|
-
* </li>
|
|
248
|
-
* <li>
|
|
249
|
-
* <p>Data points with a period of 300 seconds (5-minute) are available for 63 days.</p>
|
|
250
|
-
* </li>
|
|
251
|
-
* <li>
|
|
252
|
-
* <p>Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months).</p>
|
|
253
|
-
* </li>
|
|
254
|
-
* </ul>
|
|
255
|
-
* <p>Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect
|
|
256
|
-
* data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available,
|
|
257
|
-
* but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with
|
|
258
|
-
* a resolution of 1 hour.</p>
|
|
259
|
-
*
|
|
260
|
-
* <p>If you omit <code>Unit</code> in your request, all data that was collected with any unit is returned, along with the corresponding units that were specified
|
|
261
|
-
* when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified.
|
|
262
|
-
* If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.</p>
|
|
263
|
-
*/
|
|
105
|
+
|
|
264
106
|
getMetricData(args: GetMetricDataCommandInput, options?: __HttpHandlerOptions): Promise<GetMetricDataCommandOutput>;
|
|
265
107
|
getMetricData(args: GetMetricDataCommandInput, cb: (err: any, data?: GetMetricDataCommandOutput) => void): void;
|
|
266
108
|
getMetricData(args: GetMetricDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetricDataCommandOutput) => void): void;
|
|
267
|
-
|
|
268
|
-
* <p>Gets statistics for the specified metric.</p>
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
* <p>The maximum number of data points returned from a single call is 1,440. If
|
|
273
|
-
* you request more than 1,440 data points, CloudWatch returns an error.
|
|
274
|
-
* To reduce the number of data points, you can narrow the specified time range and make
|
|
275
|
-
* multiple requests across adjacent time ranges, or you can increase the specified period.
|
|
276
|
-
* Data points are not returned in chronological order.</p>
|
|
277
|
-
*
|
|
278
|
-
* <p>CloudWatch aggregates data points based on the length of the period
|
|
279
|
-
* that you specify. For example, if you request statistics with a one-hour period,
|
|
280
|
-
* CloudWatch aggregates all data points with time stamps that fall within each
|
|
281
|
-
* one-hour period. Therefore, the number of values aggregated by CloudWatch is larger than
|
|
282
|
-
* the number of data points returned.</p>
|
|
283
|
-
* <p>CloudWatch needs raw data points to calculate percentile statistics. If you publish
|
|
284
|
-
* data using a statistic set instead, you can only retrieve
|
|
285
|
-
* percentile statistics for this data if one of the following conditions is true:</p>
|
|
286
|
-
* <ul>
|
|
287
|
-
* <li>
|
|
288
|
-
* <p>The SampleCount value of the statistic set is 1.</p>
|
|
289
|
-
* </li>
|
|
290
|
-
* <li>
|
|
291
|
-
* <p>The Min and the Max values of the statistic set are equal.</p>
|
|
292
|
-
* </li>
|
|
293
|
-
* </ul>
|
|
294
|
-
* <p>Percentile statistics are not available for metrics when any of the metric values are negative numbers.</p>
|
|
295
|
-
* <p>Amazon CloudWatch retains metric data as follows:</p>
|
|
296
|
-
* <ul>
|
|
297
|
-
* <li>
|
|
298
|
-
* <p>Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution
|
|
299
|
-
* metrics and are available only for custom metrics that have been defined with a <code>StorageResolution</code> of 1.</p>
|
|
300
|
-
* </li>
|
|
301
|
-
* <li>
|
|
302
|
-
* <p>Data points with a period of 60 seconds (1-minute) are available for 15 days.</p>
|
|
303
|
-
* </li>
|
|
304
|
-
* <li>
|
|
305
|
-
* <p>Data points with a period of 300 seconds (5-minute) are available for 63 days.</p>
|
|
306
|
-
* </li>
|
|
307
|
-
* <li>
|
|
308
|
-
* <p>Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months).</p>
|
|
309
|
-
* </li>
|
|
310
|
-
* </ul>
|
|
311
|
-
* <p>Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect
|
|
312
|
-
* data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available,
|
|
313
|
-
* but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with
|
|
314
|
-
* a resolution of 1 hour.</p>
|
|
315
|
-
* <p>CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.</p>
|
|
316
|
-
*
|
|
317
|
-
* <p>For information about metrics and dimensions supported by Amazon Web Services services, see the
|
|
318
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon CloudWatch Metrics and Dimensions Reference</a> in the
|
|
319
|
-
* <i>Amazon CloudWatch User Guide</i>.</p>
|
|
320
|
-
*/
|
|
109
|
+
|
|
321
110
|
getMetricStatistics(args: GetMetricStatisticsCommandInput, options?: __HttpHandlerOptions): Promise<GetMetricStatisticsCommandOutput>;
|
|
322
111
|
getMetricStatistics(args: GetMetricStatisticsCommandInput, cb: (err: any, data?: GetMetricStatisticsCommandOutput) => void): void;
|
|
323
112
|
getMetricStatistics(args: GetMetricStatisticsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetricStatisticsCommandOutput) => void): void;
|
|
324
|
-
|
|
325
|
-
* <p>Returns information about the metric stream that you specify.</p>
|
|
326
|
-
*/
|
|
113
|
+
|
|
327
114
|
getMetricStream(args: GetMetricStreamCommandInput, options?: __HttpHandlerOptions): Promise<GetMetricStreamCommandOutput>;
|
|
328
115
|
getMetricStream(args: GetMetricStreamCommandInput, cb: (err: any, data?: GetMetricStreamCommandOutput) => void): void;
|
|
329
116
|
getMetricStream(args: GetMetricStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetricStreamCommandOutput) => void): void;
|
|
330
|
-
|
|
331
|
-
* <p>You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph of
|
|
332
|
-
* one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this
|
|
333
|
-
* image into your services and products, such as wiki pages, reports, and documents.
|
|
334
|
-
* You could also retrieve images regularly, such as every minute, and create your own
|
|
335
|
-
* custom live dashboard.</p>
|
|
336
|
-
*
|
|
337
|
-
* <p>The graph you retrieve can include all CloudWatch metric graph features, including metric math
|
|
338
|
-
* and horizontal and vertical annotations.</p>
|
|
339
|
-
*
|
|
340
|
-
* <p>There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> action has the following limits:</p>
|
|
341
|
-
* <ul>
|
|
342
|
-
* <li>
|
|
343
|
-
* <p>As many as 100 metrics in the graph.</p>
|
|
344
|
-
* </li>
|
|
345
|
-
* <li>
|
|
346
|
-
* <p>Up to 100 KB uncompressed payload.</p>
|
|
347
|
-
* </li>
|
|
348
|
-
* </ul>
|
|
349
|
-
*/
|
|
117
|
+
|
|
350
118
|
getMetricWidgetImage(args: GetMetricWidgetImageCommandInput, options?: __HttpHandlerOptions): Promise<GetMetricWidgetImageCommandOutput>;
|
|
351
119
|
getMetricWidgetImage(args: GetMetricWidgetImageCommandInput, cb: (err: any, data?: GetMetricWidgetImageCommandOutput) => void): void;
|
|
352
120
|
getMetricWidgetImage(args: GetMetricWidgetImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetricWidgetImageCommandOutput) => void): void;
|
|
353
|
-
|
|
354
|
-
* <p>Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, only
|
|
355
|
-
* those dashboards with names starting with the prefix are listed. Otherwise, all dashboards in your account are
|
|
356
|
-
* listed.
|
|
357
|
-
* </p>
|
|
358
|
-
* <p>
|
|
359
|
-
* <code>ListDashboards</code> returns up to 1000 results on one page. If there
|
|
360
|
-
* are more than 1000 dashboards, you can call <code>ListDashboards</code> again and
|
|
361
|
-
* include the value you received for <code>NextToken</code> in the first call, to receive
|
|
362
|
-
* the next 1000 results.</p>
|
|
363
|
-
*/
|
|
121
|
+
|
|
364
122
|
listDashboards(args: ListDashboardsCommandInput, options?: __HttpHandlerOptions): Promise<ListDashboardsCommandOutput>;
|
|
365
123
|
listDashboards(args: ListDashboardsCommandInput, cb: (err: any, data?: ListDashboardsCommandOutput) => void): void;
|
|
366
124
|
listDashboards(args: ListDashboardsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDashboardsCommandOutput) => void): void;
|
|
367
|
-
|
|
368
|
-
* <p>List the specified metrics. You can use the returned metrics with
|
|
369
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
370
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> to obtain statistical data.</p>
|
|
371
|
-
* <p>Up to 500 results are returned for any one call. To retrieve additional results,
|
|
372
|
-
* use the returned token with subsequent calls.</p>
|
|
373
|
-
* <p>After you create a metric, allow up to 15 minutes before the metric appears.
|
|
374
|
-
* You can see statistics about the metric sooner by using <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
375
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.</p>
|
|
376
|
-
*
|
|
377
|
-
* <p>
|
|
378
|
-
* <code>ListMetrics</code> doesn't return information about metrics if those metrics haven't
|
|
379
|
-
* reported data in the past two weeks. To retrieve those metrics, use
|
|
380
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
381
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.</p>
|
|
382
|
-
*/
|
|
125
|
+
|
|
383
126
|
listMetrics(args: ListMetricsCommandInput, options?: __HttpHandlerOptions): Promise<ListMetricsCommandOutput>;
|
|
384
127
|
listMetrics(args: ListMetricsCommandInput, cb: (err: any, data?: ListMetricsCommandOutput) => void): void;
|
|
385
128
|
listMetrics(args: ListMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMetricsCommandOutput) => void): void;
|
|
386
|
-
|
|
387
|
-
* <p>Returns a list of metric streams in this account.</p>
|
|
388
|
-
*/
|
|
129
|
+
|
|
389
130
|
listMetricStreams(args: ListMetricStreamsCommandInput, options?: __HttpHandlerOptions): Promise<ListMetricStreamsCommandOutput>;
|
|
390
131
|
listMetricStreams(args: ListMetricStreamsCommandInput, cb: (err: any, data?: ListMetricStreamsCommandOutput) => void): void;
|
|
391
132
|
listMetricStreams(args: ListMetricStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMetricStreamsCommandOutput) => void): void;
|
|
392
|
-
|
|
393
|
-
* <p>Displays the tags associated with a CloudWatch resource. Currently, alarms
|
|
394
|
-
* and Contributor Insights rules support tagging.</p>
|
|
395
|
-
*/
|
|
133
|
+
|
|
396
134
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
397
135
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
398
136
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
399
|
-
|
|
400
|
-
* <p>Creates an anomaly detection model for a CloudWatch metric. You can use the model
|
|
401
|
-
* to display a band of expected normal values when the metric is graphed.</p>
|
|
402
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch Anomaly Detection</a>.</p>
|
|
403
|
-
*/
|
|
137
|
+
|
|
404
138
|
putAnomalyDetector(args: PutAnomalyDetectorCommandInput, options?: __HttpHandlerOptions): Promise<PutAnomalyDetectorCommandOutput>;
|
|
405
139
|
putAnomalyDetector(args: PutAnomalyDetectorCommandInput, cb: (err: any, data?: PutAnomalyDetectorCommandOutput) => void): void;
|
|
406
140
|
putAnomalyDetector(args: PutAnomalyDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAnomalyDetectorCommandOutput) => void): void;
|
|
407
|
-
|
|
408
|
-
* <p>Creates or updates a <i>composite alarm</i>. When you create a composite
|
|
409
|
-
* alarm, you specify a rule expression for the alarm that takes into account the alarm
|
|
410
|
-
* states of other alarms that you have created. The composite alarm goes into ALARM state
|
|
411
|
-
* only if all conditions of the rule are met.</p>
|
|
412
|
-
* <p>The alarms specified in a composite alarm's rule expression can include metric alarms
|
|
413
|
-
* and other composite alarms.</p>
|
|
414
|
-
* <p>Using composite alarms can reduce
|
|
415
|
-
* alarm noise. You can create multiple metric alarms,
|
|
416
|
-
* and also create a composite alarm and
|
|
417
|
-
* set up alerts only
|
|
418
|
-
* for the composite alarm. For example, you could create a composite
|
|
419
|
-
* alarm that goes into ALARM state only when more than one of the underlying metric alarms
|
|
420
|
-
* are in ALARM state.</p>
|
|
421
|
-
* <p>Currently, the only alarm actions that can be taken by composite alarms are notifying
|
|
422
|
-
* SNS topics.</p>
|
|
423
|
-
* <note>
|
|
424
|
-
* <p>It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and
|
|
425
|
-
* composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle
|
|
426
|
-
* because there is always still a composite alarm that depends on that alarm that you want to delete.</p>
|
|
427
|
-
* <p>To get out of such a situation, you must
|
|
428
|
-
* break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest
|
|
429
|
-
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>False</code>. </p>
|
|
430
|
-
* <p>Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
|
|
431
|
-
* </p>
|
|
432
|
-
* </note>
|
|
433
|
-
* <p>When this operation creates an alarm, the alarm state is immediately set to
|
|
434
|
-
* <code>INSUFFICIENT_DATA</code>. The alarm is then evaluated and its state is set
|
|
435
|
-
* appropriately. Any actions associated with the new state are then executed. For a
|
|
436
|
-
* composite alarm, this initial time after creation is the only time that
|
|
437
|
-
* the
|
|
438
|
-
* alarm can be in <code>INSUFFICIENT_DATA</code> state.</p>
|
|
439
|
-
* <p>When you update an existing alarm, its state is left unchanged, but the update
|
|
440
|
-
* completely overwrites the previous configuration of the alarm.</p>
|
|
441
|
-
*
|
|
442
|
-
* <p>If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to create
|
|
443
|
-
* a composite alarm that has Systems Manager OpsItem actions.</p>
|
|
444
|
-
*/
|
|
141
|
+
|
|
445
142
|
putCompositeAlarm(args: PutCompositeAlarmCommandInput, options?: __HttpHandlerOptions): Promise<PutCompositeAlarmCommandOutput>;
|
|
446
143
|
putCompositeAlarm(args: PutCompositeAlarmCommandInput, cb: (err: any, data?: PutCompositeAlarmCommandOutput) => void): void;
|
|
447
144
|
putCompositeAlarm(args: PutCompositeAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutCompositeAlarmCommandOutput) => void): void;
|
|
448
|
-
|
|
449
|
-
* <p>Creates a dashboard if it does not already exist, or updates an existing dashboard. If you update a dashboard,
|
|
450
|
-
* the entire contents are replaced with what you specify here.</p>
|
|
451
|
-
* <p>All dashboards in your account are global, not region-specific.</p>
|
|
452
|
-
* <p>A simple way to create a dashboard using <code>PutDashboard</code> is to copy an
|
|
453
|
-
* existing dashboard. To copy an existing dashboard using the console, you can load the dashboard
|
|
454
|
-
* and then use the View/edit source command in the Actions menu to display the JSON block
|
|
455
|
-
* for that dashboard. Another way to copy a dashboard is to
|
|
456
|
-
* use <code>GetDashboard</code>, and then use the data returned
|
|
457
|
-
* within <code>DashboardBody</code> as the template for the new dashboard when you call <code>PutDashboard</code>.</p>
|
|
458
|
-
* <p>When you create a dashboard with <code>PutDashboard</code>, a good practice is to
|
|
459
|
-
* add a text widget at the top of the dashboard with a message that the dashboard was created by script and should
|
|
460
|
-
* not be changed in the console. This message could also point console users to the location
|
|
461
|
-
* of the <code>DashboardBody</code> script or the CloudFormation template used to create the
|
|
462
|
-
* dashboard.</p>
|
|
463
|
-
*/
|
|
145
|
+
|
|
464
146
|
putDashboard(args: PutDashboardCommandInput, options?: __HttpHandlerOptions): Promise<PutDashboardCommandOutput>;
|
|
465
147
|
putDashboard(args: PutDashboardCommandInput, cb: (err: any, data?: PutDashboardCommandOutput) => void): void;
|
|
466
148
|
putDashboard(args: PutDashboardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDashboardCommandOutput) => void): void;
|
|
467
|
-
|
|
468
|
-
* <p>Creates a Contributor Insights rule. Rules evaluate log events in a
|
|
469
|
-
* CloudWatch Logs log group, enabling you to find contributor data for the log events in that log group. For more information,
|
|
470
|
-
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using Contributor Insights to Analyze High-Cardinality Data</a>.</p>
|
|
471
|
-
* <p>If you create a rule, delete it, and then re-create it with the same name, historical data from the first time
|
|
472
|
-
* the rule was created might not be available.</p>
|
|
473
|
-
*/
|
|
149
|
+
|
|
474
150
|
putInsightRule(args: PutInsightRuleCommandInput, options?: __HttpHandlerOptions): Promise<PutInsightRuleCommandOutput>;
|
|
475
151
|
putInsightRule(args: PutInsightRuleCommandInput, cb: (err: any, data?: PutInsightRuleCommandOutput) => void): void;
|
|
476
152
|
putInsightRule(args: PutInsightRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInsightRuleCommandOutput) => void): void;
|
|
477
|
-
|
|
478
|
-
* <p>Creates or updates an alarm and associates it with the specified metric, metric math expression,
|
|
479
|
-
* or anomaly detection model.</p>
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
* <p>Alarms based on anomaly detection models cannot have Auto Scaling actions.</p>
|
|
483
|
-
* <p>When this operation creates an alarm, the alarm state is immediately set to
|
|
484
|
-
* <code>INSUFFICIENT_DATA</code>. The alarm is then evaluated and its state is set
|
|
485
|
-
* appropriately. Any actions associated with the new state are then executed.</p>
|
|
486
|
-
* <p>When you update an existing alarm, its state is left unchanged, but the
|
|
487
|
-
* update completely overwrites the previous configuration of the alarm.</p>
|
|
488
|
-
*
|
|
489
|
-
* <p>If you are an IAM user, you must have
|
|
490
|
-
* Amazon EC2 permissions for some alarm operations:</p>
|
|
491
|
-
* <ul>
|
|
492
|
-
* <li>
|
|
493
|
-
* <p>The <code>iam:CreateServiceLinkedRole</code> for all alarms with EC2 actions</p>
|
|
494
|
-
*
|
|
495
|
-
* </li>
|
|
496
|
-
* <li>
|
|
497
|
-
*
|
|
498
|
-
* <p>The <code>iam:CreateServiceLinkedRole</code> to create an alarm
|
|
499
|
-
* with Systems Manager OpsItem actions.</p>
|
|
500
|
-
* </li>
|
|
501
|
-
* </ul>
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
*
|
|
507
|
-
*
|
|
508
|
-
* <p>The first time you create an alarm in the
|
|
509
|
-
* Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch
|
|
510
|
-
* creates the necessary service-linked role for you. The service-linked roles
|
|
511
|
-
* are called <code>AWSServiceRoleForCloudWatchEvents</code> and
|
|
512
|
-
* <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>.
|
|
513
|
-
* For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon Web Services service-linked role</a>.</p>
|
|
514
|
-
*
|
|
515
|
-
* <p>
|
|
516
|
-
* <b>Cross-account alarms</b>
|
|
517
|
-
* </p>
|
|
518
|
-
*
|
|
519
|
-
* <p>You can set an alarm on metrics in the current account, or in another
|
|
520
|
-
* account. To create a cross-account alarm that watches a metric in a different account, you must have completed the following
|
|
521
|
-
* pre-requisites:</p>
|
|
522
|
-
* <ul>
|
|
523
|
-
* <li>
|
|
524
|
-
* <p>The account where the metrics are located (the <i>sharing account</i>) must
|
|
525
|
-
* already have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not already
|
|
526
|
-
* have this role, you must create it using the instructions in <b>Set up a
|
|
527
|
-
* sharing account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region">
|
|
528
|
-
* Cross-account cross-Region CloudWatch console</a>. The policy for that
|
|
529
|
-
* role must grant access
|
|
530
|
-
* to the ID of the account where you are creating the alarm.
|
|
531
|
-
* </p>
|
|
532
|
-
* </li>
|
|
533
|
-
* <li>
|
|
534
|
-
* <p>The account where you are creating the alarm (the <i>monitoring account</i>) must
|
|
535
|
-
* already have a service-linked role named
|
|
536
|
-
* <b>AWSServiceRoleForCloudWatchCrossAccount</b> to allow
|
|
537
|
-
* CloudWatch to assume the sharing role in the sharing account. If it does not, you must create it following the directions in <b>Set up a
|
|
538
|
-
* monitoring account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region">
|
|
539
|
-
* Cross-account cross-Region CloudWatch console</a>.</p>
|
|
540
|
-
* </li>
|
|
541
|
-
* </ul>
|
|
542
|
-
*/
|
|
153
|
+
|
|
543
154
|
putMetricAlarm(args: PutMetricAlarmCommandInput, options?: __HttpHandlerOptions): Promise<PutMetricAlarmCommandOutput>;
|
|
544
155
|
putMetricAlarm(args: PutMetricAlarmCommandInput, cb: (err: any, data?: PutMetricAlarmCommandOutput) => void): void;
|
|
545
156
|
putMetricAlarm(args: PutMetricAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutMetricAlarmCommandOutput) => void): void;
|
|
546
|
-
|
|
547
|
-
* <p>Publishes metric data points to Amazon CloudWatch. CloudWatch associates
|
|
548
|
-
* the data points with the specified metric. If the specified metric does not exist,
|
|
549
|
-
* CloudWatch creates the metric. When CloudWatch creates a metric, it can
|
|
550
|
-
* take up to fifteen minutes for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.</p>
|
|
551
|
-
*
|
|
552
|
-
* <p>You can publish either individual data points in the <code>Value</code> field, or
|
|
553
|
-
* arrays of values and the number of times each value occurred during the period by using the
|
|
554
|
-
* <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> structure. Using
|
|
555
|
-
* the <code>Values</code> and <code>Counts</code> method enables you to publish up to 150 values per metric
|
|
556
|
-
* with one <code>PutMetricData</code> request, and
|
|
557
|
-
* supports retrieving percentile statistics on this data.</p>
|
|
558
|
-
* <p>Each <code>PutMetricData</code> request is limited to 40 KB in size for HTTP POST requests. You can
|
|
559
|
-
* send a payload compressed by gzip. Each request
|
|
560
|
-
* is also limited to no more than 20 different metrics.</p>
|
|
561
|
-
* <p>Although the <code>Value</code> parameter accepts numbers of type
|
|
562
|
-
* <code>Double</code>, CloudWatch rejects values that are either too small
|
|
563
|
-
* or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,
|
|
564
|
-
* -Infinity) are not supported.</p>
|
|
565
|
-
* <p>You can use up to 10 dimensions per metric to further clarify what data the metric collects. Each dimension
|
|
566
|
-
* consists of a Name and Value pair. For more information about specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing Metrics</a> in the
|
|
567
|
-
* <i>Amazon CloudWatch User Guide</i>.</p>
|
|
568
|
-
*
|
|
569
|
-
* <p>You specify the time stamp to be associated with each data point. You can specify
|
|
570
|
-
* time stamps that are as much as two weeks before the current date, and as much as 2 hours after
|
|
571
|
-
* the current day and time.</p>
|
|
572
|
-
* <p>Data points with time stamps from 24 hours ago or longer can take at least 48
|
|
573
|
-
* hours to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
574
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> from the time they
|
|
575
|
-
* are submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available
|
|
576
|
-
* for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
577
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.</p>
|
|
578
|
-
* <p>CloudWatch needs raw data points to calculate percentile statistics. If you publish
|
|
579
|
-
* data using a statistic set instead, you can only retrieve
|
|
580
|
-
* percentile statistics for this data if one of the following conditions is true:</p>
|
|
581
|
-
* <ul>
|
|
582
|
-
* <li>
|
|
583
|
-
* <p>The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>,
|
|
584
|
-
* <code>Max</code>, and <code>Sum</code> are all equal.</p>
|
|
585
|
-
* </li>
|
|
586
|
-
* <li>
|
|
587
|
-
* <p>The <code>Min</code> and
|
|
588
|
-
* <code>Max</code> are equal, and <code>Sum</code> is equal to <code>Min</code>
|
|
589
|
-
* multiplied by <code>SampleCount</code>.</p>
|
|
590
|
-
* </li>
|
|
591
|
-
* </ul>
|
|
592
|
-
*/
|
|
157
|
+
|
|
593
158
|
putMetricData(args: PutMetricDataCommandInput, options?: __HttpHandlerOptions): Promise<PutMetricDataCommandOutput>;
|
|
594
159
|
putMetricData(args: PutMetricDataCommandInput, cb: (err: any, data?: PutMetricDataCommandOutput) => void): void;
|
|
595
160
|
putMetricData(args: PutMetricDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutMetricDataCommandOutput) => void): void;
|
|
596
|
-
|
|
597
|
-
* <p>Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics
|
|
598
|
-
* to Amazon Web Services destinations including
|
|
599
|
-
* Amazon S3 and to many third-party solutions.</p>
|
|
600
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html">
|
|
601
|
-
* Using Metric Streams</a>.</p>
|
|
602
|
-
* <p>To create a metric stream,
|
|
603
|
-
* you must be logged on to an account that has the <code>iam:PassRole</code> permission
|
|
604
|
-
* and either the <code>CloudWatchFullAccess</code>
|
|
605
|
-
* policy or the <code>cloudwatch:PutMetricStream</code>
|
|
606
|
-
* permission.</p>
|
|
607
|
-
* <p>When you create or update a metric stream, you choose one of the following:</p>
|
|
608
|
-
* <ul>
|
|
609
|
-
* <li>
|
|
610
|
-
* <p>Stream metrics from all metric namespaces in the account.</p>
|
|
611
|
-
* </li>
|
|
612
|
-
* <li>
|
|
613
|
-
* <p>Stream metrics from all metric namespaces in the account, except
|
|
614
|
-
* for the namespaces that you list in <code>ExcludeFilters</code>.</p>
|
|
615
|
-
* </li>
|
|
616
|
-
* <li>
|
|
617
|
-
* <p>Stream metrics from only the metric namespaces that you list in
|
|
618
|
-
* <code>IncludeFilters</code>.</p>
|
|
619
|
-
* </li>
|
|
620
|
-
* </ul>
|
|
621
|
-
*
|
|
622
|
-
* <p>When you use <code>PutMetricStream</code> to create a new metric stream, the stream
|
|
623
|
-
* is created in the <code>running</code> state. If you use it to update an existing stream,
|
|
624
|
-
* the state of the stream is not changed.</p>
|
|
625
|
-
*/
|
|
161
|
+
|
|
626
162
|
putMetricStream(args: PutMetricStreamCommandInput, options?: __HttpHandlerOptions): Promise<PutMetricStreamCommandOutput>;
|
|
627
163
|
putMetricStream(args: PutMetricStreamCommandInput, cb: (err: any, data?: PutMetricStreamCommandOutput) => void): void;
|
|
628
164
|
putMetricStream(args: PutMetricStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutMetricStreamCommandOutput) => void): void;
|
|
629
|
-
|
|
630
|
-
* <p>Temporarily sets the state of an alarm for testing purposes. When the updated
|
|
631
|
-
* state differs from the previous value, the action configured for
|
|
632
|
-
* the appropriate state is invoked. For example, if your alarm is configured to send an
|
|
633
|
-
* Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to
|
|
634
|
-
* <code>ALARM</code> sends an SNS message.</p>
|
|
635
|
-
* <p>Metric alarms
|
|
636
|
-
* returns to their actual state quickly, often within seconds. Because the metric alarm state change
|
|
637
|
-
* happens quickly, it is typically only visible in the alarm's <b>History</b> tab in the Amazon CloudWatch console or through
|
|
638
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>.</p>
|
|
639
|
-
* <p>If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is not guaranteed to return
|
|
640
|
-
* to its actual state. It
|
|
641
|
-
* returns to its actual state only once any of its children alarms change state. It is also
|
|
642
|
-
* reevaluated if you update its
|
|
643
|
-
* configuration.</p>
|
|
644
|
-
* <p>If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, you must include
|
|
645
|
-
* information in the <code>StateReasonData</code> parameter to enable the policy to take the correct action.</p>
|
|
646
|
-
*/
|
|
165
|
+
|
|
647
166
|
setAlarmState(args: SetAlarmStateCommandInput, options?: __HttpHandlerOptions): Promise<SetAlarmStateCommandOutput>;
|
|
648
167
|
setAlarmState(args: SetAlarmStateCommandInput, cb: (err: any, data?: SetAlarmStateCommandOutput) => void): void;
|
|
649
168
|
setAlarmState(args: SetAlarmStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetAlarmStateCommandOutput) => void): void;
|
|
650
|
-
|
|
651
|
-
* <p>Starts the streaming of metrics for one or more of your metric streams.</p>
|
|
652
|
-
*/
|
|
169
|
+
|
|
653
170
|
startMetricStreams(args: StartMetricStreamsCommandInput, options?: __HttpHandlerOptions): Promise<StartMetricStreamsCommandOutput>;
|
|
654
171
|
startMetricStreams(args: StartMetricStreamsCommandInput, cb: (err: any, data?: StartMetricStreamsCommandOutput) => void): void;
|
|
655
172
|
startMetricStreams(args: StartMetricStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMetricStreamsCommandOutput) => void): void;
|
|
656
|
-
|
|
657
|
-
* <p>Stops the streaming of metrics for one or more of your metric streams.</p>
|
|
658
|
-
*/
|
|
173
|
+
|
|
659
174
|
stopMetricStreams(args: StopMetricStreamsCommandInput, options?: __HttpHandlerOptions): Promise<StopMetricStreamsCommandOutput>;
|
|
660
175
|
stopMetricStreams(args: StopMetricStreamsCommandInput, cb: (err: any, data?: StopMetricStreamsCommandOutput) => void): void;
|
|
661
176
|
stopMetricStreams(args: StopMetricStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopMetricStreamsCommandOutput) => void): void;
|
|
662
|
-
|
|
663
|
-
* <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that
|
|
664
|
-
* can be tagged are alarms and Contributor Insights rules.</p>
|
|
665
|
-
* <p>Tags can help you organize and categorize your resources. You can also use them to scope user
|
|
666
|
-
* permissions by granting a user
|
|
667
|
-
* permission to access or change only resources with certain tag values.</p>
|
|
668
|
-
* <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
|
|
669
|
-
* <p>You can use the <code>TagResource</code> action with an alarm that already has tags. If you specify a new tag key for the alarm,
|
|
670
|
-
* this tag is appended to the list of tags associated
|
|
671
|
-
* with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces
|
|
672
|
-
* the previous value for that tag.</p>
|
|
673
|
-
* <p>You can associate as many as 50 tags with a CloudWatch resource.</p>
|
|
674
|
-
*/
|
|
177
|
+
|
|
675
178
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
676
179
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
677
180
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
678
|
-
|
|
679
|
-
* <p>Removes one or more tags from the specified resource.</p>
|
|
680
|
-
*/
|
|
181
|
+
|
|
681
182
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
682
183
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
683
184
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|