@aws-sdk/client-cloudwatch 3.552.0 → 3.554.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/index.js CHANGED
@@ -2392,6 +2392,13 @@ var se_Metric = /* @__PURE__ */ __name((input, context) => {
2392
2392
  }
2393
2393
  return entries;
2394
2394
  }, "se_Metric");
2395
+ var se_MetricCharacteristics = /* @__PURE__ */ __name((input, context) => {
2396
+ const entries = {};
2397
+ if (input[_PS] != null) {
2398
+ entries[_PS] = input[_PS];
2399
+ }
2400
+ return entries;
2401
+ }, "se_MetricCharacteristics");
2395
2402
  var se_MetricData = /* @__PURE__ */ __name((input, context) => {
2396
2403
  const entries = {};
2397
2404
  let counter = 1;
@@ -2706,6 +2713,13 @@ var se_PutAnomalyDetectorInput = /* @__PURE__ */ __name((input, context) => {
2706
2713
  entries[loc] = value;
2707
2714
  });
2708
2715
  }
2716
+ if (input[_MC] != null) {
2717
+ const memberEntries = se_MetricCharacteristics(input[_MC], context);
2718
+ Object.entries(memberEntries).forEach(([key, value]) => {
2719
+ const loc = `MetricCharacteristics.${key}`;
2720
+ entries[loc] = value;
2721
+ });
2722
+ }
2709
2723
  if (input[_SMAD] != null) {
2710
2724
  const memberEntries = se_SingleMetricAnomalyDetector(input[_SMAD], context);
2711
2725
  Object.entries(memberEntries).forEach(([key, value]) => {
@@ -3285,6 +3299,9 @@ var de_AnomalyDetector = /* @__PURE__ */ __name((output, context) => {
3285
3299
  if (output[_SV] != null) {
3286
3300
  contents[_SV] = (0, import_smithy_client.expectString)(output[_SV]);
3287
3301
  }
3302
+ if (output[_MC] != null) {
3303
+ contents[_MC] = de_MetricCharacteristics(output[_MC], context);
3304
+ }
3288
3305
  if (output[_SMAD] != null) {
3289
3306
  contents[_SMAD] = de_SingleMetricAnomalyDetector(output[_SMAD], context);
3290
3307
  }
@@ -4109,6 +4126,13 @@ var de_MetricAlarms = /* @__PURE__ */ __name((output, context) => {
4109
4126
  return de_MetricAlarm(entry, context);
4110
4127
  });
4111
4128
  }, "de_MetricAlarms");
4129
+ var de_MetricCharacteristics = /* @__PURE__ */ __name((output, context) => {
4130
+ const contents = {};
4131
+ if (output[_PS] != null) {
4132
+ contents[_PS] = (0, import_smithy_client.parseBoolean)(output[_PS]);
4133
+ }
4134
+ return contents;
4135
+ }, "de_MetricCharacteristics");
4112
4136
  var de_MetricDataQueries = /* @__PURE__ */ __name((output, context) => {
4113
4137
  return (output || []).filter((e) => e != null).map((entry) => {
4114
4138
  return de_MetricDataQuery(entry, context);
@@ -4591,6 +4615,7 @@ var _LTFR = "ListTagsForResource";
4591
4615
  var _LUD = "LastUpdateDate";
4592
4616
  var _M = "Metrics";
4593
4617
  var _MA = "MetricAlarms";
4618
+ var _MC = "MetricCharacteristics";
4594
4619
  var _MCC = "MaxContributorCount";
4595
4620
  var _MCV = "MaxContributorValue";
4596
4621
  var _MD = "MaxDatapoints";
@@ -4633,6 +4658,7 @@ var _PMD = "PutMetricData";
4633
4658
  var _PMIR = "PutManagedInsightRules";
4634
4659
  var _PMS = "PutMetricStream";
4635
4660
  var _POAN = "ParentsOfAlarmName";
4661
+ var _PS = "PeriodicSpikes";
4636
4662
  var _RA = "RecentlyActive";
4637
4663
  var _RARN = "ResourceARN";
4638
4664
  var _RAo = "RoleArn";
@@ -1772,6 +1772,13 @@ const se_Metric = (input, context) => {
1772
1772
  }
1773
1773
  return entries;
1774
1774
  };
1775
+ const se_MetricCharacteristics = (input, context) => {
1776
+ const entries = {};
1777
+ if (input[_PS] != null) {
1778
+ entries[_PS] = input[_PS];
1779
+ }
1780
+ return entries;
1781
+ };
1775
1782
  const se_MetricData = (input, context) => {
1776
1783
  const entries = {};
1777
1784
  let counter = 1;
@@ -2081,6 +2088,13 @@ const se_PutAnomalyDetectorInput = (input, context) => {
2081
2088
  entries[loc] = value;
2082
2089
  });
2083
2090
  }
2091
+ if (input[_MC] != null) {
2092
+ const memberEntries = se_MetricCharacteristics(input[_MC], context);
2093
+ Object.entries(memberEntries).forEach(([key, value]) => {
2094
+ const loc = `MetricCharacteristics.${key}`;
2095
+ entries[loc] = value;
2096
+ });
2097
+ }
2084
2098
  if (input[_SMAD] != null) {
2085
2099
  const memberEntries = se_SingleMetricAnomalyDetector(input[_SMAD], context);
2086
2100
  Object.entries(memberEntries).forEach(([key, value]) => {
@@ -2652,6 +2666,9 @@ const de_AnomalyDetector = (output, context) => {
2652
2666
  if (output[_SV] != null) {
2653
2667
  contents[_SV] = __expectString(output[_SV]);
2654
2668
  }
2669
+ if (output[_MC] != null) {
2670
+ contents[_MC] = de_MetricCharacteristics(output[_MC], context);
2671
+ }
2655
2672
  if (output[_SMAD] != null) {
2656
2673
  contents[_SMAD] = de_SingleMetricAnomalyDetector(output[_SMAD], context);
2657
2674
  }
@@ -3548,6 +3565,13 @@ const de_MetricAlarms = (output, context) => {
3548
3565
  return de_MetricAlarm(entry, context);
3549
3566
  });
3550
3567
  };
3568
+ const de_MetricCharacteristics = (output, context) => {
3569
+ const contents = {};
3570
+ if (output[_PS] != null) {
3571
+ contents[_PS] = __parseBoolean(output[_PS]);
3572
+ }
3573
+ return contents;
3574
+ };
3551
3575
  const de_MetricDataQueries = (output, context) => {
3552
3576
  return (output || [])
3553
3577
  .filter((e) => e != null)
@@ -4069,6 +4093,7 @@ const _LTFR = "ListTagsForResource";
4069
4093
  const _LUD = "LastUpdateDate";
4070
4094
  const _M = "Metrics";
4071
4095
  const _MA = "MetricAlarms";
4096
+ const _MC = "MetricCharacteristics";
4072
4097
  const _MCC = "MaxContributorCount";
4073
4098
  const _MCV = "MaxContributorValue";
4074
4099
  const _MD = "MaxDatapoints";
@@ -4111,6 +4136,7 @@ const _PMD = "PutMetricData";
4111
4136
  const _PMIR = "PutManagedInsightRules";
4112
4137
  const _PMS = "PutMetricStream";
4113
4138
  const _POAN = "ParentsOfAlarmName";
4139
+ const _PS = "PeriodicSpikes";
4114
4140
  const _RA = "RecentlyActive";
4115
4141
  const _RARN = "ResourceARN";
4116
4142
  const _RAo = "RoleArn";
@@ -78,6 +78,9 @@ declare const DescribeAnomalyDetectorsCommand_base: {
78
78
  * // MetricTimezone: "STRING_VALUE",
79
79
  * // },
80
80
  * // StateValue: "PENDING_TRAINING" || "TRAINED_INSUFFICIENT_DATA" || "TRAINED",
81
+ * // MetricCharacteristics: { // MetricCharacteristics
82
+ * // PeriodicSpikes: true || false,
83
+ * // },
81
84
  * // SingleMetricAnomalyDetector: { // SingleMetricAnomalyDetector
82
85
  * // AccountId: "STRING_VALUE",
83
86
  * // Namespace: "STRING_VALUE",
@@ -57,6 +57,9 @@ declare const PutAnomalyDetectorCommand_base: {
57
57
  * ],
58
58
  * MetricTimezone: "STRING_VALUE",
59
59
  * },
60
+ * MetricCharacteristics: { // MetricCharacteristics
61
+ * PeriodicSpikes: true || false,
62
+ * },
60
63
  * SingleMetricAnomalyDetector: { // SingleMetricAnomalyDetector
61
64
  * AccountId: "STRING_VALUE",
62
65
  * Namespace: "STRING_VALUE",
@@ -143,6 +143,21 @@ export interface Dimension {
143
143
  */
144
144
  Value: string | undefined;
145
145
  }
146
+ /**
147
+ * <p>This object includes parameters that you can use to provide information to
148
+ * CloudWatch to help it build more accurate anomaly detection models.</p>
149
+ * @public
150
+ */
151
+ export interface MetricCharacteristics {
152
+ /**
153
+ * <p>Set this parameter to <code>true</code> if values for this metric consistently include spikes
154
+ * that should not be considered to be anomalies. With this set to <code>true</code>, CloudWatch will expect
155
+ * to see spikes that occurred consistently during the model training period, and won't flag future similar spikes
156
+ * as anomalies.</p>
157
+ * @public
158
+ */
159
+ PeriodicSpikes?: boolean;
160
+ }
146
161
  /**
147
162
  * <p>Represents a specific metric.</p>
148
163
  * @public
@@ -462,11 +477,17 @@ export interface AnomalyDetector {
462
477
  */
463
478
  Configuration?: AnomalyDetectorConfiguration;
464
479
  /**
465
- * <p>The current status of the anomaly detector's training. The possible values are <code>TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA</code>
466
- * </p>
480
+ * <p>The current status of the anomaly detector's training.</p>
467
481
  * @public
468
482
  */
469
483
  StateValue?: AnomalyDetectorStateValue;
484
+ /**
485
+ * <p>This object includes parameters that you can use to provide information about your metric to
486
+ * CloudWatch to help it build more accurate anomaly detection models. Currently, it includes
487
+ * the <code>PeriodicSpikes</code> parameter.</p>
488
+ * @public
489
+ */
490
+ MetricCharacteristics?: MetricCharacteristics;
470
491
  /**
471
492
  * <p>The CloudWatch metric and statistic for this anomaly detector.</p>
472
493
  * @public
@@ -3021,6 +3042,13 @@ export interface PutAnomalyDetectorInput {
3021
3042
  * @public
3022
3043
  */
3023
3044
  Configuration?: AnomalyDetectorConfiguration;
3045
+ /**
3046
+ * <p>Use this object to include parameters to provide information about your metric to
3047
+ * CloudWatch to help it build more accurate anomaly detection models. Currently, it includes
3048
+ * the <code>PeriodicSpikes</code> parameter.</p>
3049
+ * @public
3050
+ */
3051
+ MetricCharacteristics?: MetricCharacteristics;
3024
3052
  /**
3025
3053
  * <p>A single metric anomaly detector to be created.</p>
3026
3054
  * <p>When using <code>SingleMetricAnomalyDetector</code>,
@@ -39,6 +39,9 @@ export interface Dimension {
39
39
  Name: string | undefined;
40
40
  Value: string | undefined;
41
41
  }
42
+ export interface MetricCharacteristics {
43
+ PeriodicSpikes?: boolean;
44
+ }
42
45
  export interface Metric {
43
46
  Namespace?: string;
44
47
  MetricName?: string;
@@ -113,6 +116,7 @@ export interface AnomalyDetector {
113
116
  Stat?: string;
114
117
  Configuration?: AnomalyDetectorConfiguration;
115
118
  StateValue?: AnomalyDetectorStateValue;
119
+ MetricCharacteristics?: MetricCharacteristics;
116
120
  SingleMetricAnomalyDetector?: SingleMetricAnomalyDetector;
117
121
  MetricMathAnomalyDetector?: MetricMathAnomalyDetector;
118
122
  }
@@ -657,6 +661,7 @@ export interface PutAnomalyDetectorInput {
657
661
  Dimensions?: Dimension[];
658
662
  Stat?: string;
659
663
  Configuration?: AnomalyDetectorConfiguration;
664
+ MetricCharacteristics?: MetricCharacteristics;
660
665
  SingleMetricAnomalyDetector?: SingleMetricAnomalyDetector;
661
666
  MetricMathAnomalyDetector?: MetricMathAnomalyDetector;
662
667
  }
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.552.0",
4
+ "version": "3.554.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.552.0",
24
- "@aws-sdk/core": "3.552.0",
25
- "@aws-sdk/credential-provider-node": "3.552.0",
23
+ "@aws-sdk/client-sts": "3.554.0",
24
+ "@aws-sdk/core": "3.554.0",
25
+ "@aws-sdk/credential-provider-node": "3.554.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",