@aws-sdk/client-cloudwatch 3.468.0 → 3.470.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.
@@ -241,6 +241,7 @@ exports.StatusCode = {
241
241
  exports.MetricStreamOutputFormat = {
242
242
  JSON: "json",
243
243
  OPEN_TELEMETRY_0_7: "opentelemetry0.7",
244
+ OPEN_TELEMETRY_1_0: "opentelemetry1.0",
244
245
  };
245
246
  exports.RecentlyActive = {
246
247
  PT3H: "PT3H",
@@ -227,6 +227,7 @@ export const StatusCode = {
227
227
  export const MetricStreamOutputFormat = {
228
228
  JSON: "json",
229
229
  OPEN_TELEMETRY_0_7: "opentelemetry0.7",
230
+ OPEN_TELEMETRY_1_0: "opentelemetry1.0",
230
231
  };
231
232
  export const RecentlyActive = {
232
233
  PT3H: "PT3H",
@@ -59,7 +59,7 @@ export interface GetMetricStreamCommandOutput extends GetMetricStreamOutput, __M
59
59
  * // State: "STRING_VALUE",
60
60
  * // CreationDate: new Date("TIMESTAMP"),
61
61
  * // LastUpdateDate: new Date("TIMESTAMP"),
62
- * // OutputFormat: "json" || "opentelemetry0.7",
62
+ * // OutputFormat: "json" || "opentelemetry0.7" || "opentelemetry1.0",
63
63
  * // StatisticsConfigurations: [ // MetricStreamStatisticsConfigurations
64
64
  * // { // MetricStreamStatisticsConfiguration
65
65
  * // IncludeMetrics: [ // MetricStreamStatisticsIncludeMetrics // required
@@ -46,7 +46,7 @@ export interface ListMetricStreamsCommandOutput extends ListMetricStreamsOutput,
46
46
  * // Name: "STRING_VALUE",
47
47
  * // FirehoseArn: "STRING_VALUE",
48
48
  * // State: "STRING_VALUE",
49
- * // OutputFormat: "json" || "opentelemetry0.7",
49
+ * // OutputFormat: "json" || "opentelemetry0.7" || "opentelemetry1.0",
50
50
  * // },
51
51
  * // ],
52
52
  * // };
@@ -83,7 +83,7 @@ export interface PutMetricStreamCommandOutput extends PutMetricStreamOutput, __M
83
83
  * ],
84
84
  * FirehoseArn: "STRING_VALUE", // required
85
85
  * RoleArn: "STRING_VALUE", // required
86
- * OutputFormat: "json" || "opentelemetry0.7", // required
86
+ * OutputFormat: "json" || "opentelemetry0.7" || "opentelemetry1.0", // required
87
87
  * Tags: [ // TagList
88
88
  * { // Tag
89
89
  * Key: "STRING_VALUE", // required
@@ -2384,6 +2384,7 @@ export interface MetricStreamFilter {
2384
2384
  export declare const MetricStreamOutputFormat: {
2385
2385
  readonly JSON: "json";
2386
2386
  readonly OPEN_TELEMETRY_0_7: "opentelemetry0.7";
2387
+ readonly OPEN_TELEMETRY_1_0: "opentelemetry1.0";
2387
2388
  };
2388
2389
  /**
2389
2390
  * @public
@@ -2429,7 +2430,7 @@ export interface MetricStreamStatisticsConfiguration {
2429
2430
  * @public
2430
2431
  * <p>The list of additional statistics that are to be streamed for the metrics listed
2431
2432
  * in the <code>IncludeMetrics</code> array in this structure. This list can include as many as 20 statistics.</p>
2432
- * <p>If the <code>OutputFormat</code> for the stream is <code>opentelemetry0.7</code>, the only
2433
+ * <p>If the <code>OutputFormat</code> for the stream is <code>opentelemetry1.0</code> or <code>opentelemetry0.7</code>, the only
2433
2434
  * valid values are <code>p<i>??</i>
2434
2435
  * </code> percentile statistics such as <code>p90</code>, <code>p99</code> and so on.</p>
2435
2436
  * <p>If the <code>OutputFormat</code> for the stream is <code>json</code>,
@@ -2499,7 +2500,7 @@ export interface GetMetricStreamOutput {
2499
2500
  /**
2500
2501
  * @public
2501
2502
  * <p>The output format for the stream.
2502
- * Valid values are <code>json</code> and <code>opentelemetry0.7</code>.
2503
+ * Valid values are <code>json</code>, <code>opentelemetry1.0</code>, and <code>opentelemetry0.7</code>.
2503
2504
  * For more information about metric stream output formats,
2504
2505
  * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html">Metric streams output formats</a>.</p>
2505
2506
  */
@@ -2898,7 +2899,7 @@ export interface MetricStreamEntry {
2898
2899
  /**
2899
2900
  * @public
2900
2901
  * <p>The output format of this metric stream. Valid values are
2901
- * <code>json</code>
2902
+ * <code>json</code>, <code>opentelemetry1.0</code>,
2902
2903
  * and <code>opentelemetry0.7</code>.</p>
2903
2904
  */
2904
2905
  OutputFormat?: MetricStreamOutputFormat;
@@ -3736,8 +3737,8 @@ export interface PutMetricAlarmInput {
3736
3737
  * <p>The name for the metric associated with the alarm. For each <code>PutMetricAlarm</code>
3737
3738
  * operation, you must specify either <code>MetricName</code> or a <code>Metrics</code> array.</p>
3738
3739
  * <p>If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the
3739
- * <code>Dimensions</code>, <code>Period</code>,
3740
- * <code>Namespace</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters. Instead, you specify
3740
+ * <code>Namespace</code>, <code>Dimensions</code>, <code>Period</code>,
3741
+ * <code>Unit</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters. Instead, you specify
3741
3742
  * all this information in the <code>Metrics</code> array.</p>
3742
3743
  */
3743
3744
  MetricName?: string;
@@ -3851,7 +3852,9 @@ export interface PutMetricAlarmInput {
3851
3852
  * NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance
3852
3853
  * receives on all network interfaces. You can also specify a unit when you create a custom
3853
3854
  * metric. Units help provide conceptual meaning to your data. Metric data points that
3854
- * specify a unit of measure, such as Percent, are aggregated separately.</p>
3855
+ * specify a unit of measure, such as Percent, are aggregated separately.
3856
+ * If you are creating an alarm based on a metric math expression, you can specify the unit for each
3857
+ * metric (if needed) within the objects in the <code>Metrics</code> array.</p>
3855
3858
  * <p>If you don't specify <code>Unit</code>, CloudWatch retrieves all unit types that have been published for the
3856
3859
  * metric and attempts to evaluate the alarm.
3857
3860
  * Usually, metrics are
@@ -3930,8 +3933,9 @@ export interface PutMetricAlarmInput {
3930
3933
  * <p>Each item in the <code>Metrics</code> array either retrieves a metric or performs a math expression.</p>
3931
3934
  * <p>One item in the <code>Metrics</code> array is the expression that the alarm watches. You designate this expression
3932
3935
  * by setting <code>ReturnData</code> to true for this object in the array. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html">MetricDataQuery</a>.</p>
3933
- * <p>If you use the <code>Metrics</code> parameter, you cannot include the <code>MetricName</code>, <code>Dimensions</code>, <code>Period</code>,
3934
- * <code>Namespace</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters of <code>PutMetricAlarm</code> in the same operation.
3936
+ * <p>If you use the <code>Metrics</code> parameter, you cannot include the
3937
+ * <code>Namespace</code>, <code>MetricName</code>, <code>Dimensions</code>, <code>Period</code>,
3938
+ * <code>Unit</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters of <code>PutMetricAlarm</code> in the same operation.
3935
3939
  * Instead, you retrieve
3936
3940
  * the metrics you are using in your math expression as part of the <code>Metrics</code> array.</p>
3937
3941
  */
@@ -4132,8 +4136,8 @@ export interface PutMetricStreamInput {
4132
4136
  RoleArn: string | undefined;
4133
4137
  /**
4134
4138
  * @public
4135
- * <p>The output format for the stream. Valid values are <code>json</code>
4136
- * and <code>opentelemetry0.7</code>. For more information about metric stream
4139
+ * <p>The output format for the stream. Valid values are <code>json</code>, <code>opentelemetry1.0</code>,
4140
+ * and <code>opentelemetry0.7</code>. For more information about metric stream
4137
4141
  * output formats, see
4138
4142
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html">
4139
4143
  * Metric streams output formats</a>.</p>
@@ -4164,7 +4168,7 @@ export interface PutMetricStreamInput {
4164
4168
  * <code>json</code>, you can stream any additional statistic that is supported by
4165
4169
  * CloudWatch, listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html">
4166
4170
  * CloudWatch statistics definitions</a>. If the <code>OutputFormat</code>
4167
- * is <code>opentelemetry0.7</code>, you can stream percentile statistics such as p95,
4171
+ * is <code>opentelemetry1.0</code> or <code>opentelemetry0.7</code>, you can stream percentile statistics such as p95,
4168
4172
  * p99.9, and so on.</p>
4169
4173
  */
4170
4174
  StatisticsConfigurations?: MetricStreamStatisticsConfiguration[];
@@ -545,6 +545,7 @@ export interface MetricStreamFilter {
545
545
  export declare const MetricStreamOutputFormat: {
546
546
  readonly JSON: "json";
547
547
  readonly OPEN_TELEMETRY_0_7: "opentelemetry0.7";
548
+ readonly OPEN_TELEMETRY_1_0: "opentelemetry1.0";
548
549
  };
549
550
  export type MetricStreamOutputFormat =
550
551
  (typeof MetricStreamOutputFormat)[keyof typeof MetricStreamOutputFormat];
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.468.0",
4
+ "version": "3.470.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",
@@ -20,29 +20,29 @@
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.468.0",
23
+ "@aws-sdk/client-sts": "3.470.0",
24
24
  "@aws-sdk/core": "3.468.0",
25
- "@aws-sdk/credential-provider-node": "3.468.0",
25
+ "@aws-sdk/credential-provider-node": "3.470.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.468.0",
31
- "@aws-sdk/region-config-resolver": "3.468.0",
30
+ "@aws-sdk/middleware-user-agent": "3.470.0",
31
+ "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.468.0",
33
+ "@aws-sdk/util-endpoints": "3.470.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
- "@aws-sdk/util-user-agent-node": "3.468.0",
36
- "@smithy/config-resolver": "^2.0.20",
35
+ "@aws-sdk/util-user-agent-node": "3.470.0",
36
+ "@smithy/config-resolver": "^2.0.21",
37
37
  "@smithy/fetch-http-handler": "^2.3.1",
38
38
  "@smithy/hash-node": "^2.0.17",
39
39
  "@smithy/invalid-dependency": "^2.0.15",
40
40
  "@smithy/middleware-content-length": "^2.0.17",
41
- "@smithy/middleware-endpoint": "^2.2.2",
42
- "@smithy/middleware-retry": "^2.0.23",
41
+ "@smithy/middleware-endpoint": "^2.2.3",
42
+ "@smithy/middleware-retry": "^2.0.24",
43
43
  "@smithy/middleware-serde": "^2.0.15",
44
44
  "@smithy/middleware-stack": "^2.0.9",
45
- "@smithy/node-config-provider": "^2.1.7",
45
+ "@smithy/node-config-provider": "^2.1.8",
46
46
  "@smithy/node-http-handler": "^2.2.1",
47
47
  "@smithy/protocol-http": "^3.0.11",
48
48
  "@smithy/smithy-client": "^2.1.18",
@@ -52,8 +52,8 @@
52
52
  "@smithy/util-body-length-browser": "^2.0.1",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
54
  "@smithy/util-defaults-mode-browser": "^2.0.22",
55
- "@smithy/util-defaults-mode-node": "^2.0.28",
56
- "@smithy/util-endpoints": "^1.0.6",
55
+ "@smithy/util-defaults-mode-node": "^2.0.29",
56
+ "@smithy/util-endpoints": "^1.0.7",
57
57
  "@smithy/util-retry": "^2.0.8",
58
58
  "@smithy/util-utf8": "^2.0.2",
59
59
  "@smithy/util-waiter": "^2.0.15",