@aws-sdk/client-cloudwatch 3.325.0 → 3.327.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/dist-cjs/protocols/Aws_query.js +35 -0
- package/dist-es/protocols/Aws_query.js +35 -0
- package/dist-types/commands/DeleteAlarmsCommand.d.ts +4 -0
- package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +4 -0
- package/dist-types/commands/DeleteDashboardsCommand.d.ts +4 -0
- package/dist-types/commands/DeleteInsightRulesCommand.d.ts +13 -0
- package/dist-types/commands/DeleteMetricStreamCommand.d.ts +4 -0
- package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +16 -0
- package/dist-types/commands/DescribeAlarmsCommand.d.ts +101 -0
- package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +73 -0
- package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +62 -0
- package/dist-types/commands/DescribeInsightRulesCommand.d.ts +15 -0
- package/dist-types/commands/DisableAlarmActionsCommand.d.ts +4 -0
- package/dist-types/commands/DisableInsightRulesCommand.d.ts +13 -0
- package/dist-types/commands/EnableAlarmActionsCommand.d.ts +4 -0
- package/dist-types/commands/EnableInsightRulesCommand.d.ts +13 -0
- package/dist-types/commands/GetDashboardCommand.d.ts +8 -0
- package/dist-types/commands/GetInsightRuleReportCommand.d.ts +37 -0
- package/dist-types/commands/GetMetricDataCommand.d.ts +31 -0
- package/dist-types/commands/GetMetricStatisticsCommand.d.ts +20 -0
- package/dist-types/commands/GetMetricStreamCommand.d.ts +43 -0
- package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +6 -0
- package/dist-types/commands/ListDashboardsCommand.d.ts +14 -0
- package/dist-types/commands/ListManagedInsightRulesCommand.d.ts +16 -0
- package/dist-types/commands/ListMetricStreamsCommand.d.ts +17 -0
- package/dist-types/commands/ListMetricsCommand.d.ts +21 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
- package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +4 -0
- package/dist-types/commands/PutCompositeAlarmCommand.d.ts +4 -0
- package/dist-types/commands/PutDashboardCommand.d.ts +11 -0
- package/dist-types/commands/PutInsightRuleCommand.d.ts +4 -0
- package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +13 -0
- package/dist-types/commands/PutMetricAlarmCommand.d.ts +5 -0
- package/dist-types/commands/PutMetricDataCommand.d.ts +4 -0
- package/dist-types/commands/PutMetricStreamCommand.d.ts +12 -0
- package/dist-types/commands/SetAlarmStateCommand.d.ts +4 -0
- package/dist-types/commands/StartMetricStreamsCommand.d.ts +4 -0
- package/dist-types/commands/StopMetricStreamsCommand.d.ts +4 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +21 -8
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +7 -7
|
@@ -2844,6 +2844,28 @@ const se_MetricStreamFilter = (input, context) => {
|
|
|
2844
2844
|
if (input.Namespace != null) {
|
|
2845
2845
|
entries["Namespace"] = input.Namespace;
|
|
2846
2846
|
}
|
|
2847
|
+
if (input.MetricNames != null) {
|
|
2848
|
+
const memberEntries = se_MetricStreamFilterMetricNames(input.MetricNames, context);
|
|
2849
|
+
if (input.MetricNames?.length === 0) {
|
|
2850
|
+
entries.MetricNames = [];
|
|
2851
|
+
}
|
|
2852
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2853
|
+
const loc = `MetricNames.${key}`;
|
|
2854
|
+
entries[loc] = value;
|
|
2855
|
+
});
|
|
2856
|
+
}
|
|
2857
|
+
return entries;
|
|
2858
|
+
};
|
|
2859
|
+
const se_MetricStreamFilterMetricNames = (input, context) => {
|
|
2860
|
+
const entries = {};
|
|
2861
|
+
let counter = 1;
|
|
2862
|
+
for (const entry of input) {
|
|
2863
|
+
if (entry === null) {
|
|
2864
|
+
continue;
|
|
2865
|
+
}
|
|
2866
|
+
entries[`member.${counter}`] = entry;
|
|
2867
|
+
counter++;
|
|
2868
|
+
}
|
|
2847
2869
|
return entries;
|
|
2848
2870
|
};
|
|
2849
2871
|
const se_MetricStreamFilters = (input, context) => {
|
|
@@ -4599,8 +4621,21 @@ const de_MetricStreamFilter = (output, context) => {
|
|
|
4599
4621
|
if (output["Namespace"] !== undefined) {
|
|
4600
4622
|
contents.Namespace = (0, smithy_client_1.expectString)(output["Namespace"]);
|
|
4601
4623
|
}
|
|
4624
|
+
if (output.MetricNames === "") {
|
|
4625
|
+
contents.MetricNames = [];
|
|
4626
|
+
}
|
|
4627
|
+
else if (output["MetricNames"] !== undefined && output["MetricNames"]["member"] !== undefined) {
|
|
4628
|
+
contents.MetricNames = de_MetricStreamFilterMetricNames((0, smithy_client_1.getArrayIfSingleItem)(output["MetricNames"]["member"]), context);
|
|
4629
|
+
}
|
|
4602
4630
|
return contents;
|
|
4603
4631
|
};
|
|
4632
|
+
const de_MetricStreamFilterMetricNames = (output, context) => {
|
|
4633
|
+
return (output || [])
|
|
4634
|
+
.filter((e) => e != null)
|
|
4635
|
+
.map((entry) => {
|
|
4636
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
4637
|
+
});
|
|
4638
|
+
};
|
|
4604
4639
|
const de_MetricStreamFilters = (output, context) => {
|
|
4605
4640
|
return (output || [])
|
|
4606
4641
|
.filter((e) => e != null)
|
|
@@ -2764,6 +2764,28 @@ const se_MetricStreamFilter = (input, context) => {
|
|
|
2764
2764
|
if (input.Namespace != null) {
|
|
2765
2765
|
entries["Namespace"] = input.Namespace;
|
|
2766
2766
|
}
|
|
2767
|
+
if (input.MetricNames != null) {
|
|
2768
|
+
const memberEntries = se_MetricStreamFilterMetricNames(input.MetricNames, context);
|
|
2769
|
+
if (input.MetricNames?.length === 0) {
|
|
2770
|
+
entries.MetricNames = [];
|
|
2771
|
+
}
|
|
2772
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2773
|
+
const loc = `MetricNames.${key}`;
|
|
2774
|
+
entries[loc] = value;
|
|
2775
|
+
});
|
|
2776
|
+
}
|
|
2777
|
+
return entries;
|
|
2778
|
+
};
|
|
2779
|
+
const se_MetricStreamFilterMetricNames = (input, context) => {
|
|
2780
|
+
const entries = {};
|
|
2781
|
+
let counter = 1;
|
|
2782
|
+
for (const entry of input) {
|
|
2783
|
+
if (entry === null) {
|
|
2784
|
+
continue;
|
|
2785
|
+
}
|
|
2786
|
+
entries[`member.${counter}`] = entry;
|
|
2787
|
+
counter++;
|
|
2788
|
+
}
|
|
2767
2789
|
return entries;
|
|
2768
2790
|
};
|
|
2769
2791
|
const se_MetricStreamFilters = (input, context) => {
|
|
@@ -4519,8 +4541,21 @@ const de_MetricStreamFilter = (output, context) => {
|
|
|
4519
4541
|
if (output["Namespace"] !== undefined) {
|
|
4520
4542
|
contents.Namespace = __expectString(output["Namespace"]);
|
|
4521
4543
|
}
|
|
4544
|
+
if (output.MetricNames === "") {
|
|
4545
|
+
contents.MetricNames = [];
|
|
4546
|
+
}
|
|
4547
|
+
else if (output["MetricNames"] !== undefined && output["MetricNames"]["member"] !== undefined) {
|
|
4548
|
+
contents.MetricNames = de_MetricStreamFilterMetricNames(__getArrayIfSingleItem(output["MetricNames"]["member"]), context);
|
|
4549
|
+
}
|
|
4522
4550
|
return contents;
|
|
4523
4551
|
};
|
|
4552
|
+
const de_MetricStreamFilterMetricNames = (output, context) => {
|
|
4553
|
+
return (output || [])
|
|
4554
|
+
.filter((e) => e != null)
|
|
4555
|
+
.map((entry) => {
|
|
4556
|
+
return __expectString(entry);
|
|
4557
|
+
});
|
|
4558
|
+
};
|
|
4524
4559
|
const de_MetricStreamFilters = (output, context) => {
|
|
4525
4560
|
return (output || [])
|
|
4526
4561
|
.filter((e) => e != null)
|
|
@@ -50,6 +50,8 @@ export interface DeleteAlarmsCommandOutput extends __MetadataBearer {
|
|
|
50
50
|
* };
|
|
51
51
|
* const command = new DeleteAlarmsCommand(input);
|
|
52
52
|
* const response = await client.send(command);
|
|
53
|
+
* // {};
|
|
54
|
+
*
|
|
53
55
|
* ```
|
|
54
56
|
*
|
|
55
57
|
* @param DeleteAlarmsCommandInput - {@link DeleteAlarmsCommandInput}
|
|
@@ -61,6 +63,8 @@ export interface DeleteAlarmsCommandOutput extends __MetadataBearer {
|
|
|
61
63
|
* @throws {@link ResourceNotFound} (client fault)
|
|
62
64
|
* <p>The named resource does not exist.</p>
|
|
63
65
|
*
|
|
66
|
+
* @throws {@link CloudWatchServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
64
68
|
*
|
|
65
69
|
*/
|
|
66
70
|
export declare class DeleteAlarmsCommand extends $Command<DeleteAlarmsCommandInput, DeleteAlarmsCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -80,6 +80,8 @@ export interface DeleteAnomalyDetectorCommandOutput extends DeleteAnomalyDetecto
|
|
|
80
80
|
* };
|
|
81
81
|
* const command = new DeleteAnomalyDetectorCommand(input);
|
|
82
82
|
* const response = await client.send(command);
|
|
83
|
+
* // {};
|
|
84
|
+
*
|
|
83
85
|
* ```
|
|
84
86
|
*
|
|
85
87
|
* @param DeleteAnomalyDetectorCommandInput - {@link DeleteAnomalyDetectorCommandInput}
|
|
@@ -103,6 +105,8 @@ export interface DeleteAnomalyDetectorCommandOutput extends DeleteAnomalyDetecto
|
|
|
103
105
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
104
106
|
* <p>The named resource does not exist.</p>
|
|
105
107
|
*
|
|
108
|
+
* @throws {@link CloudWatchServiceException}
|
|
109
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
106
110
|
*
|
|
107
111
|
*/
|
|
108
112
|
export declare class DeleteAnomalyDetectorCommand extends $Command<DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -35,6 +35,8 @@ export interface DeleteDashboardsCommandOutput extends DeleteDashboardsOutput, _
|
|
|
35
35
|
* };
|
|
36
36
|
* const command = new DeleteDashboardsCommand(input);
|
|
37
37
|
* const response = await client.send(command);
|
|
38
|
+
* // {};
|
|
39
|
+
*
|
|
38
40
|
* ```
|
|
39
41
|
*
|
|
40
42
|
* @param DeleteDashboardsCommandInput - {@link DeleteDashboardsCommandInput}
|
|
@@ -52,6 +54,8 @@ export interface DeleteDashboardsCommandOutput extends DeleteDashboardsOutput, _
|
|
|
52
54
|
* @throws {@link InvalidParameterValueException} (client fault)
|
|
53
55
|
* <p>The value of an input parameter is bad or out-of-range.</p>
|
|
54
56
|
*
|
|
57
|
+
* @throws {@link CloudWatchServiceException}
|
|
58
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
55
59
|
*
|
|
56
60
|
*/
|
|
57
61
|
export declare class DeleteDashboardsCommand extends $Command<DeleteDashboardsCommandInput, DeleteDashboardsCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -36,6 +36,17 @@ export interface DeleteInsightRulesCommandOutput extends DeleteInsightRulesOutpu
|
|
|
36
36
|
* };
|
|
37
37
|
* const command = new DeleteInsightRulesCommand(input);
|
|
38
38
|
* const response = await client.send(command);
|
|
39
|
+
* // { // DeleteInsightRulesOutput
|
|
40
|
+
* // Failures: [ // BatchFailures
|
|
41
|
+
* // { // PartialFailure
|
|
42
|
+
* // FailureResource: "STRING_VALUE",
|
|
43
|
+
* // ExceptionType: "STRING_VALUE",
|
|
44
|
+
* // FailureCode: "STRING_VALUE",
|
|
45
|
+
* // FailureDescription: "STRING_VALUE",
|
|
46
|
+
* // },
|
|
47
|
+
* // ],
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
39
50
|
* ```
|
|
40
51
|
*
|
|
41
52
|
* @param DeleteInsightRulesCommandInput - {@link DeleteInsightRulesCommandInput}
|
|
@@ -50,6 +61,8 @@ export interface DeleteInsightRulesCommandOutput extends DeleteInsightRulesOutpu
|
|
|
50
61
|
* @throws {@link MissingRequiredParameterException} (client fault)
|
|
51
62
|
* <p>An input parameter that is required is missing.</p>
|
|
52
63
|
*
|
|
64
|
+
* @throws {@link CloudWatchServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
53
66
|
*
|
|
54
67
|
*/
|
|
55
68
|
export declare class DeleteInsightRulesCommand extends $Command<DeleteInsightRulesCommandInput, DeleteInsightRulesCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -31,6 +31,8 @@ export interface DeleteMetricStreamCommandOutput extends DeleteMetricStreamOutpu
|
|
|
31
31
|
* };
|
|
32
32
|
* const command = new DeleteMetricStreamCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // {};
|
|
35
|
+
*
|
|
34
36
|
* ```
|
|
35
37
|
*
|
|
36
38
|
* @param DeleteMetricStreamCommandInput - {@link DeleteMetricStreamCommandInput}
|
|
@@ -48,6 +50,8 @@ export interface DeleteMetricStreamCommandOutput extends DeleteMetricStreamOutpu
|
|
|
48
50
|
* @throws {@link MissingRequiredParameterException} (client fault)
|
|
49
51
|
* <p>An input parameter that is required is missing.</p>
|
|
50
52
|
*
|
|
53
|
+
* @throws {@link CloudWatchServiceException}
|
|
54
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
51
55
|
*
|
|
52
56
|
*/
|
|
53
57
|
export declare class DeleteMetricStreamCommand extends $Command<DeleteMetricStreamCommandInput, DeleteMetricStreamCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -45,6 +45,20 @@ export interface DescribeAlarmHistoryCommandOutput extends DescribeAlarmHistoryO
|
|
|
45
45
|
* };
|
|
46
46
|
* const command = new DescribeAlarmHistoryCommand(input);
|
|
47
47
|
* const response = await client.send(command);
|
|
48
|
+
* // { // DescribeAlarmHistoryOutput
|
|
49
|
+
* // AlarmHistoryItems: [ // AlarmHistoryItems
|
|
50
|
+
* // { // AlarmHistoryItem
|
|
51
|
+
* // AlarmName: "STRING_VALUE",
|
|
52
|
+
* // AlarmType: "CompositeAlarm" || "MetricAlarm",
|
|
53
|
+
* // Timestamp: new Date("TIMESTAMP"),
|
|
54
|
+
* // HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action",
|
|
55
|
+
* // HistorySummary: "STRING_VALUE",
|
|
56
|
+
* // HistoryData: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // NextToken: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
48
62
|
* ```
|
|
49
63
|
*
|
|
50
64
|
* @param DescribeAlarmHistoryCommandInput - {@link DescribeAlarmHistoryCommandInput}
|
|
@@ -56,6 +70,8 @@ export interface DescribeAlarmHistoryCommandOutput extends DescribeAlarmHistoryO
|
|
|
56
70
|
* @throws {@link InvalidNextToken} (client fault)
|
|
57
71
|
* <p>The next token specified is invalid.</p>
|
|
58
72
|
*
|
|
73
|
+
* @throws {@link CloudWatchServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
59
75
|
*
|
|
60
76
|
*/
|
|
61
77
|
export declare class DescribeAlarmHistoryCommand extends $Command<DescribeAlarmHistoryCommandInput, DescribeAlarmHistoryCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -47,6 +47,105 @@ export interface DescribeAlarmsCommandOutput extends DescribeAlarmsOutput, __Met
|
|
|
47
47
|
* };
|
|
48
48
|
* const command = new DescribeAlarmsCommand(input);
|
|
49
49
|
* const response = await client.send(command);
|
|
50
|
+
* // { // DescribeAlarmsOutput
|
|
51
|
+
* // CompositeAlarms: [ // CompositeAlarms
|
|
52
|
+
* // { // CompositeAlarm
|
|
53
|
+
* // ActionsEnabled: true || false,
|
|
54
|
+
* // AlarmActions: [ // ResourceList
|
|
55
|
+
* // "STRING_VALUE",
|
|
56
|
+
* // ],
|
|
57
|
+
* // AlarmArn: "STRING_VALUE",
|
|
58
|
+
* // AlarmConfigurationUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
59
|
+
* // AlarmDescription: "STRING_VALUE",
|
|
60
|
+
* // AlarmName: "STRING_VALUE",
|
|
61
|
+
* // AlarmRule: "STRING_VALUE",
|
|
62
|
+
* // InsufficientDataActions: [
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // OKActions: [
|
|
66
|
+
* // "STRING_VALUE",
|
|
67
|
+
* // ],
|
|
68
|
+
* // StateReason: "STRING_VALUE",
|
|
69
|
+
* // StateReasonData: "STRING_VALUE",
|
|
70
|
+
* // StateUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
71
|
+
* // StateValue: "OK" || "ALARM" || "INSUFFICIENT_DATA",
|
|
72
|
+
* // StateTransitionedTimestamp: new Date("TIMESTAMP"),
|
|
73
|
+
* // ActionsSuppressedBy: "WaitPeriod" || "ExtensionPeriod" || "Alarm",
|
|
74
|
+
* // ActionsSuppressedReason: "STRING_VALUE",
|
|
75
|
+
* // ActionsSuppressor: "STRING_VALUE",
|
|
76
|
+
* // ActionsSuppressorWaitPeriod: Number("int"),
|
|
77
|
+
* // ActionsSuppressorExtensionPeriod: Number("int"),
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // MetricAlarms: [ // MetricAlarms
|
|
81
|
+
* // { // MetricAlarm
|
|
82
|
+
* // AlarmName: "STRING_VALUE",
|
|
83
|
+
* // AlarmArn: "STRING_VALUE",
|
|
84
|
+
* // AlarmDescription: "STRING_VALUE",
|
|
85
|
+
* // AlarmConfigurationUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
86
|
+
* // ActionsEnabled: true || false,
|
|
87
|
+
* // OKActions: [
|
|
88
|
+
* // "STRING_VALUE",
|
|
89
|
+
* // ],
|
|
90
|
+
* // AlarmActions: [
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
93
|
+
* // InsufficientDataActions: "<ResourceList>",
|
|
94
|
+
* // StateValue: "OK" || "ALARM" || "INSUFFICIENT_DATA",
|
|
95
|
+
* // StateReason: "STRING_VALUE",
|
|
96
|
+
* // StateReasonData: "STRING_VALUE",
|
|
97
|
+
* // StateUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
98
|
+
* // MetricName: "STRING_VALUE",
|
|
99
|
+
* // Namespace: "STRING_VALUE",
|
|
100
|
+
* // Statistic: "SampleCount" || "Average" || "Sum" || "Minimum" || "Maximum",
|
|
101
|
+
* // ExtendedStatistic: "STRING_VALUE",
|
|
102
|
+
* // Dimensions: [ // Dimensions
|
|
103
|
+
* // { // Dimension
|
|
104
|
+
* // Name: "STRING_VALUE", // required
|
|
105
|
+
* // Value: "STRING_VALUE", // required
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
108
|
+
* // Period: Number("int"),
|
|
109
|
+
* // Unit: "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",
|
|
110
|
+
* // EvaluationPeriods: Number("int"),
|
|
111
|
+
* // DatapointsToAlarm: Number("int"),
|
|
112
|
+
* // Threshold: Number("double"),
|
|
113
|
+
* // ComparisonOperator: "GreaterThanOrEqualToThreshold" || "GreaterThanThreshold" || "LessThanThreshold" || "LessThanOrEqualToThreshold" || "LessThanLowerOrGreaterThanUpperThreshold" || "LessThanLowerThreshold" || "GreaterThanUpperThreshold",
|
|
114
|
+
* // TreatMissingData: "STRING_VALUE",
|
|
115
|
+
* // EvaluateLowSampleCountPercentile: "STRING_VALUE",
|
|
116
|
+
* // Metrics: [ // MetricDataQueries
|
|
117
|
+
* // { // MetricDataQuery
|
|
118
|
+
* // Id: "STRING_VALUE", // required
|
|
119
|
+
* // MetricStat: { // MetricStat
|
|
120
|
+
* // Metric: { // Metric
|
|
121
|
+
* // Namespace: "STRING_VALUE",
|
|
122
|
+
* // MetricName: "STRING_VALUE",
|
|
123
|
+
* // Dimensions: [
|
|
124
|
+
* // {
|
|
125
|
+
* // Name: "STRING_VALUE", // required
|
|
126
|
+
* // Value: "STRING_VALUE", // required
|
|
127
|
+
* // },
|
|
128
|
+
* // ],
|
|
129
|
+
* // },
|
|
130
|
+
* // Period: Number("int"), // required
|
|
131
|
+
* // Stat: "STRING_VALUE", // required
|
|
132
|
+
* // Unit: "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",
|
|
133
|
+
* // },
|
|
134
|
+
* // Expression: "STRING_VALUE",
|
|
135
|
+
* // Label: "STRING_VALUE",
|
|
136
|
+
* // ReturnData: true || false,
|
|
137
|
+
* // Period: Number("int"),
|
|
138
|
+
* // AccountId: "STRING_VALUE",
|
|
139
|
+
* // },
|
|
140
|
+
* // ],
|
|
141
|
+
* // ThresholdMetricId: "STRING_VALUE",
|
|
142
|
+
* // EvaluationState: "PARTIAL_DATA",
|
|
143
|
+
* // StateTransitionedTimestamp: new Date("TIMESTAMP"),
|
|
144
|
+
* // },
|
|
145
|
+
* // ],
|
|
146
|
+
* // NextToken: "STRING_VALUE",
|
|
147
|
+
* // };
|
|
148
|
+
*
|
|
50
149
|
* ```
|
|
51
150
|
*
|
|
52
151
|
* @param DescribeAlarmsCommandInput - {@link DescribeAlarmsCommandInput}
|
|
@@ -58,6 +157,8 @@ export interface DescribeAlarmsCommandOutput extends DescribeAlarmsOutput, __Met
|
|
|
58
157
|
* @throws {@link InvalidNextToken} (client fault)
|
|
59
158
|
* <p>The next token specified is invalid.</p>
|
|
60
159
|
*
|
|
160
|
+
* @throws {@link CloudWatchServiceException}
|
|
161
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
61
162
|
*
|
|
62
163
|
*/
|
|
63
164
|
export declare class DescribeAlarmsCommand extends $Command<DescribeAlarmsCommandInput, DescribeAlarmsCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -46,6 +46,77 @@ export interface DescribeAlarmsForMetricCommandOutput extends DescribeAlarmsForM
|
|
|
46
46
|
* };
|
|
47
47
|
* const command = new DescribeAlarmsForMetricCommand(input);
|
|
48
48
|
* const response = await client.send(command);
|
|
49
|
+
* // { // DescribeAlarmsForMetricOutput
|
|
50
|
+
* // MetricAlarms: [ // MetricAlarms
|
|
51
|
+
* // { // MetricAlarm
|
|
52
|
+
* // AlarmName: "STRING_VALUE",
|
|
53
|
+
* // AlarmArn: "STRING_VALUE",
|
|
54
|
+
* // AlarmDescription: "STRING_VALUE",
|
|
55
|
+
* // AlarmConfigurationUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
56
|
+
* // ActionsEnabled: true || false,
|
|
57
|
+
* // OKActions: [ // ResourceList
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // AlarmActions: [
|
|
61
|
+
* // "STRING_VALUE",
|
|
62
|
+
* // ],
|
|
63
|
+
* // InsufficientDataActions: [
|
|
64
|
+
* // "STRING_VALUE",
|
|
65
|
+
* // ],
|
|
66
|
+
* // StateValue: "OK" || "ALARM" || "INSUFFICIENT_DATA",
|
|
67
|
+
* // StateReason: "STRING_VALUE",
|
|
68
|
+
* // StateReasonData: "STRING_VALUE",
|
|
69
|
+
* // StateUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
70
|
+
* // MetricName: "STRING_VALUE",
|
|
71
|
+
* // Namespace: "STRING_VALUE",
|
|
72
|
+
* // Statistic: "SampleCount" || "Average" || "Sum" || "Minimum" || "Maximum",
|
|
73
|
+
* // ExtendedStatistic: "STRING_VALUE",
|
|
74
|
+
* // Dimensions: [ // Dimensions
|
|
75
|
+
* // { // Dimension
|
|
76
|
+
* // Name: "STRING_VALUE", // required
|
|
77
|
+
* // Value: "STRING_VALUE", // required
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // Period: Number("int"),
|
|
81
|
+
* // Unit: "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",
|
|
82
|
+
* // EvaluationPeriods: Number("int"),
|
|
83
|
+
* // DatapointsToAlarm: Number("int"),
|
|
84
|
+
* // Threshold: Number("double"),
|
|
85
|
+
* // ComparisonOperator: "GreaterThanOrEqualToThreshold" || "GreaterThanThreshold" || "LessThanThreshold" || "LessThanOrEqualToThreshold" || "LessThanLowerOrGreaterThanUpperThreshold" || "LessThanLowerThreshold" || "GreaterThanUpperThreshold",
|
|
86
|
+
* // TreatMissingData: "STRING_VALUE",
|
|
87
|
+
* // EvaluateLowSampleCountPercentile: "STRING_VALUE",
|
|
88
|
+
* // Metrics: [ // MetricDataQueries
|
|
89
|
+
* // { // MetricDataQuery
|
|
90
|
+
* // Id: "STRING_VALUE", // required
|
|
91
|
+
* // MetricStat: { // MetricStat
|
|
92
|
+
* // Metric: { // Metric
|
|
93
|
+
* // Namespace: "STRING_VALUE",
|
|
94
|
+
* // MetricName: "STRING_VALUE",
|
|
95
|
+
* // Dimensions: [
|
|
96
|
+
* // {
|
|
97
|
+
* // Name: "STRING_VALUE", // required
|
|
98
|
+
* // Value: "STRING_VALUE", // required
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // },
|
|
102
|
+
* // Period: Number("int"), // required
|
|
103
|
+
* // Stat: "STRING_VALUE", // required
|
|
104
|
+
* // Unit: "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",
|
|
105
|
+
* // },
|
|
106
|
+
* // Expression: "STRING_VALUE",
|
|
107
|
+
* // Label: "STRING_VALUE",
|
|
108
|
+
* // ReturnData: true || false,
|
|
109
|
+
* // Period: Number("int"),
|
|
110
|
+
* // AccountId: "STRING_VALUE",
|
|
111
|
+
* // },
|
|
112
|
+
* // ],
|
|
113
|
+
* // ThresholdMetricId: "STRING_VALUE",
|
|
114
|
+
* // EvaluationState: "PARTIAL_DATA",
|
|
115
|
+
* // StateTransitionedTimestamp: new Date("TIMESTAMP"),
|
|
116
|
+
* // },
|
|
117
|
+
* // ],
|
|
118
|
+
* // };
|
|
119
|
+
*
|
|
49
120
|
* ```
|
|
50
121
|
*
|
|
51
122
|
* @param DescribeAlarmsForMetricCommandInput - {@link DescribeAlarmsForMetricCommandInput}
|
|
@@ -54,6 +125,8 @@ export interface DescribeAlarmsForMetricCommandOutput extends DescribeAlarmsForM
|
|
|
54
125
|
* @see {@link DescribeAlarmsForMetricCommandOutput} for command's `response` shape.
|
|
55
126
|
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
56
127
|
*
|
|
128
|
+
* @throws {@link CloudWatchServiceException}
|
|
129
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
57
130
|
*
|
|
58
131
|
*/
|
|
59
132
|
export declare class DescribeAlarmsForMetricCommand extends $Command<DescribeAlarmsForMetricCommandInput, DescribeAlarmsForMetricCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -49,6 +49,66 @@ export interface DescribeAnomalyDetectorsCommandOutput extends DescribeAnomalyDe
|
|
|
49
49
|
* };
|
|
50
50
|
* const command = new DescribeAnomalyDetectorsCommand(input);
|
|
51
51
|
* const response = await client.send(command);
|
|
52
|
+
* // { // DescribeAnomalyDetectorsOutput
|
|
53
|
+
* // AnomalyDetectors: [ // AnomalyDetectors
|
|
54
|
+
* // { // AnomalyDetector
|
|
55
|
+
* // Namespace: "STRING_VALUE",
|
|
56
|
+
* // MetricName: "STRING_VALUE",
|
|
57
|
+
* // Dimensions: [ // Dimensions
|
|
58
|
+
* // { // Dimension
|
|
59
|
+
* // Name: "STRING_VALUE", // required
|
|
60
|
+
* // Value: "STRING_VALUE", // required
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // Stat: "STRING_VALUE",
|
|
64
|
+
* // Configuration: { // AnomalyDetectorConfiguration
|
|
65
|
+
* // ExcludedTimeRanges: [ // AnomalyDetectorExcludedTimeRanges
|
|
66
|
+
* // { // Range
|
|
67
|
+
* // StartTime: new Date("TIMESTAMP"), // required
|
|
68
|
+
* // EndTime: new Date("TIMESTAMP"), // required
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // MetricTimezone: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // StateValue: "PENDING_TRAINING" || "TRAINED_INSUFFICIENT_DATA" || "TRAINED",
|
|
74
|
+
* // SingleMetricAnomalyDetector: { // SingleMetricAnomalyDetector
|
|
75
|
+
* // Namespace: "STRING_VALUE",
|
|
76
|
+
* // MetricName: "STRING_VALUE",
|
|
77
|
+
* // Dimensions: [
|
|
78
|
+
* // {
|
|
79
|
+
* // Name: "STRING_VALUE", // required
|
|
80
|
+
* // Value: "STRING_VALUE", // required
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // Stat: "STRING_VALUE",
|
|
84
|
+
* // },
|
|
85
|
+
* // MetricMathAnomalyDetector: { // MetricMathAnomalyDetector
|
|
86
|
+
* // MetricDataQueries: [ // MetricDataQueries
|
|
87
|
+
* // { // MetricDataQuery
|
|
88
|
+
* // Id: "STRING_VALUE", // required
|
|
89
|
+
* // MetricStat: { // MetricStat
|
|
90
|
+
* // Metric: { // Metric
|
|
91
|
+
* // Namespace: "STRING_VALUE",
|
|
92
|
+
* // MetricName: "STRING_VALUE",
|
|
93
|
+
* // Dimensions: "<Dimensions>",
|
|
94
|
+
* // },
|
|
95
|
+
* // Period: Number("int"), // required
|
|
96
|
+
* // Stat: "STRING_VALUE", // required
|
|
97
|
+
* // Unit: "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",
|
|
98
|
+
* // },
|
|
99
|
+
* // Expression: "STRING_VALUE",
|
|
100
|
+
* // Label: "STRING_VALUE",
|
|
101
|
+
* // ReturnData: true || false,
|
|
102
|
+
* // Period: Number("int"),
|
|
103
|
+
* // AccountId: "STRING_VALUE",
|
|
104
|
+
* // },
|
|
105
|
+
* // ],
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // ],
|
|
109
|
+
* // NextToken: "STRING_VALUE",
|
|
110
|
+
* // };
|
|
111
|
+
*
|
|
52
112
|
* ```
|
|
53
113
|
*
|
|
54
114
|
* @param DescribeAnomalyDetectorsCommandInput - {@link DescribeAnomalyDetectorsCommandInput}
|
|
@@ -69,6 +129,8 @@ export interface DescribeAnomalyDetectorsCommandOutput extends DescribeAnomalyDe
|
|
|
69
129
|
* @throws {@link InvalidParameterValueException} (client fault)
|
|
70
130
|
* <p>The value of an input parameter is bad or out-of-range.</p>
|
|
71
131
|
*
|
|
132
|
+
* @throws {@link CloudWatchServiceException}
|
|
133
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
72
134
|
*
|
|
73
135
|
*/
|
|
74
136
|
export declare class DescribeAnomalyDetectorsCommand extends $Command<DescribeAnomalyDetectorsCommandInput, DescribeAnomalyDetectorsCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -34,6 +34,19 @@ export interface DescribeInsightRulesCommandOutput extends DescribeInsightRulesO
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DescribeInsightRulesCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DescribeInsightRulesOutput
|
|
38
|
+
* // NextToken: "STRING_VALUE",
|
|
39
|
+
* // InsightRules: [ // InsightRules
|
|
40
|
+
* // { // InsightRule
|
|
41
|
+
* // Name: "STRING_VALUE", // required
|
|
42
|
+
* // State: "STRING_VALUE", // required
|
|
43
|
+
* // Schema: "STRING_VALUE", // required
|
|
44
|
+
* // Definition: "STRING_VALUE", // required
|
|
45
|
+
* // ManagedRule: true || false,
|
|
46
|
+
* // },
|
|
47
|
+
* // ],
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
37
50
|
* ```
|
|
38
51
|
*
|
|
39
52
|
* @param DescribeInsightRulesCommandInput - {@link DescribeInsightRulesCommandInput}
|
|
@@ -45,6 +58,8 @@ export interface DescribeInsightRulesCommandOutput extends DescribeInsightRulesO
|
|
|
45
58
|
* @throws {@link InvalidNextToken} (client fault)
|
|
46
59
|
* <p>The next token specified is invalid.</p>
|
|
47
60
|
*
|
|
61
|
+
* @throws {@link CloudWatchServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
48
63
|
*
|
|
49
64
|
*/
|
|
50
65
|
export declare class DescribeInsightRulesCommand extends $Command<DescribeInsightRulesCommandInput, DescribeInsightRulesCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -34,6 +34,8 @@ export interface DisableAlarmActionsCommandOutput extends __MetadataBearer {
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DisableAlarmActionsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // {};
|
|
38
|
+
*
|
|
37
39
|
* ```
|
|
38
40
|
*
|
|
39
41
|
* @param DisableAlarmActionsCommandInput - {@link DisableAlarmActionsCommandInput}
|
|
@@ -42,6 +44,8 @@ export interface DisableAlarmActionsCommandOutput extends __MetadataBearer {
|
|
|
42
44
|
* @see {@link DisableAlarmActionsCommandOutput} for command's `response` shape.
|
|
43
45
|
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
44
46
|
*
|
|
47
|
+
* @throws {@link CloudWatchServiceException}
|
|
48
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
45
49
|
*
|
|
46
50
|
*/
|
|
47
51
|
export declare class DisableAlarmActionsCommand extends $Command<DisableAlarmActionsCommandInput, DisableAlarmActionsCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -34,6 +34,17 @@ export interface DisableInsightRulesCommandOutput extends DisableInsightRulesOut
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DisableInsightRulesCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DisableInsightRulesOutput
|
|
38
|
+
* // Failures: [ // BatchFailures
|
|
39
|
+
* // { // PartialFailure
|
|
40
|
+
* // FailureResource: "STRING_VALUE",
|
|
41
|
+
* // ExceptionType: "STRING_VALUE",
|
|
42
|
+
* // FailureCode: "STRING_VALUE",
|
|
43
|
+
* // FailureDescription: "STRING_VALUE",
|
|
44
|
+
* // },
|
|
45
|
+
* // ],
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
37
48
|
* ```
|
|
38
49
|
*
|
|
39
50
|
* @param DisableInsightRulesCommandInput - {@link DisableInsightRulesCommandInput}
|
|
@@ -48,6 +59,8 @@ export interface DisableInsightRulesCommandOutput extends DisableInsightRulesOut
|
|
|
48
59
|
* @throws {@link MissingRequiredParameterException} (client fault)
|
|
49
60
|
* <p>An input parameter that is required is missing.</p>
|
|
50
61
|
*
|
|
62
|
+
* @throws {@link CloudWatchServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
51
64
|
*
|
|
52
65
|
*/
|
|
53
66
|
export declare class DisableInsightRulesCommand extends $Command<DisableInsightRulesCommandInput, DisableInsightRulesCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -33,6 +33,8 @@ export interface EnableAlarmActionsCommandOutput extends __MetadataBearer {
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new EnableAlarmActionsCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // {};
|
|
37
|
+
*
|
|
36
38
|
* ```
|
|
37
39
|
*
|
|
38
40
|
* @param EnableAlarmActionsCommandInput - {@link EnableAlarmActionsCommandInput}
|
|
@@ -41,6 +43,8 @@ export interface EnableAlarmActionsCommandOutput extends __MetadataBearer {
|
|
|
41
43
|
* @see {@link EnableAlarmActionsCommandOutput} for command's `response` shape.
|
|
42
44
|
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
43
45
|
*
|
|
46
|
+
* @throws {@link CloudWatchServiceException}
|
|
47
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
44
48
|
*
|
|
45
49
|
*/
|
|
46
50
|
export declare class EnableAlarmActionsCommand extends $Command<EnableAlarmActionsCommandInput, EnableAlarmActionsCommandOutput, CloudWatchClientResolvedConfig> {
|
|
@@ -33,6 +33,17 @@ export interface EnableInsightRulesCommandOutput extends EnableInsightRulesOutpu
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new EnableInsightRulesCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // EnableInsightRulesOutput
|
|
37
|
+
* // Failures: [ // BatchFailures
|
|
38
|
+
* // { // PartialFailure
|
|
39
|
+
* // FailureResource: "STRING_VALUE",
|
|
40
|
+
* // ExceptionType: "STRING_VALUE",
|
|
41
|
+
* // FailureCode: "STRING_VALUE",
|
|
42
|
+
* // FailureDescription: "STRING_VALUE",
|
|
43
|
+
* // },
|
|
44
|
+
* // ],
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
36
47
|
* ```
|
|
37
48
|
*
|
|
38
49
|
* @param EnableInsightRulesCommandInput - {@link EnableInsightRulesCommandInput}
|
|
@@ -50,6 +61,8 @@ export interface EnableInsightRulesCommandOutput extends EnableInsightRulesOutpu
|
|
|
50
61
|
* @throws {@link MissingRequiredParameterException} (client fault)
|
|
51
62
|
* <p>An input parameter that is required is missing.</p>
|
|
52
63
|
*
|
|
64
|
+
* @throws {@link CloudWatchServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
53
66
|
*
|
|
54
67
|
*/
|
|
55
68
|
export declare class EnableInsightRulesCommand extends $Command<EnableInsightRulesCommandInput, EnableInsightRulesCommandOutput, CloudWatchClientResolvedConfig> {
|