@aws-sdk/client-cloudwatch 3.40.0 → 3.45.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 +44 -0
- package/dist-cjs/endpoints.js +17 -0
- package/dist-cjs/models/models_0.js +44 -27
- package/dist-cjs/protocols/Aws_query.js +146 -0
- package/dist-es/endpoints.js +17 -0
- package/dist-es/models/models_0.js +29 -16
- package/dist-es/protocols/Aws_query.js +322 -158
- package/dist-types/CloudWatch.d.ts +19 -5
- package/dist-types/commands/DeleteAlarmsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDashboardsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMetricStreamCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +4 -1
- package/dist-types/commands/DescribeAlarmsCommand.d.ts +4 -1
- package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +8 -4
- package/dist-types/commands/DescribeInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/DisableAlarmActionsCommand.d.ts +1 -1
- package/dist-types/commands/DisableInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/EnableAlarmActionsCommand.d.ts +1 -1
- package/dist-types/commands/EnableInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/GetDashboardCommand.d.ts +1 -1
- package/dist-types/commands/GetInsightRuleReportCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricDataCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricStreamCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +1 -1
- package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
- package/dist-types/commands/ListMetricStreamsCommand.d.ts +1 -1
- package/dist-types/commands/ListMetricsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +1 -1
- package/dist-types/commands/PutCompositeAlarmCommand.d.ts +5 -1
- package/dist-types/commands/PutDashboardCommand.d.ts +1 -1
- package/dist-types/commands/PutInsightRuleCommand.d.ts +1 -1
- package/dist-types/commands/PutMetricAlarmCommand.d.ts +2 -2
- package/dist-types/commands/PutMetricDataCommand.d.ts +1 -1
- package/dist-types/commands/PutMetricStreamCommand.d.ts +2 -2
- package/dist-types/commands/SetAlarmStateCommand.d.ts +1 -1
- package/dist-types/commands/StartMetricStreamsCommand.d.ts +1 -1
- package/dist-types/commands/StopMetricStreamsCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +432 -189
- package/dist-types/ts3.4/models/models_0.d.ts +109 -67
- package/package.json +6 -6
|
@@ -53,6 +53,80 @@ export declare namespace Dimension {
|
|
|
53
53
|
|
|
54
54
|
const filterSensitiveLog: (obj: Dimension) => any;
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
export interface Metric {
|
|
58
|
+
|
|
59
|
+
Namespace?: string;
|
|
60
|
+
|
|
61
|
+
MetricName?: string;
|
|
62
|
+
|
|
63
|
+
Dimensions?: Dimension[];
|
|
64
|
+
}
|
|
65
|
+
export declare namespace Metric {
|
|
66
|
+
|
|
67
|
+
const filterSensitiveLog: (obj: Metric) => any;
|
|
68
|
+
}
|
|
69
|
+
export declare type StandardUnit = "Bits" | "Bits/Second" | "Bytes" | "Bytes/Second" | "Count" | "Count/Second" | "Gigabits" | "Gigabits/Second" | "Gigabytes" | "Gigabytes/Second" | "Kilobits" | "Kilobits/Second" | "Kilobytes" | "Kilobytes/Second" | "Megabits" | "Megabits/Second" | "Megabytes" | "Megabytes/Second" | "Microseconds" | "Milliseconds" | "None" | "Percent" | "Seconds" | "Terabits" | "Terabits/Second" | "Terabytes" | "Terabytes/Second";
|
|
70
|
+
|
|
71
|
+
export interface MetricStat {
|
|
72
|
+
|
|
73
|
+
Metric: Metric | undefined;
|
|
74
|
+
|
|
75
|
+
Period: number | undefined;
|
|
76
|
+
|
|
77
|
+
Stat: string | undefined;
|
|
78
|
+
|
|
79
|
+
Unit?: StandardUnit | string;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace MetricStat {
|
|
82
|
+
|
|
83
|
+
const filterSensitiveLog: (obj: MetricStat) => any;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface MetricDataQuery {
|
|
87
|
+
|
|
88
|
+
Id: string | undefined;
|
|
89
|
+
|
|
90
|
+
MetricStat?: MetricStat;
|
|
91
|
+
|
|
92
|
+
Expression?: string;
|
|
93
|
+
|
|
94
|
+
Label?: string;
|
|
95
|
+
|
|
96
|
+
ReturnData?: boolean;
|
|
97
|
+
|
|
98
|
+
Period?: number;
|
|
99
|
+
|
|
100
|
+
AccountId?: string;
|
|
101
|
+
}
|
|
102
|
+
export declare namespace MetricDataQuery {
|
|
103
|
+
|
|
104
|
+
const filterSensitiveLog: (obj: MetricDataQuery) => any;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface MetricMathAnomalyDetector {
|
|
108
|
+
|
|
109
|
+
MetricDataQueries?: MetricDataQuery[];
|
|
110
|
+
}
|
|
111
|
+
export declare namespace MetricMathAnomalyDetector {
|
|
112
|
+
|
|
113
|
+
const filterSensitiveLog: (obj: MetricMathAnomalyDetector) => any;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface SingleMetricAnomalyDetector {
|
|
117
|
+
|
|
118
|
+
Namespace?: string;
|
|
119
|
+
|
|
120
|
+
MetricName?: string;
|
|
121
|
+
|
|
122
|
+
Dimensions?: Dimension[];
|
|
123
|
+
|
|
124
|
+
Stat?: string;
|
|
125
|
+
}
|
|
126
|
+
export declare namespace SingleMetricAnomalyDetector {
|
|
127
|
+
|
|
128
|
+
const filterSensitiveLog: (obj: SingleMetricAnomalyDetector) => any;
|
|
129
|
+
}
|
|
56
130
|
export declare type AnomalyDetectorStateValue = "PENDING_TRAINING" | "TRAINED" | "TRAINED_INSUFFICIENT_DATA";
|
|
57
131
|
|
|
58
132
|
export interface AnomalyDetector {
|
|
@@ -68,11 +142,19 @@ export interface AnomalyDetector {
|
|
|
68
142
|
Configuration?: AnomalyDetectorConfiguration;
|
|
69
143
|
|
|
70
144
|
StateValue?: AnomalyDetectorStateValue | string;
|
|
145
|
+
|
|
146
|
+
SingleMetricAnomalyDetector?: SingleMetricAnomalyDetector;
|
|
147
|
+
|
|
148
|
+
MetricMathAnomalyDetector?: MetricMathAnomalyDetector;
|
|
71
149
|
}
|
|
72
150
|
export declare namespace AnomalyDetector {
|
|
73
151
|
|
|
74
152
|
const filterSensitiveLog: (obj: AnomalyDetector) => any;
|
|
75
153
|
}
|
|
154
|
+
export declare enum AnomalyDetectorType {
|
|
155
|
+
METRIC_MATH = "METRIC_MATH",
|
|
156
|
+
SINGLE_METRIC = "SINGLE_METRIC"
|
|
157
|
+
}
|
|
76
158
|
|
|
77
159
|
export interface PartialFailure {
|
|
78
160
|
|
|
@@ -180,7 +262,6 @@ export declare namespace DashboardNotFoundError {
|
|
|
180
262
|
|
|
181
263
|
const filterSensitiveLog: (obj: DashboardNotFoundError) => any;
|
|
182
264
|
}
|
|
183
|
-
export declare type StandardUnit = "Bits" | "Bits/Second" | "Bytes" | "Bytes/Second" | "Count" | "Count/Second" | "Gigabits" | "Gigabits/Second" | "Gigabytes" | "Gigabytes/Second" | "Kilobits" | "Kilobits/Second" | "Kilobytes" | "Kilobytes/Second" | "Megabits" | "Megabits/Second" | "Megabytes" | "Megabytes/Second" | "Microseconds" | "Milliseconds" | "None" | "Percent" | "Seconds" | "Terabits" | "Terabits/Second" | "Terabytes" | "Terabytes/Second";
|
|
184
265
|
|
|
185
266
|
export interface Datapoint {
|
|
186
267
|
|
|
@@ -227,13 +308,17 @@ export declare namespace ResourceNotFound {
|
|
|
227
308
|
}
|
|
228
309
|
export interface DeleteAnomalyDetectorInput {
|
|
229
310
|
|
|
230
|
-
Namespace
|
|
311
|
+
Namespace?: string;
|
|
231
312
|
|
|
232
|
-
MetricName
|
|
313
|
+
MetricName?: string;
|
|
233
314
|
|
|
234
315
|
Dimensions?: Dimension[];
|
|
235
316
|
|
|
236
|
-
Stat
|
|
317
|
+
Stat?: string;
|
|
318
|
+
|
|
319
|
+
SingleMetricAnomalyDetector?: SingleMetricAnomalyDetector;
|
|
320
|
+
|
|
321
|
+
MetricMathAnomalyDetector?: MetricMathAnomalyDetector;
|
|
237
322
|
}
|
|
238
323
|
export declare namespace DeleteAnomalyDetectorInput {
|
|
239
324
|
|
|
@@ -257,6 +342,17 @@ export declare namespace InternalServiceFault {
|
|
|
257
342
|
const filterSensitiveLog: (obj: InternalServiceFault) => any;
|
|
258
343
|
}
|
|
259
344
|
|
|
345
|
+
export interface InvalidParameterCombinationException extends __SmithyException, $MetadataBearer {
|
|
346
|
+
name: "InvalidParameterCombinationException";
|
|
347
|
+
$fault: "client";
|
|
348
|
+
|
|
349
|
+
message?: string;
|
|
350
|
+
}
|
|
351
|
+
export declare namespace InvalidParameterCombinationException {
|
|
352
|
+
|
|
353
|
+
const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
|
|
354
|
+
}
|
|
355
|
+
|
|
260
356
|
export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
|
|
261
357
|
name: "InvalidParameterValueException";
|
|
262
358
|
$fault: "client";
|
|
@@ -405,55 +501,6 @@ export declare namespace DescribeAlarmsInput {
|
|
|
405
501
|
|
|
406
502
|
const filterSensitiveLog: (obj: DescribeAlarmsInput) => any;
|
|
407
503
|
}
|
|
408
|
-
|
|
409
|
-
export interface Metric {
|
|
410
|
-
|
|
411
|
-
Namespace?: string;
|
|
412
|
-
|
|
413
|
-
MetricName?: string;
|
|
414
|
-
|
|
415
|
-
Dimensions?: Dimension[];
|
|
416
|
-
}
|
|
417
|
-
export declare namespace Metric {
|
|
418
|
-
|
|
419
|
-
const filterSensitiveLog: (obj: Metric) => any;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export interface MetricStat {
|
|
423
|
-
|
|
424
|
-
Metric: Metric | undefined;
|
|
425
|
-
|
|
426
|
-
Period: number | undefined;
|
|
427
|
-
|
|
428
|
-
Stat: string | undefined;
|
|
429
|
-
|
|
430
|
-
Unit?: StandardUnit | string;
|
|
431
|
-
}
|
|
432
|
-
export declare namespace MetricStat {
|
|
433
|
-
|
|
434
|
-
const filterSensitiveLog: (obj: MetricStat) => any;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
export interface MetricDataQuery {
|
|
438
|
-
|
|
439
|
-
Id: string | undefined;
|
|
440
|
-
|
|
441
|
-
MetricStat?: MetricStat;
|
|
442
|
-
|
|
443
|
-
Expression?: string;
|
|
444
|
-
|
|
445
|
-
Label?: string;
|
|
446
|
-
|
|
447
|
-
ReturnData?: boolean;
|
|
448
|
-
|
|
449
|
-
Period?: number;
|
|
450
|
-
|
|
451
|
-
AccountId?: string;
|
|
452
|
-
}
|
|
453
|
-
export declare namespace MetricDataQuery {
|
|
454
|
-
|
|
455
|
-
const filterSensitiveLog: (obj: MetricDataQuery) => any;
|
|
456
|
-
}
|
|
457
504
|
export declare type Statistic = "Average" | "Maximum" | "Minimum" | "SampleCount" | "Sum";
|
|
458
505
|
|
|
459
506
|
export interface MetricAlarm {
|
|
@@ -567,6 +614,8 @@ export interface DescribeAnomalyDetectorsInput {
|
|
|
567
614
|
MetricName?: string;
|
|
568
615
|
|
|
569
616
|
Dimensions?: Dimension[];
|
|
617
|
+
|
|
618
|
+
AnomalyDetectorTypes?: (AnomalyDetectorType | string)[];
|
|
570
619
|
}
|
|
571
620
|
export declare namespace DescribeAnomalyDetectorsInput {
|
|
572
621
|
|
|
@@ -901,17 +950,6 @@ export declare namespace GetMetricStatisticsOutput {
|
|
|
901
950
|
|
|
902
951
|
const filterSensitiveLog: (obj: GetMetricStatisticsOutput) => any;
|
|
903
952
|
}
|
|
904
|
-
|
|
905
|
-
export interface InvalidParameterCombinationException extends __SmithyException, $MetadataBearer {
|
|
906
|
-
name: "InvalidParameterCombinationException";
|
|
907
|
-
$fault: "client";
|
|
908
|
-
|
|
909
|
-
message?: string;
|
|
910
|
-
}
|
|
911
|
-
export declare namespace InvalidParameterCombinationException {
|
|
912
|
-
|
|
913
|
-
const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
|
|
914
|
-
}
|
|
915
953
|
export interface GetMetricStreamInput {
|
|
916
954
|
|
|
917
955
|
Name: string | undefined;
|
|
@@ -1096,15 +1134,19 @@ export declare namespace ListTagsForResourceOutput {
|
|
|
1096
1134
|
}
|
|
1097
1135
|
export interface PutAnomalyDetectorInput {
|
|
1098
1136
|
|
|
1099
|
-
Namespace
|
|
1137
|
+
Namespace?: string;
|
|
1100
1138
|
|
|
1101
|
-
MetricName
|
|
1139
|
+
MetricName?: string;
|
|
1102
1140
|
|
|
1103
1141
|
Dimensions?: Dimension[];
|
|
1104
1142
|
|
|
1105
|
-
Stat
|
|
1143
|
+
Stat?: string;
|
|
1106
1144
|
|
|
1107
1145
|
Configuration?: AnomalyDetectorConfiguration;
|
|
1146
|
+
|
|
1147
|
+
SingleMetricAnomalyDetector?: SingleMetricAnomalyDetector;
|
|
1148
|
+
|
|
1149
|
+
MetricMathAnomalyDetector?: MetricMathAnomalyDetector;
|
|
1108
1150
|
}
|
|
1109
1151
|
export declare namespace PutAnomalyDetectorInput {
|
|
1110
1152
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.45.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.45.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.45.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.45.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.40.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.40.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.40.0",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@aws-sdk/middleware-logger": "3.40.0",
|
|
33
33
|
"@aws-sdk/middleware-retry": "3.40.0",
|
|
34
34
|
"@aws-sdk/middleware-serde": "3.40.0",
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.45.0",
|
|
36
36
|
"@aws-sdk/middleware-stack": "3.40.0",
|
|
37
37
|
"@aws-sdk/middleware-user-agent": "3.40.0",
|
|
38
38
|
"@aws-sdk/node-config-provider": "3.40.0",
|
|
39
39
|
"@aws-sdk/node-http-handler": "3.40.0",
|
|
40
40
|
"@aws-sdk/protocol-http": "3.40.0",
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
+
"@aws-sdk/smithy-client": "3.41.0",
|
|
42
42
|
"@aws-sdk/types": "3.40.0",
|
|
43
43
|
"@aws-sdk/url-parser": "3.40.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.37.0",
|