@aws-sdk/client-cloudwatch 3.216.0 → 3.218.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/models/models_0.js +75 -3
- package/dist-cjs/protocols/Aws_query.js +20 -0
- package/dist-es/models/models_0.js +72 -0
- package/dist-es/protocols/Aws_query.js +20 -0
- package/dist-types/CloudWatch.d.ts +21 -21
- package/dist-types/commands/DeleteAlarmsCommand.d.ts +1 -1
- package/dist-types/commands/ListMetricsCommand.d.ts +7 -6
- package/dist-types/commands/PutCompositeAlarmCommand.d.ts +1 -1
- package/dist-types/commands/PutMetricStreamCommand.d.ts +12 -13
- package/dist-types/models/models_0.d.ts +111 -31
- package/dist-types/ts3.4/models/models_0.d.ts +68 -52
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopMetricStreamsOutputFilterSensitiveLog = exports.StopMetricStreamsInputFilterSensitiveLog = exports.StartMetricStreamsOutputFilterSensitiveLog = exports.StartMetricStreamsInputFilterSensitiveLog = exports.SetAlarmStateInputFilterSensitiveLog = exports.PutMetricStreamOutputFilterSensitiveLog = exports.PutMetricStreamInputFilterSensitiveLog = exports.PutMetricDataInputFilterSensitiveLog = exports.MetricDatumFilterSensitiveLog = exports.StatisticSetFilterSensitiveLog = exports.PutMetricAlarmInputFilterSensitiveLog = exports.PutManagedInsightRulesOutputFilterSensitiveLog = exports.PutManagedInsightRulesInputFilterSensitiveLog = exports.ManagedRuleFilterSensitiveLog = exports.PutInsightRuleOutputFilterSensitiveLog = exports.PutInsightRuleInputFilterSensitiveLog = exports.PutDashboardOutputFilterSensitiveLog = exports.PutDashboardInputFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DeleteMetricStreamOutputFilterSensitiveLog = exports.DeleteMetricStreamInputFilterSensitiveLog = exports.DeleteInsightRulesOutputFilterSensitiveLog = exports.DeleteInsightRulesInputFilterSensitiveLog = exports.DeleteDashboardsOutputFilterSensitiveLog = exports.DeleteDashboardsInputFilterSensitiveLog = exports.DeleteAnomalyDetectorOutputFilterSensitiveLog = exports.DeleteAnomalyDetectorInputFilterSensitiveLog = exports.DeleteAlarmsInputFilterSensitiveLog = exports.DatapointFilterSensitiveLog = exports.DashboardValidationMessageFilterSensitiveLog = exports.DashboardEntryFilterSensitiveLog = exports.CompositeAlarmFilterSensitiveLog = exports.PartialFailureFilterSensitiveLog = exports.AnomalyDetectorFilterSensitiveLog = exports.SingleMetricAnomalyDetectorFilterSensitiveLog = exports.MetricMathAnomalyDetectorFilterSensitiveLog = exports.MetricDataQueryFilterSensitiveLog = exports.MetricStatFilterSensitiveLog = exports.MetricFilterSensitiveLog = exports.DimensionFilterSensitiveLog = exports.AnomalyDetectorConfigurationFilterSensitiveLog = exports.RangeFilterSensitiveLog = exports.AlarmHistoryItemFilterSensitiveLog = exports.InvalidFormatFault = exports.LimitExceededFault = exports.RecentlyActive = exports.MetricStreamOutputFormat = exports.StatusCode = exports.LimitExceededException = exports.Statistic = exports.InvalidNextToken = exports.ScanBy = exports.ResourceNotFoundException = exports.MissingRequiredParameterException = exports.InvalidParameterValueException = exports.InvalidParameterCombinationException = exports.InternalServiceFault = exports.ResourceNotFound = exports.DashboardNotFoundError = exports.DashboardInvalidInputError = exports.ConcurrentModificationException = exports.StateValue = exports.ComparisonOperator = exports.AnomalyDetectorType = exports.AnomalyDetectorStateValue = exports.StandardUnit = exports.HistoryItemType = exports.AlarmType = exports.ActionsSuppressedBy = void 0;
|
|
4
|
+
exports.MetricStreamEntryFilterSensitiveLog = exports.ListMetricStreamsInputFilterSensitiveLog = exports.ListMetricsOutputFilterSensitiveLog = exports.ListMetricsInputFilterSensitiveLog = exports.ListManagedInsightRulesOutputFilterSensitiveLog = exports.ManagedRuleDescriptionFilterSensitiveLog = exports.ManagedRuleStateFilterSensitiveLog = exports.ListManagedInsightRulesInputFilterSensitiveLog = exports.ListDashboardsOutputFilterSensitiveLog = exports.ListDashboardsInputFilterSensitiveLog = exports.GetMetricWidgetImageOutputFilterSensitiveLog = exports.GetMetricWidgetImageInputFilterSensitiveLog = exports.GetMetricStreamOutputFilterSensitiveLog = exports.MetricStreamStatisticsConfigurationFilterSensitiveLog = exports.MetricStreamStatisticsMetricFilterSensitiveLog = exports.MetricStreamFilterFilterSensitiveLog = exports.GetMetricStreamInputFilterSensitiveLog = exports.GetMetricStatisticsOutputFilterSensitiveLog = exports.GetMetricStatisticsInputFilterSensitiveLog = exports.GetMetricDataOutputFilterSensitiveLog = exports.MetricDataResultFilterSensitiveLog = exports.MessageDataFilterSensitiveLog = exports.GetMetricDataInputFilterSensitiveLog = exports.LabelOptionsFilterSensitiveLog = exports.GetInsightRuleReportOutputFilterSensitiveLog = exports.InsightRuleMetricDatapointFilterSensitiveLog = exports.InsightRuleContributorFilterSensitiveLog = exports.InsightRuleContributorDatapointFilterSensitiveLog = exports.GetInsightRuleReportInputFilterSensitiveLog = exports.GetDashboardOutputFilterSensitiveLog = exports.GetDashboardInputFilterSensitiveLog = exports.EnableInsightRulesOutputFilterSensitiveLog = exports.EnableInsightRulesInputFilterSensitiveLog = exports.EnableAlarmActionsInputFilterSensitiveLog = exports.DisableInsightRulesOutputFilterSensitiveLog = exports.DisableInsightRulesInputFilterSensitiveLog = exports.DisableAlarmActionsInputFilterSensitiveLog = exports.DimensionFilterFilterSensitiveLog = exports.DescribeInsightRulesOutputFilterSensitiveLog = exports.InsightRuleFilterSensitiveLog = exports.DescribeInsightRulesInputFilterSensitiveLog = exports.DescribeAnomalyDetectorsOutputFilterSensitiveLog = exports.DescribeAnomalyDetectorsInputFilterSensitiveLog = exports.DescribeAlarmsForMetricOutputFilterSensitiveLog = exports.DescribeAlarmsForMetricInputFilterSensitiveLog = exports.DescribeAlarmsOutputFilterSensitiveLog = exports.MetricAlarmFilterSensitiveLog = exports.DescribeAlarmsInputFilterSensitiveLog = exports.DescribeAlarmHistoryOutputFilterSensitiveLog = exports.DescribeAlarmHistoryInputFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopMetricStreamsOutputFilterSensitiveLog = exports.StopMetricStreamsInputFilterSensitiveLog = exports.StartMetricStreamsOutputFilterSensitiveLog = exports.StartMetricStreamsInputFilterSensitiveLog = exports.SetAlarmStateInputFilterSensitiveLog = exports.PutMetricStreamOutputFilterSensitiveLog = exports.PutMetricStreamInputFilterSensitiveLog = exports.PutMetricDataInputFilterSensitiveLog = exports.MetricDatumFilterSensitiveLog = exports.StatisticSetFilterSensitiveLog = exports.PutMetricAlarmInputFilterSensitiveLog = exports.PutManagedInsightRulesOutputFilterSensitiveLog = exports.PutManagedInsightRulesInputFilterSensitiveLog = exports.ManagedRuleFilterSensitiveLog = exports.PutInsightRuleOutputFilterSensitiveLog = exports.PutInsightRuleInputFilterSensitiveLog = exports.PutDashboardOutputFilterSensitiveLog = exports.PutDashboardInputFilterSensitiveLog = exports.PutCompositeAlarmInputFilterSensitiveLog = exports.PutAnomalyDetectorOutputFilterSensitiveLog = exports.PutAnomalyDetectorInputFilterSensitiveLog = exports.ListTagsForResourceOutputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ListTagsForResourceInputFilterSensitiveLog = exports.ListMetricStreamsOutputFilterSensitiveLog = void 0;
|
|
6
6
|
const CloudWatchServiceException_1 = require("./CloudWatchServiceException");
|
|
7
7
|
var ActionsSuppressedBy;
|
|
8
8
|
(function (ActionsSuppressedBy) {
|
|
@@ -10,11 +10,74 @@ var ActionsSuppressedBy;
|
|
|
10
10
|
ActionsSuppressedBy["ExtensionPeriod"] = "ExtensionPeriod";
|
|
11
11
|
ActionsSuppressedBy["WaitPeriod"] = "WaitPeriod";
|
|
12
12
|
})(ActionsSuppressedBy = exports.ActionsSuppressedBy || (exports.ActionsSuppressedBy = {}));
|
|
13
|
+
var AlarmType;
|
|
14
|
+
(function (AlarmType) {
|
|
15
|
+
AlarmType["CompositeAlarm"] = "CompositeAlarm";
|
|
16
|
+
AlarmType["MetricAlarm"] = "MetricAlarm";
|
|
17
|
+
})(AlarmType = exports.AlarmType || (exports.AlarmType = {}));
|
|
18
|
+
var HistoryItemType;
|
|
19
|
+
(function (HistoryItemType) {
|
|
20
|
+
HistoryItemType["Action"] = "Action";
|
|
21
|
+
HistoryItemType["ConfigurationUpdate"] = "ConfigurationUpdate";
|
|
22
|
+
HistoryItemType["StateUpdate"] = "StateUpdate";
|
|
23
|
+
})(HistoryItemType = exports.HistoryItemType || (exports.HistoryItemType = {}));
|
|
24
|
+
var StandardUnit;
|
|
25
|
+
(function (StandardUnit) {
|
|
26
|
+
StandardUnit["Bits"] = "Bits";
|
|
27
|
+
StandardUnit["Bits_Second"] = "Bits/Second";
|
|
28
|
+
StandardUnit["Bytes"] = "Bytes";
|
|
29
|
+
StandardUnit["Bytes_Second"] = "Bytes/Second";
|
|
30
|
+
StandardUnit["Count"] = "Count";
|
|
31
|
+
StandardUnit["Count_Second"] = "Count/Second";
|
|
32
|
+
StandardUnit["Gigabits"] = "Gigabits";
|
|
33
|
+
StandardUnit["Gigabits_Second"] = "Gigabits/Second";
|
|
34
|
+
StandardUnit["Gigabytes"] = "Gigabytes";
|
|
35
|
+
StandardUnit["Gigabytes_Second"] = "Gigabytes/Second";
|
|
36
|
+
StandardUnit["Kilobits"] = "Kilobits";
|
|
37
|
+
StandardUnit["Kilobits_Second"] = "Kilobits/Second";
|
|
38
|
+
StandardUnit["Kilobytes"] = "Kilobytes";
|
|
39
|
+
StandardUnit["Kilobytes_Second"] = "Kilobytes/Second";
|
|
40
|
+
StandardUnit["Megabits"] = "Megabits";
|
|
41
|
+
StandardUnit["Megabits_Second"] = "Megabits/Second";
|
|
42
|
+
StandardUnit["Megabytes"] = "Megabytes";
|
|
43
|
+
StandardUnit["Megabytes_Second"] = "Megabytes/Second";
|
|
44
|
+
StandardUnit["Microseconds"] = "Microseconds";
|
|
45
|
+
StandardUnit["Milliseconds"] = "Milliseconds";
|
|
46
|
+
StandardUnit["None"] = "None";
|
|
47
|
+
StandardUnit["Percent"] = "Percent";
|
|
48
|
+
StandardUnit["Seconds"] = "Seconds";
|
|
49
|
+
StandardUnit["Terabits"] = "Terabits";
|
|
50
|
+
StandardUnit["Terabits_Second"] = "Terabits/Second";
|
|
51
|
+
StandardUnit["Terabytes"] = "Terabytes";
|
|
52
|
+
StandardUnit["Terabytes_Second"] = "Terabytes/Second";
|
|
53
|
+
})(StandardUnit = exports.StandardUnit || (exports.StandardUnit = {}));
|
|
54
|
+
var AnomalyDetectorStateValue;
|
|
55
|
+
(function (AnomalyDetectorStateValue) {
|
|
56
|
+
AnomalyDetectorStateValue["PENDING_TRAINING"] = "PENDING_TRAINING";
|
|
57
|
+
AnomalyDetectorStateValue["TRAINED"] = "TRAINED";
|
|
58
|
+
AnomalyDetectorStateValue["TRAINED_INSUFFICIENT_DATA"] = "TRAINED_INSUFFICIENT_DATA";
|
|
59
|
+
})(AnomalyDetectorStateValue = exports.AnomalyDetectorStateValue || (exports.AnomalyDetectorStateValue = {}));
|
|
13
60
|
var AnomalyDetectorType;
|
|
14
61
|
(function (AnomalyDetectorType) {
|
|
15
62
|
AnomalyDetectorType["METRIC_MATH"] = "METRIC_MATH";
|
|
16
63
|
AnomalyDetectorType["SINGLE_METRIC"] = "SINGLE_METRIC";
|
|
17
64
|
})(AnomalyDetectorType = exports.AnomalyDetectorType || (exports.AnomalyDetectorType = {}));
|
|
65
|
+
var ComparisonOperator;
|
|
66
|
+
(function (ComparisonOperator) {
|
|
67
|
+
ComparisonOperator["GreaterThanOrEqualToThreshold"] = "GreaterThanOrEqualToThreshold";
|
|
68
|
+
ComparisonOperator["GreaterThanThreshold"] = "GreaterThanThreshold";
|
|
69
|
+
ComparisonOperator["GreaterThanUpperThreshold"] = "GreaterThanUpperThreshold";
|
|
70
|
+
ComparisonOperator["LessThanLowerOrGreaterThanUpperThreshold"] = "LessThanLowerOrGreaterThanUpperThreshold";
|
|
71
|
+
ComparisonOperator["LessThanLowerThreshold"] = "LessThanLowerThreshold";
|
|
72
|
+
ComparisonOperator["LessThanOrEqualToThreshold"] = "LessThanOrEqualToThreshold";
|
|
73
|
+
ComparisonOperator["LessThanThreshold"] = "LessThanThreshold";
|
|
74
|
+
})(ComparisonOperator = exports.ComparisonOperator || (exports.ComparisonOperator = {}));
|
|
75
|
+
var StateValue;
|
|
76
|
+
(function (StateValue) {
|
|
77
|
+
StateValue["ALARM"] = "ALARM";
|
|
78
|
+
StateValue["INSUFFICIENT_DATA"] = "INSUFFICIENT_DATA";
|
|
79
|
+
StateValue["OK"] = "OK";
|
|
80
|
+
})(StateValue = exports.StateValue || (exports.StateValue = {}));
|
|
18
81
|
class ConcurrentModificationException extends CloudWatchServiceException_1.CloudWatchServiceException {
|
|
19
82
|
constructor(opts) {
|
|
20
83
|
super({
|
|
@@ -156,6 +219,14 @@ class InvalidNextToken extends CloudWatchServiceException_1.CloudWatchServiceExc
|
|
|
156
219
|
}
|
|
157
220
|
}
|
|
158
221
|
exports.InvalidNextToken = InvalidNextToken;
|
|
222
|
+
var Statistic;
|
|
223
|
+
(function (Statistic) {
|
|
224
|
+
Statistic["Average"] = "Average";
|
|
225
|
+
Statistic["Maximum"] = "Maximum";
|
|
226
|
+
Statistic["Minimum"] = "Minimum";
|
|
227
|
+
Statistic["SampleCount"] = "SampleCount";
|
|
228
|
+
Statistic["Sum"] = "Sum";
|
|
229
|
+
})(Statistic = exports.Statistic || (exports.Statistic = {}));
|
|
159
230
|
class LimitExceededException extends CloudWatchServiceException_1.CloudWatchServiceException {
|
|
160
231
|
constructor(opts) {
|
|
161
232
|
super({
|
|
@@ -173,6 +244,7 @@ exports.LimitExceededException = LimitExceededException;
|
|
|
173
244
|
var StatusCode;
|
|
174
245
|
(function (StatusCode) {
|
|
175
246
|
StatusCode["COMPLETE"] = "Complete";
|
|
247
|
+
StatusCode["FORBIDDEN"] = "Forbidden";
|
|
176
248
|
StatusCode["INTERNAL_ERROR"] = "InternalError";
|
|
177
249
|
StatusCode["PARTIAL_DATA"] = "PartialData";
|
|
178
250
|
})(StatusCode = exports.StatusCode || (exports.StatusCode = {}));
|
|
@@ -2724,6 +2724,12 @@ const serializeAws_queryListMetricsInput = (input, context) => {
|
|
|
2724
2724
|
if (input.RecentlyActive != null) {
|
|
2725
2725
|
entries["RecentlyActive"] = input.RecentlyActive;
|
|
2726
2726
|
}
|
|
2727
|
+
if (input.IncludeLinkedAccounts != null) {
|
|
2728
|
+
entries["IncludeLinkedAccounts"] = input.IncludeLinkedAccounts;
|
|
2729
|
+
}
|
|
2730
|
+
if (input.OwningAccount != null) {
|
|
2731
|
+
entries["OwningAccount"] = input.OwningAccount;
|
|
2732
|
+
}
|
|
2727
2733
|
return entries;
|
|
2728
2734
|
};
|
|
2729
2735
|
const serializeAws_queryListMetricStreamsInput = (input, context) => {
|
|
@@ -4507,6 +4513,7 @@ const deserializeAws_queryListMetricsOutput = (output, context) => {
|
|
|
4507
4513
|
const contents = {
|
|
4508
4514
|
Metrics: undefined,
|
|
4509
4515
|
NextToken: undefined,
|
|
4516
|
+
OwningAccounts: undefined,
|
|
4510
4517
|
};
|
|
4511
4518
|
if (output.Metrics === "") {
|
|
4512
4519
|
contents.Metrics = [];
|
|
@@ -4517,6 +4524,12 @@ const deserializeAws_queryListMetricsOutput = (output, context) => {
|
|
|
4517
4524
|
if (output["NextToken"] !== undefined) {
|
|
4518
4525
|
contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
|
|
4519
4526
|
}
|
|
4527
|
+
if (output.OwningAccounts === "") {
|
|
4528
|
+
contents.OwningAccounts = [];
|
|
4529
|
+
}
|
|
4530
|
+
else if (output["OwningAccounts"] !== undefined && output["OwningAccounts"]["member"] !== undefined) {
|
|
4531
|
+
contents.OwningAccounts = deserializeAws_queryOwningAccounts((0, smithy_client_1.getArrayIfSingleItem)(output["OwningAccounts"]["member"]), context);
|
|
4532
|
+
}
|
|
4520
4533
|
return contents;
|
|
4521
4534
|
};
|
|
4522
4535
|
const deserializeAws_queryListMetricStreamsOutput = (output, context) => {
|
|
@@ -5003,6 +5016,13 @@ const deserializeAws_queryMissingRequiredParameterException = (output, context)
|
|
|
5003
5016
|
}
|
|
5004
5017
|
return contents;
|
|
5005
5018
|
};
|
|
5019
|
+
const deserializeAws_queryOwningAccounts = (output, context) => {
|
|
5020
|
+
return (output || [])
|
|
5021
|
+
.filter((e) => e != null)
|
|
5022
|
+
.map((entry) => {
|
|
5023
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5024
|
+
});
|
|
5025
|
+
};
|
|
5006
5026
|
const deserializeAws_queryPartialFailure = (output, context) => {
|
|
5007
5027
|
const contents = {
|
|
5008
5028
|
FailureResource: undefined,
|
|
@@ -5,11 +5,74 @@ export var ActionsSuppressedBy;
|
|
|
5
5
|
ActionsSuppressedBy["ExtensionPeriod"] = "ExtensionPeriod";
|
|
6
6
|
ActionsSuppressedBy["WaitPeriod"] = "WaitPeriod";
|
|
7
7
|
})(ActionsSuppressedBy || (ActionsSuppressedBy = {}));
|
|
8
|
+
export var AlarmType;
|
|
9
|
+
(function (AlarmType) {
|
|
10
|
+
AlarmType["CompositeAlarm"] = "CompositeAlarm";
|
|
11
|
+
AlarmType["MetricAlarm"] = "MetricAlarm";
|
|
12
|
+
})(AlarmType || (AlarmType = {}));
|
|
13
|
+
export var HistoryItemType;
|
|
14
|
+
(function (HistoryItemType) {
|
|
15
|
+
HistoryItemType["Action"] = "Action";
|
|
16
|
+
HistoryItemType["ConfigurationUpdate"] = "ConfigurationUpdate";
|
|
17
|
+
HistoryItemType["StateUpdate"] = "StateUpdate";
|
|
18
|
+
})(HistoryItemType || (HistoryItemType = {}));
|
|
19
|
+
export var StandardUnit;
|
|
20
|
+
(function (StandardUnit) {
|
|
21
|
+
StandardUnit["Bits"] = "Bits";
|
|
22
|
+
StandardUnit["Bits_Second"] = "Bits/Second";
|
|
23
|
+
StandardUnit["Bytes"] = "Bytes";
|
|
24
|
+
StandardUnit["Bytes_Second"] = "Bytes/Second";
|
|
25
|
+
StandardUnit["Count"] = "Count";
|
|
26
|
+
StandardUnit["Count_Second"] = "Count/Second";
|
|
27
|
+
StandardUnit["Gigabits"] = "Gigabits";
|
|
28
|
+
StandardUnit["Gigabits_Second"] = "Gigabits/Second";
|
|
29
|
+
StandardUnit["Gigabytes"] = "Gigabytes";
|
|
30
|
+
StandardUnit["Gigabytes_Second"] = "Gigabytes/Second";
|
|
31
|
+
StandardUnit["Kilobits"] = "Kilobits";
|
|
32
|
+
StandardUnit["Kilobits_Second"] = "Kilobits/Second";
|
|
33
|
+
StandardUnit["Kilobytes"] = "Kilobytes";
|
|
34
|
+
StandardUnit["Kilobytes_Second"] = "Kilobytes/Second";
|
|
35
|
+
StandardUnit["Megabits"] = "Megabits";
|
|
36
|
+
StandardUnit["Megabits_Second"] = "Megabits/Second";
|
|
37
|
+
StandardUnit["Megabytes"] = "Megabytes";
|
|
38
|
+
StandardUnit["Megabytes_Second"] = "Megabytes/Second";
|
|
39
|
+
StandardUnit["Microseconds"] = "Microseconds";
|
|
40
|
+
StandardUnit["Milliseconds"] = "Milliseconds";
|
|
41
|
+
StandardUnit["None"] = "None";
|
|
42
|
+
StandardUnit["Percent"] = "Percent";
|
|
43
|
+
StandardUnit["Seconds"] = "Seconds";
|
|
44
|
+
StandardUnit["Terabits"] = "Terabits";
|
|
45
|
+
StandardUnit["Terabits_Second"] = "Terabits/Second";
|
|
46
|
+
StandardUnit["Terabytes"] = "Terabytes";
|
|
47
|
+
StandardUnit["Terabytes_Second"] = "Terabytes/Second";
|
|
48
|
+
})(StandardUnit || (StandardUnit = {}));
|
|
49
|
+
export var AnomalyDetectorStateValue;
|
|
50
|
+
(function (AnomalyDetectorStateValue) {
|
|
51
|
+
AnomalyDetectorStateValue["PENDING_TRAINING"] = "PENDING_TRAINING";
|
|
52
|
+
AnomalyDetectorStateValue["TRAINED"] = "TRAINED";
|
|
53
|
+
AnomalyDetectorStateValue["TRAINED_INSUFFICIENT_DATA"] = "TRAINED_INSUFFICIENT_DATA";
|
|
54
|
+
})(AnomalyDetectorStateValue || (AnomalyDetectorStateValue = {}));
|
|
8
55
|
export var AnomalyDetectorType;
|
|
9
56
|
(function (AnomalyDetectorType) {
|
|
10
57
|
AnomalyDetectorType["METRIC_MATH"] = "METRIC_MATH";
|
|
11
58
|
AnomalyDetectorType["SINGLE_METRIC"] = "SINGLE_METRIC";
|
|
12
59
|
})(AnomalyDetectorType || (AnomalyDetectorType = {}));
|
|
60
|
+
export var ComparisonOperator;
|
|
61
|
+
(function (ComparisonOperator) {
|
|
62
|
+
ComparisonOperator["GreaterThanOrEqualToThreshold"] = "GreaterThanOrEqualToThreshold";
|
|
63
|
+
ComparisonOperator["GreaterThanThreshold"] = "GreaterThanThreshold";
|
|
64
|
+
ComparisonOperator["GreaterThanUpperThreshold"] = "GreaterThanUpperThreshold";
|
|
65
|
+
ComparisonOperator["LessThanLowerOrGreaterThanUpperThreshold"] = "LessThanLowerOrGreaterThanUpperThreshold";
|
|
66
|
+
ComparisonOperator["LessThanLowerThreshold"] = "LessThanLowerThreshold";
|
|
67
|
+
ComparisonOperator["LessThanOrEqualToThreshold"] = "LessThanOrEqualToThreshold";
|
|
68
|
+
ComparisonOperator["LessThanThreshold"] = "LessThanThreshold";
|
|
69
|
+
})(ComparisonOperator || (ComparisonOperator = {}));
|
|
70
|
+
export var StateValue;
|
|
71
|
+
(function (StateValue) {
|
|
72
|
+
StateValue["ALARM"] = "ALARM";
|
|
73
|
+
StateValue["INSUFFICIENT_DATA"] = "INSUFFICIENT_DATA";
|
|
74
|
+
StateValue["OK"] = "OK";
|
|
75
|
+
})(StateValue || (StateValue = {}));
|
|
13
76
|
export class ConcurrentModificationException extends __BaseException {
|
|
14
77
|
constructor(opts) {
|
|
15
78
|
super({
|
|
@@ -141,6 +204,14 @@ export class InvalidNextToken extends __BaseException {
|
|
|
141
204
|
Object.setPrototypeOf(this, InvalidNextToken.prototype);
|
|
142
205
|
}
|
|
143
206
|
}
|
|
207
|
+
export var Statistic;
|
|
208
|
+
(function (Statistic) {
|
|
209
|
+
Statistic["Average"] = "Average";
|
|
210
|
+
Statistic["Maximum"] = "Maximum";
|
|
211
|
+
Statistic["Minimum"] = "Minimum";
|
|
212
|
+
Statistic["SampleCount"] = "SampleCount";
|
|
213
|
+
Statistic["Sum"] = "Sum";
|
|
214
|
+
})(Statistic || (Statistic = {}));
|
|
144
215
|
export class LimitExceededException extends __BaseException {
|
|
145
216
|
constructor(opts) {
|
|
146
217
|
super({
|
|
@@ -157,6 +228,7 @@ export class LimitExceededException extends __BaseException {
|
|
|
157
228
|
export var StatusCode;
|
|
158
229
|
(function (StatusCode) {
|
|
159
230
|
StatusCode["COMPLETE"] = "Complete";
|
|
231
|
+
StatusCode["FORBIDDEN"] = "Forbidden";
|
|
160
232
|
StatusCode["INTERNAL_ERROR"] = "InternalError";
|
|
161
233
|
StatusCode["PARTIAL_DATA"] = "PartialData";
|
|
162
234
|
})(StatusCode || (StatusCode = {}));
|
|
@@ -2644,6 +2644,12 @@ const serializeAws_queryListMetricsInput = (input, context) => {
|
|
|
2644
2644
|
if (input.RecentlyActive != null) {
|
|
2645
2645
|
entries["RecentlyActive"] = input.RecentlyActive;
|
|
2646
2646
|
}
|
|
2647
|
+
if (input.IncludeLinkedAccounts != null) {
|
|
2648
|
+
entries["IncludeLinkedAccounts"] = input.IncludeLinkedAccounts;
|
|
2649
|
+
}
|
|
2650
|
+
if (input.OwningAccount != null) {
|
|
2651
|
+
entries["OwningAccount"] = input.OwningAccount;
|
|
2652
|
+
}
|
|
2647
2653
|
return entries;
|
|
2648
2654
|
};
|
|
2649
2655
|
const serializeAws_queryListMetricStreamsInput = (input, context) => {
|
|
@@ -4427,6 +4433,7 @@ const deserializeAws_queryListMetricsOutput = (output, context) => {
|
|
|
4427
4433
|
const contents = {
|
|
4428
4434
|
Metrics: undefined,
|
|
4429
4435
|
NextToken: undefined,
|
|
4436
|
+
OwningAccounts: undefined,
|
|
4430
4437
|
};
|
|
4431
4438
|
if (output.Metrics === "") {
|
|
4432
4439
|
contents.Metrics = [];
|
|
@@ -4437,6 +4444,12 @@ const deserializeAws_queryListMetricsOutput = (output, context) => {
|
|
|
4437
4444
|
if (output["NextToken"] !== undefined) {
|
|
4438
4445
|
contents.NextToken = __expectString(output["NextToken"]);
|
|
4439
4446
|
}
|
|
4447
|
+
if (output.OwningAccounts === "") {
|
|
4448
|
+
contents.OwningAccounts = [];
|
|
4449
|
+
}
|
|
4450
|
+
else if (output["OwningAccounts"] !== undefined && output["OwningAccounts"]["member"] !== undefined) {
|
|
4451
|
+
contents.OwningAccounts = deserializeAws_queryOwningAccounts(__getArrayIfSingleItem(output["OwningAccounts"]["member"]), context);
|
|
4452
|
+
}
|
|
4440
4453
|
return contents;
|
|
4441
4454
|
};
|
|
4442
4455
|
const deserializeAws_queryListMetricStreamsOutput = (output, context) => {
|
|
@@ -4923,6 +4936,13 @@ const deserializeAws_queryMissingRequiredParameterException = (output, context)
|
|
|
4923
4936
|
}
|
|
4924
4937
|
return contents;
|
|
4925
4938
|
};
|
|
4939
|
+
const deserializeAws_queryOwningAccounts = (output, context) => {
|
|
4940
|
+
return (output || [])
|
|
4941
|
+
.filter((e) => e != null)
|
|
4942
|
+
.map((entry) => {
|
|
4943
|
+
return __expectString(entry);
|
|
4944
|
+
});
|
|
4945
|
+
};
|
|
4926
4946
|
const deserializeAws_queryPartialFailure = (output, context) => {
|
|
4927
4947
|
const contents = {
|
|
4928
4948
|
FailureResource: undefined,
|
|
@@ -69,7 +69,7 @@ export declare class CloudWatch extends CloudWatchClient {
|
|
|
69
69
|
* because there is always still a composite alarm that depends on that alarm that you want to delete.</p>
|
|
70
70
|
* <p>To get out of such a situation, you must
|
|
71
71
|
* 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
|
|
72
|
-
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>
|
|
72
|
+
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>false</code>. </p>
|
|
73
73
|
* <p>Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
|
|
74
74
|
* </p>
|
|
75
75
|
* </note>
|
|
@@ -415,14 +415,15 @@ export declare class CloudWatch extends CloudWatchClient {
|
|
|
415
415
|
listManagedInsightRules(args: ListManagedInsightRulesCommandInput, cb: (err: any, data?: ListManagedInsightRulesCommandOutput) => void): void;
|
|
416
416
|
listManagedInsightRules(args: ListManagedInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedInsightRulesCommandOutput) => void): void;
|
|
417
417
|
/**
|
|
418
|
-
* <p>List the specified metrics. You can use the returned metrics with
|
|
419
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
420
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> to obtain statistical data.</p>
|
|
418
|
+
* <p>List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> to get statistical data.</p>
|
|
421
419
|
* <p>Up to 500 results are returned for any one call. To retrieve additional results,
|
|
422
420
|
* use the returned token with subsequent calls.</p>
|
|
423
|
-
* <p>After you create a metric, allow up to 15 minutes
|
|
424
|
-
*
|
|
425
|
-
*
|
|
421
|
+
* <p>After you create a metric, allow up to 15 minutes for the metric to appear. To see metric
|
|
422
|
+
* statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.</p>
|
|
423
|
+
*
|
|
424
|
+
* <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and
|
|
425
|
+
* view metrics from the linked source accounts. For more information, see
|
|
426
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>
|
|
426
427
|
*
|
|
427
428
|
* <p>
|
|
428
429
|
* <code>ListMetrics</code> doesn't return information about metrics if those metrics haven't
|
|
@@ -477,7 +478,7 @@ export declare class CloudWatch extends CloudWatchClient {
|
|
|
477
478
|
* because there is always still a composite alarm that depends on that alarm that you want to delete.</p>
|
|
478
479
|
* <p>To get out of such a situation, you must
|
|
479
480
|
* 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
|
|
480
|
-
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>
|
|
481
|
+
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>false</code>. </p>
|
|
481
482
|
* <p>Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
|
|
482
483
|
* </p>
|
|
483
484
|
* </note>
|
|
@@ -671,16 +672,15 @@ export declare class CloudWatch extends CloudWatchClient {
|
|
|
671
672
|
putMetricData(args: PutMetricDataCommandInput, cb: (err: any, data?: PutMetricDataCommandOutput) => void): void;
|
|
672
673
|
putMetricData(args: PutMetricDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutMetricDataCommandOutput) => void): void;
|
|
673
674
|
/**
|
|
674
|
-
* <p>Creates or updates a metric stream. Metric streams can automatically stream CloudWatch
|
|
675
|
-
* to Amazon Web Services destinations including
|
|
676
|
-
*
|
|
675
|
+
* <p>Creates or updates a metric stream. Metric streams can automatically stream CloudWatch
|
|
676
|
+
* metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party
|
|
677
|
+
* solutions.</p>
|
|
677
678
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html">
|
|
678
679
|
* Using Metric Streams</a>.</p>
|
|
679
|
-
* <p>To create a metric stream,
|
|
680
|
-
*
|
|
681
|
-
*
|
|
682
|
-
*
|
|
683
|
-
* permission.</p>
|
|
680
|
+
* <p>To create a metric stream, you must be signed in to an account that has the
|
|
681
|
+
* <code>iam:PassRole</code> permission and either the
|
|
682
|
+
* <code>CloudWatchFullAccess</code> policy or the
|
|
683
|
+
* <code>cloudwatch:PutMetricStream</code> permission.</p>
|
|
684
684
|
* <p>When you create or update a metric stream, you choose one of the following:</p>
|
|
685
685
|
* <ul>
|
|
686
686
|
* <li>
|
|
@@ -696,11 +696,11 @@ export declare class CloudWatch extends CloudWatchClient {
|
|
|
696
696
|
* </li>
|
|
697
697
|
* </ul>
|
|
698
698
|
*
|
|
699
|
-
* <p>By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>,
|
|
700
|
-
*
|
|
701
|
-
* <code>StatisticsConfigurations</code> parameter to have
|
|
702
|
-
*
|
|
703
|
-
* additional costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. </p>
|
|
699
|
+
* <p>By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>,
|
|
700
|
+
* <code>SUM</code>, and <code>SAMPLECOUNT</code> statistics for each metric that is
|
|
701
|
+
* streamed. You can use the <code>StatisticsConfigurations</code> parameter to have the
|
|
702
|
+
* metric stream send additional statistics in the stream. Streaming additional statistics
|
|
703
|
+
* incurs additional costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. </p>
|
|
704
704
|
*
|
|
705
705
|
* <p>When you use <code>PutMetricStream</code> to create a new metric stream, the stream
|
|
706
706
|
* is created in the <code>running</code> state. If you use it to update an existing stream,
|
|
@@ -20,7 +20,7 @@ export interface DeleteAlarmsCommandOutput extends __MetadataBearer {
|
|
|
20
20
|
* because there is always still a composite alarm that depends on that alarm that you want to delete.</p>
|
|
21
21
|
* <p>To get out of such a situation, you must
|
|
22
22
|
* 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
|
|
23
|
-
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>
|
|
23
|
+
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>false</code>. </p>
|
|
24
24
|
* <p>Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
|
|
25
25
|
* </p>
|
|
26
26
|
* </note>
|
|
@@ -8,14 +8,15 @@ export interface ListMetricsCommandInput extends ListMetricsInput {
|
|
|
8
8
|
export interface ListMetricsCommandOutput extends ListMetricsOutput, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>List the specified metrics. You can use the returned metrics with
|
|
12
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
13
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> to obtain statistical data.</p>
|
|
11
|
+
* <p>List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> to get statistical data.</p>
|
|
14
12
|
* <p>Up to 500 results are returned for any one call. To retrieve additional results,
|
|
15
13
|
* use the returned token with subsequent calls.</p>
|
|
16
|
-
* <p>After you create a metric, allow up to 15 minutes
|
|
17
|
-
*
|
|
18
|
-
*
|
|
14
|
+
* <p>After you create a metric, allow up to 15 minutes for the metric to appear. To see metric
|
|
15
|
+
* statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.</p>
|
|
16
|
+
*
|
|
17
|
+
* <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and
|
|
18
|
+
* view metrics from the linked source accounts. For more information, see
|
|
19
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>
|
|
19
20
|
*
|
|
20
21
|
* <p>
|
|
21
22
|
* <code>ListMetrics</code> doesn't return information about metrics if those metrics haven't
|
|
@@ -30,7 +30,7 @@ export interface PutCompositeAlarmCommandOutput extends __MetadataBearer {
|
|
|
30
30
|
* because there is always still a composite alarm that depends on that alarm that you want to delete.</p>
|
|
31
31
|
* <p>To get out of such a situation, you must
|
|
32
32
|
* 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
|
|
33
|
-
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>
|
|
33
|
+
* change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>false</code>. </p>
|
|
34
34
|
* <p>Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
|
|
35
35
|
* </p>
|
|
36
36
|
* </note>
|
|
@@ -8,16 +8,15 @@ export interface PutMetricStreamCommandInput extends PutMetricStreamInput {
|
|
|
8
8
|
export interface PutMetricStreamCommandOutput extends PutMetricStreamOutput, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Creates or updates a metric stream. Metric streams can automatically stream CloudWatch
|
|
12
|
-
* to Amazon Web Services destinations including
|
|
13
|
-
*
|
|
11
|
+
* <p>Creates or updates a metric stream. Metric streams can automatically stream CloudWatch
|
|
12
|
+
* metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party
|
|
13
|
+
* solutions.</p>
|
|
14
14
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html">
|
|
15
15
|
* Using Metric Streams</a>.</p>
|
|
16
|
-
* <p>To create a metric stream,
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* permission.</p>
|
|
16
|
+
* <p>To create a metric stream, you must be signed in to an account that has the
|
|
17
|
+
* <code>iam:PassRole</code> permission and either the
|
|
18
|
+
* <code>CloudWatchFullAccess</code> policy or the
|
|
19
|
+
* <code>cloudwatch:PutMetricStream</code> permission.</p>
|
|
21
20
|
* <p>When you create or update a metric stream, you choose one of the following:</p>
|
|
22
21
|
* <ul>
|
|
23
22
|
* <li>
|
|
@@ -33,11 +32,11 @@ export interface PutMetricStreamCommandOutput extends PutMetricStreamOutput, __M
|
|
|
33
32
|
* </li>
|
|
34
33
|
* </ul>
|
|
35
34
|
*
|
|
36
|
-
* <p>By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>,
|
|
37
|
-
*
|
|
38
|
-
* <code>StatisticsConfigurations</code> parameter to have
|
|
39
|
-
*
|
|
40
|
-
* additional costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. </p>
|
|
35
|
+
* <p>By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>,
|
|
36
|
+
* <code>SUM</code>, and <code>SAMPLECOUNT</code> statistics for each metric that is
|
|
37
|
+
* streamed. You can use the <code>StatisticsConfigurations</code> parameter to have the
|
|
38
|
+
* metric stream send additional statistics in the stream. Streaming additional statistics
|
|
39
|
+
* incurs additional costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. </p>
|
|
41
40
|
*
|
|
42
41
|
* <p>When you use <code>PutMetricStream</code> to create a new metric stream, the stream
|
|
43
42
|
* is created in the <code>running</code> state. If you use it to update an existing stream,
|
|
@@ -5,8 +5,15 @@ export declare enum ActionsSuppressedBy {
|
|
|
5
5
|
ExtensionPeriod = "ExtensionPeriod",
|
|
6
6
|
WaitPeriod = "WaitPeriod"
|
|
7
7
|
}
|
|
8
|
-
export declare
|
|
9
|
-
|
|
8
|
+
export declare enum AlarmType {
|
|
9
|
+
CompositeAlarm = "CompositeAlarm",
|
|
10
|
+
MetricAlarm = "MetricAlarm"
|
|
11
|
+
}
|
|
12
|
+
export declare enum HistoryItemType {
|
|
13
|
+
Action = "Action",
|
|
14
|
+
ConfigurationUpdate = "ConfigurationUpdate",
|
|
15
|
+
StateUpdate = "StateUpdate"
|
|
16
|
+
}
|
|
10
17
|
/**
|
|
11
18
|
* <p>Represents the history of a specific alarm.</p>
|
|
12
19
|
*/
|
|
@@ -110,7 +117,35 @@ export interface Metric {
|
|
|
110
117
|
*/
|
|
111
118
|
Dimensions?: Dimension[];
|
|
112
119
|
}
|
|
113
|
-
export declare
|
|
120
|
+
export declare enum StandardUnit {
|
|
121
|
+
Bits = "Bits",
|
|
122
|
+
Bits_Second = "Bits/Second",
|
|
123
|
+
Bytes = "Bytes",
|
|
124
|
+
Bytes_Second = "Bytes/Second",
|
|
125
|
+
Count = "Count",
|
|
126
|
+
Count_Second = "Count/Second",
|
|
127
|
+
Gigabits = "Gigabits",
|
|
128
|
+
Gigabits_Second = "Gigabits/Second",
|
|
129
|
+
Gigabytes = "Gigabytes",
|
|
130
|
+
Gigabytes_Second = "Gigabytes/Second",
|
|
131
|
+
Kilobits = "Kilobits",
|
|
132
|
+
Kilobits_Second = "Kilobits/Second",
|
|
133
|
+
Kilobytes = "Kilobytes",
|
|
134
|
+
Kilobytes_Second = "Kilobytes/Second",
|
|
135
|
+
Megabits = "Megabits",
|
|
136
|
+
Megabits_Second = "Megabits/Second",
|
|
137
|
+
Megabytes = "Megabytes",
|
|
138
|
+
Megabytes_Second = "Megabytes/Second",
|
|
139
|
+
Microseconds = "Microseconds",
|
|
140
|
+
Milliseconds = "Milliseconds",
|
|
141
|
+
None = "None",
|
|
142
|
+
Percent = "Percent",
|
|
143
|
+
Seconds = "Seconds",
|
|
144
|
+
Terabits = "Terabits",
|
|
145
|
+
Terabits_Second = "Terabits/Second",
|
|
146
|
+
Terabytes = "Terabytes",
|
|
147
|
+
Terabytes_Second = "Terabytes/Second"
|
|
148
|
+
}
|
|
114
149
|
/**
|
|
115
150
|
* <p>This structure defines the metric to be returned, along with the statistics, period, and units.</p>
|
|
116
151
|
*/
|
|
@@ -165,7 +200,7 @@ export interface MetricStat {
|
|
|
165
200
|
* <code>MetricDataQuery</code> structures in the array. The 20 structures can include
|
|
166
201
|
* as many as 10 structures that contain a <code>MetricStat</code> parameter to retrieve a
|
|
167
202
|
* metric, and as many as 10 structures that contain the <code>Expression</code> parameter
|
|
168
|
-
* to perform a math expression. Of those <code>Expression</code> structures, one must have <code>
|
|
203
|
+
* to perform a math expression. Of those <code>Expression</code> structures, one must have <code>true</code>
|
|
169
204
|
* as the value for <code>ReturnData</code>. The result of this expression is the value the alarm watches.</p>
|
|
170
205
|
*
|
|
171
206
|
* <p>Any expression used in a <code>PutMetricAlarm</code>
|
|
@@ -220,9 +255,9 @@ export interface MetricDataQuery {
|
|
|
220
255
|
* <p>When used in <code>GetMetricData</code>, this option indicates whether to return the
|
|
221
256
|
* timestamps and raw data values of this metric. If you are performing this call just to
|
|
222
257
|
* do math expressions and do not also need the raw data returned, you can specify
|
|
223
|
-
* <code>
|
|
258
|
+
* <code>false</code>. If you omit this, the default of <code>true</code> is
|
|
224
259
|
* used.</p>
|
|
225
|
-
* <p>When used in <code>PutMetricAlarm</code>, specify <code>
|
|
260
|
+
* <p>When used in <code>PutMetricAlarm</code>, specify <code>true</code> for the one expression result to use as the alarm. For all
|
|
226
261
|
* other metrics and expressions in the same <code>PutMetricAlarm</code> operation, specify <code>ReturnData</code> as False.</p>
|
|
227
262
|
*/
|
|
228
263
|
ReturnData?: boolean;
|
|
@@ -235,9 +270,11 @@ export interface MetricDataQuery {
|
|
|
235
270
|
*/
|
|
236
271
|
Period?: number;
|
|
237
272
|
/**
|
|
238
|
-
* <p>The ID of the account where the metrics are located
|
|
239
|
-
* <p>
|
|
240
|
-
*
|
|
273
|
+
* <p>The ID of the account where the metrics are located.</p>
|
|
274
|
+
* <p>If you are performing a <code>GetMetricData</code> operation in a monitoring account, use this to specify
|
|
275
|
+
* which account to retrieve this metric from.</p>
|
|
276
|
+
* <p>If you are performing a <code>PutMetricAlarm</code> operation, use this to specify
|
|
277
|
+
* which account contains the metric that the alarm is watching.</p>
|
|
241
278
|
*/
|
|
242
279
|
AccountId?: string;
|
|
243
280
|
}
|
|
@@ -255,9 +292,9 @@ export interface MetricMathAnomalyDetector {
|
|
|
255
292
|
* One item in <code>MetricDataQueries</code> is the expression
|
|
256
293
|
* that provides the time series
|
|
257
294
|
* that the anomaly detector uses as input.
|
|
258
|
-
* Designate the expression by setting <code>ReturnData</code> to <code>
|
|
295
|
+
* Designate the expression by setting <code>ReturnData</code> to <code>true</code>
|
|
259
296
|
* for this object in the array.
|
|
260
|
-
* For all other expressions and metrics, set <code>ReturnData</code> to <code>
|
|
297
|
+
* For all other expressions and metrics, set <code>ReturnData</code> to <code>false</code>.
|
|
261
298
|
* The designated expression must return
|
|
262
299
|
* a single time series.</p>
|
|
263
300
|
*/
|
|
@@ -285,7 +322,11 @@ export interface SingleMetricAnomalyDetector {
|
|
|
285
322
|
*/
|
|
286
323
|
Stat?: string;
|
|
287
324
|
}
|
|
288
|
-
export declare
|
|
325
|
+
export declare enum AnomalyDetectorStateValue {
|
|
326
|
+
PENDING_TRAINING = "PENDING_TRAINING",
|
|
327
|
+
TRAINED = "TRAINED",
|
|
328
|
+
TRAINED_INSUFFICIENT_DATA = "TRAINED_INSUFFICIENT_DATA"
|
|
329
|
+
}
|
|
289
330
|
/**
|
|
290
331
|
* <p>An anomaly detection model associated with a particular CloudWatch metric, statistic, or metric math expression.
|
|
291
332
|
* You can use the model to display a band of expected, normal values
|
|
@@ -363,8 +404,20 @@ export interface PartialFailure {
|
|
|
363
404
|
*/
|
|
364
405
|
FailureDescription?: string;
|
|
365
406
|
}
|
|
366
|
-
export declare
|
|
367
|
-
|
|
407
|
+
export declare enum ComparisonOperator {
|
|
408
|
+
GreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold",
|
|
409
|
+
GreaterThanThreshold = "GreaterThanThreshold",
|
|
410
|
+
GreaterThanUpperThreshold = "GreaterThanUpperThreshold",
|
|
411
|
+
LessThanLowerOrGreaterThanUpperThreshold = "LessThanLowerOrGreaterThanUpperThreshold",
|
|
412
|
+
LessThanLowerThreshold = "LessThanLowerThreshold",
|
|
413
|
+
LessThanOrEqualToThreshold = "LessThanOrEqualToThreshold",
|
|
414
|
+
LessThanThreshold = "LessThanThreshold"
|
|
415
|
+
}
|
|
416
|
+
export declare enum StateValue {
|
|
417
|
+
ALARM = "ALARM",
|
|
418
|
+
INSUFFICIENT_DATA = "INSUFFICIENT_DATA",
|
|
419
|
+
OK = "OK"
|
|
420
|
+
}
|
|
368
421
|
/**
|
|
369
422
|
* <p>The details about a composite alarm.</p>
|
|
370
423
|
*/
|
|
@@ -965,7 +1018,13 @@ export interface DescribeAlarmsInput {
|
|
|
965
1018
|
*/
|
|
966
1019
|
NextToken?: string;
|
|
967
1020
|
}
|
|
968
|
-
export declare
|
|
1021
|
+
export declare enum Statistic {
|
|
1022
|
+
Average = "Average",
|
|
1023
|
+
Maximum = "Maximum",
|
|
1024
|
+
Minimum = "Minimum",
|
|
1025
|
+
SampleCount = "SampleCount",
|
|
1026
|
+
Sum = "Sum"
|
|
1027
|
+
}
|
|
969
1028
|
/**
|
|
970
1029
|
* <p>The details about a metric alarm.</p>
|
|
971
1030
|
*/
|
|
@@ -1633,6 +1692,7 @@ export interface MessageData {
|
|
|
1633
1692
|
}
|
|
1634
1693
|
export declare enum StatusCode {
|
|
1635
1694
|
COMPLETE = "Complete",
|
|
1695
|
+
FORBIDDEN = "Forbidden",
|
|
1636
1696
|
INTERNAL_ERROR = "InternalError",
|
|
1637
1697
|
PARTIAL_DATA = "PartialData"
|
|
1638
1698
|
}
|
|
@@ -1886,8 +1946,8 @@ export interface GetMetricStreamOutput {
|
|
|
1886
1946
|
*/
|
|
1887
1947
|
ExcludeFilters?: MetricStreamFilter[];
|
|
1888
1948
|
/**
|
|
1889
|
-
* <p>The ARN of the Amazon Kinesis Firehose delivery stream that is used by
|
|
1890
|
-
*
|
|
1949
|
+
* <p>The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric
|
|
1950
|
+
* stream.</p>
|
|
1891
1951
|
*/
|
|
1892
1952
|
FirehoseArn?: string;
|
|
1893
1953
|
/**
|
|
@@ -2137,7 +2197,7 @@ export interface ListMetricsInput {
|
|
|
2137
2197
|
*/
|
|
2138
2198
|
Namespace?: string;
|
|
2139
2199
|
/**
|
|
2140
|
-
* <p>The name of the metric to filter against.
|
|
2200
|
+
* <p>The name of the metric to filter against. Only the metrics with names that match exactly
|
|
2141
2201
|
* will be returned.</p>
|
|
2142
2202
|
*/
|
|
2143
2203
|
MetricName?: string;
|
|
@@ -2161,6 +2221,18 @@ export interface ListMetricsInput {
|
|
|
2161
2221
|
* data as much as 40 minutes more than the specified time interval.</p>
|
|
2162
2222
|
*/
|
|
2163
2223
|
RecentlyActive?: RecentlyActive | string;
|
|
2224
|
+
/**
|
|
2225
|
+
* <p>If you are using this operation in a monitoring account,
|
|
2226
|
+
* specify <code>true</code> to include metrics from source accounts in the returned data.</p>
|
|
2227
|
+
* <p>The default is <code>false</code>.</p>
|
|
2228
|
+
*/
|
|
2229
|
+
IncludeLinkedAccounts?: boolean;
|
|
2230
|
+
/**
|
|
2231
|
+
* <p>When you use this operation in a monitoring account, use this field to return metrics only from one source account.
|
|
2232
|
+
* To do so, specify that source account ID in this field, and also
|
|
2233
|
+
* specify <code>true</code> for <code>IncludeLinkedAccounts</code>.</p>
|
|
2234
|
+
*/
|
|
2235
|
+
OwningAccount?: string;
|
|
2164
2236
|
}
|
|
2165
2237
|
export interface ListMetricsOutput {
|
|
2166
2238
|
/**
|
|
@@ -2171,6 +2243,13 @@ export interface ListMetricsOutput {
|
|
|
2171
2243
|
* <p>The token that marks the start of the next batch of returned results. </p>
|
|
2172
2244
|
*/
|
|
2173
2245
|
NextToken?: string;
|
|
2246
|
+
/**
|
|
2247
|
+
* <p>If you are using this operation in a monitoring account, this array contains the account IDs of the source
|
|
2248
|
+
* accounts where the metrics in the returned data
|
|
2249
|
+
* are from.</p>
|
|
2250
|
+
* <p>This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.</p>
|
|
2251
|
+
*/
|
|
2252
|
+
OwningAccounts?: string[];
|
|
2174
2253
|
}
|
|
2175
2254
|
export interface ListMetricStreamsInput {
|
|
2176
2255
|
/**
|
|
@@ -3043,15 +3122,15 @@ export interface PutMetricStreamInput {
|
|
|
3043
3122
|
*/
|
|
3044
3123
|
ExcludeFilters?: MetricStreamFilter[];
|
|
3045
3124
|
/**
|
|
3046
|
-
* <p>The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream.
|
|
3047
|
-
*
|
|
3048
|
-
*
|
|
3125
|
+
* <p>The ARN of the Amazon Kinesis Data Firehose delivery stream to use for this metric stream.
|
|
3126
|
+
* This Amazon Kinesis Data Firehose delivery stream must already exist and must be in the
|
|
3127
|
+
* same account as the metric stream.</p>
|
|
3049
3128
|
*/
|
|
3050
3129
|
FirehoseArn: string | undefined;
|
|
3051
3130
|
/**
|
|
3052
|
-
* <p>The ARN of an IAM role that this metric stream will use to access
|
|
3053
|
-
*
|
|
3054
|
-
*
|
|
3131
|
+
* <p>The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Data
|
|
3132
|
+
* Firehose resources. This IAM role must already exist and must be in the same account as
|
|
3133
|
+
* the metric stream. This IAM role must include the following permissions:</p>
|
|
3055
3134
|
* <ul>
|
|
3056
3135
|
* <li>
|
|
3057
3136
|
* <p>firehose:PutRecord</p>
|
|
@@ -3087,13 +3166,14 @@ export interface PutMetricStreamInput {
|
|
|
3087
3166
|
* and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can use this parameter to have
|
|
3088
3167
|
* the metric stream also send additional statistics in the stream. This
|
|
3089
3168
|
* array can have up to 100 members.</p>
|
|
3090
|
-
* <p>For each entry in this array, you specify one or more metrics and the list of additional
|
|
3091
|
-
* for those metrics. The additional statistics that you can stream
|
|
3092
|
-
*
|
|
3093
|
-
*
|
|
3094
|
-
*
|
|
3095
|
-
* CloudWatch statistics definitions</a>. If the <code>OutputFormat</code>
|
|
3096
|
-
* <code>opentelemetry0.7</code>, you can stream percentile statistics such as p95,
|
|
3169
|
+
* <p>For each entry in this array, you specify one or more metrics and the list of additional
|
|
3170
|
+
* statistics to stream for those metrics. The additional statistics that you can stream
|
|
3171
|
+
* depend on the stream's <code>OutputFormat</code>. If the <code>OutputFormat</code> is
|
|
3172
|
+
* <code>json</code>, you can stream any additional statistic that is supported by
|
|
3173
|
+
* CloudWatch, listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html">
|
|
3174
|
+
* CloudWatch statistics definitions</a>. If the <code>OutputFormat</code>
|
|
3175
|
+
* is <code>opentelemetry0.7</code>, you can stream percentile statistics such as p95,
|
|
3176
|
+
* p99.9, and so on.</p>
|
|
3097
3177
|
*/
|
|
3098
3178
|
StatisticsConfigurations?: MetricStreamStatisticsConfiguration[];
|
|
3099
3179
|
}
|
|
@@ -5,11 +5,15 @@ export declare enum ActionsSuppressedBy {
|
|
|
5
5
|
ExtensionPeriod = "ExtensionPeriod",
|
|
6
6
|
WaitPeriod = "WaitPeriod",
|
|
7
7
|
}
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export declare enum AlarmType {
|
|
9
|
+
CompositeAlarm = "CompositeAlarm",
|
|
10
|
+
MetricAlarm = "MetricAlarm",
|
|
11
|
+
}
|
|
12
|
+
export declare enum HistoryItemType {
|
|
13
|
+
Action = "Action",
|
|
14
|
+
ConfigurationUpdate = "ConfigurationUpdate",
|
|
15
|
+
StateUpdate = "StateUpdate",
|
|
16
|
+
}
|
|
13
17
|
export interface AlarmHistoryItem {
|
|
14
18
|
AlarmName?: string;
|
|
15
19
|
AlarmType?: AlarmType | string;
|
|
@@ -35,34 +39,35 @@ export interface Metric {
|
|
|
35
39
|
MetricName?: string;
|
|
36
40
|
Dimensions?: Dimension[];
|
|
37
41
|
}
|
|
38
|
-
export declare
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
42
|
+
export declare enum StandardUnit {
|
|
43
|
+
Bits = "Bits",
|
|
44
|
+
Bits_Second = "Bits/Second",
|
|
45
|
+
Bytes = "Bytes",
|
|
46
|
+
Bytes_Second = "Bytes/Second",
|
|
47
|
+
Count = "Count",
|
|
48
|
+
Count_Second = "Count/Second",
|
|
49
|
+
Gigabits = "Gigabits",
|
|
50
|
+
Gigabits_Second = "Gigabits/Second",
|
|
51
|
+
Gigabytes = "Gigabytes",
|
|
52
|
+
Gigabytes_Second = "Gigabytes/Second",
|
|
53
|
+
Kilobits = "Kilobits",
|
|
54
|
+
Kilobits_Second = "Kilobits/Second",
|
|
55
|
+
Kilobytes = "Kilobytes",
|
|
56
|
+
Kilobytes_Second = "Kilobytes/Second",
|
|
57
|
+
Megabits = "Megabits",
|
|
58
|
+
Megabits_Second = "Megabits/Second",
|
|
59
|
+
Megabytes = "Megabytes",
|
|
60
|
+
Megabytes_Second = "Megabytes/Second",
|
|
61
|
+
Microseconds = "Microseconds",
|
|
62
|
+
Milliseconds = "Milliseconds",
|
|
63
|
+
None = "None",
|
|
64
|
+
Percent = "Percent",
|
|
65
|
+
Seconds = "Seconds",
|
|
66
|
+
Terabits = "Terabits",
|
|
67
|
+
Terabits_Second = "Terabits/Second",
|
|
68
|
+
Terabytes = "Terabytes",
|
|
69
|
+
Terabytes_Second = "Terabytes/Second",
|
|
70
|
+
}
|
|
66
71
|
export interface MetricStat {
|
|
67
72
|
Metric: Metric | undefined;
|
|
68
73
|
Period: number | undefined;
|
|
@@ -87,10 +92,11 @@ export interface SingleMetricAnomalyDetector {
|
|
|
87
92
|
Dimensions?: Dimension[];
|
|
88
93
|
Stat?: string;
|
|
89
94
|
}
|
|
90
|
-
export declare
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
export declare enum AnomalyDetectorStateValue {
|
|
96
|
+
PENDING_TRAINING = "PENDING_TRAINING",
|
|
97
|
+
TRAINED = "TRAINED",
|
|
98
|
+
TRAINED_INSUFFICIENT_DATA = "TRAINED_INSUFFICIENT_DATA",
|
|
99
|
+
}
|
|
94
100
|
export interface AnomalyDetector {
|
|
95
101
|
Namespace?: string;
|
|
96
102
|
MetricName?: string;
|
|
@@ -111,15 +117,20 @@ export interface PartialFailure {
|
|
|
111
117
|
FailureCode?: string;
|
|
112
118
|
FailureDescription?: string;
|
|
113
119
|
}
|
|
114
|
-
export declare
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
export declare enum ComparisonOperator {
|
|
121
|
+
GreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold",
|
|
122
|
+
GreaterThanThreshold = "GreaterThanThreshold",
|
|
123
|
+
GreaterThanUpperThreshold = "GreaterThanUpperThreshold",
|
|
124
|
+
LessThanLowerOrGreaterThanUpperThreshold = "LessThanLowerOrGreaterThanUpperThreshold",
|
|
125
|
+
LessThanLowerThreshold = "LessThanLowerThreshold",
|
|
126
|
+
LessThanOrEqualToThreshold = "LessThanOrEqualToThreshold",
|
|
127
|
+
LessThanThreshold = "LessThanThreshold",
|
|
128
|
+
}
|
|
129
|
+
export declare enum StateValue {
|
|
130
|
+
ALARM = "ALARM",
|
|
131
|
+
INSUFFICIENT_DATA = "INSUFFICIENT_DATA",
|
|
132
|
+
OK = "OK",
|
|
133
|
+
}
|
|
123
134
|
export interface CompositeAlarm {
|
|
124
135
|
ActionsEnabled?: boolean;
|
|
125
136
|
AlarmActions?: string[];
|
|
@@ -297,12 +308,13 @@ export interface DescribeAlarmsInput {
|
|
|
297
308
|
MaxRecords?: number;
|
|
298
309
|
NextToken?: string;
|
|
299
310
|
}
|
|
300
|
-
export declare
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
311
|
+
export declare enum Statistic {
|
|
312
|
+
Average = "Average",
|
|
313
|
+
Maximum = "Maximum",
|
|
314
|
+
Minimum = "Minimum",
|
|
315
|
+
SampleCount = "SampleCount",
|
|
316
|
+
Sum = "Sum",
|
|
317
|
+
}
|
|
306
318
|
export interface MetricAlarm {
|
|
307
319
|
AlarmName?: string;
|
|
308
320
|
AlarmArn?: string;
|
|
@@ -468,6 +480,7 @@ export interface MessageData {
|
|
|
468
480
|
}
|
|
469
481
|
export declare enum StatusCode {
|
|
470
482
|
COMPLETE = "Complete",
|
|
483
|
+
FORBIDDEN = "Forbidden",
|
|
471
484
|
INTERNAL_ERROR = "InternalError",
|
|
472
485
|
PARTIAL_DATA = "PartialData",
|
|
473
486
|
}
|
|
@@ -572,10 +585,13 @@ export interface ListMetricsInput {
|
|
|
572
585
|
Dimensions?: DimensionFilter[];
|
|
573
586
|
NextToken?: string;
|
|
574
587
|
RecentlyActive?: RecentlyActive | string;
|
|
588
|
+
IncludeLinkedAccounts?: boolean;
|
|
589
|
+
OwningAccount?: string;
|
|
575
590
|
}
|
|
576
591
|
export interface ListMetricsOutput {
|
|
577
592
|
Metrics?: Metric[];
|
|
578
593
|
NextToken?: string;
|
|
594
|
+
OwningAccounts?: string[];
|
|
579
595
|
}
|
|
580
596
|
export interface ListMetricStreamsInput {
|
|
581
597
|
NextToken?: string;
|
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.218.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.218.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.215.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.218.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.215.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.215.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.215.0",
|