@aws-sdk/client-cloudwatch 3.1022.0 → 3.1024.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/README.md +21 -0
- package/dist-cjs/index.js +47 -0
- package/dist-cjs/schemas/schemas_0.js +73 -8
- package/dist-es/CloudWatch.js +6 -0
- package/dist-es/commands/GetOTelEnrichmentCommand.js +16 -0
- package/dist-es/commands/StartOTelEnrichmentCommand.js +16 -0
- package/dist-es/commands/StopOTelEnrichmentCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +69 -4
- package/dist-types/CloudWatch.d.ts +24 -0
- package/dist-types/CloudWatchClient.d.ts +5 -2
- package/dist-types/commands/DescribeAlarmsCommand.d.ts +8 -0
- package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +8 -0
- package/dist-types/commands/GetOTelEnrichmentCommand.d.ts +75 -0
- package/dist-types/commands/PutAlarmMuteRuleCommand.d.ts +1 -1
- package/dist-types/commands/PutMetricAlarmCommand.d.ts +13 -4
- package/dist-types/commands/StartOTelEnrichmentCommand.d.ts +77 -0
- package/dist-types/commands/StopOTelEnrichmentCommand.d.ts +73 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +150 -10
- package/dist-types/schemas/schemas_0.d.ts +12 -1
- package/dist-types/ts3.4/CloudWatch.d.ts +54 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetOTelEnrichmentCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartOTelEnrichmentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopOTelEnrichmentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -2
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ import { type GetMetricDataCommandInput, type GetMetricDataCommandOutput } from
|
|
|
24
24
|
import { type GetMetricStatisticsCommandInput, type GetMetricStatisticsCommandOutput } from "./commands/GetMetricStatisticsCommand";
|
|
25
25
|
import { type GetMetricStreamCommandInput, type GetMetricStreamCommandOutput } from "./commands/GetMetricStreamCommand";
|
|
26
26
|
import { type GetMetricWidgetImageCommandInput, type GetMetricWidgetImageCommandOutput } from "./commands/GetMetricWidgetImageCommand";
|
|
27
|
+
import { type GetOTelEnrichmentCommandInput, type GetOTelEnrichmentCommandOutput } from "./commands/GetOTelEnrichmentCommand";
|
|
27
28
|
import { type ListAlarmMuteRulesCommandInput, type ListAlarmMuteRulesCommandOutput } from "./commands/ListAlarmMuteRulesCommand";
|
|
28
29
|
import { type ListDashboardsCommandInput, type ListDashboardsCommandOutput } from "./commands/ListDashboardsCommand";
|
|
29
30
|
import { type ListManagedInsightRulesCommandInput, type ListManagedInsightRulesCommandOutput } from "./commands/ListManagedInsightRulesCommand";
|
|
@@ -41,7 +42,9 @@ import { type PutMetricDataCommandInput, type PutMetricDataCommandOutput } from
|
|
|
41
42
|
import { type PutMetricStreamCommandInput, type PutMetricStreamCommandOutput } from "./commands/PutMetricStreamCommand";
|
|
42
43
|
import { type SetAlarmStateCommandInput, type SetAlarmStateCommandOutput } from "./commands/SetAlarmStateCommand";
|
|
43
44
|
import { type StartMetricStreamsCommandInput, type StartMetricStreamsCommandOutput } from "./commands/StartMetricStreamsCommand";
|
|
45
|
+
import { type StartOTelEnrichmentCommandInput, type StartOTelEnrichmentCommandOutput } from "./commands/StartOTelEnrichmentCommand";
|
|
44
46
|
import { type StopMetricStreamsCommandInput, type StopMetricStreamsCommandOutput } from "./commands/StopMetricStreamsCommand";
|
|
47
|
+
import { type StopOTelEnrichmentCommandInput, type StopOTelEnrichmentCommandOutput } from "./commands/StopOTelEnrichmentCommand";
|
|
45
48
|
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
46
49
|
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
47
50
|
export interface CloudWatch {
|
|
@@ -188,6 +191,13 @@ export interface CloudWatch {
|
|
|
188
191
|
getMetricWidgetImage(args: GetMetricWidgetImageCommandInput, options?: __HttpHandlerOptions): Promise<GetMetricWidgetImageCommandOutput>;
|
|
189
192
|
getMetricWidgetImage(args: GetMetricWidgetImageCommandInput, cb: (err: any, data?: GetMetricWidgetImageCommandOutput) => void): void;
|
|
190
193
|
getMetricWidgetImage(args: GetMetricWidgetImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetricWidgetImageCommandOutput) => void): void;
|
|
194
|
+
/**
|
|
195
|
+
* @see {@link GetOTelEnrichmentCommand}
|
|
196
|
+
*/
|
|
197
|
+
getOTelEnrichment(): Promise<GetOTelEnrichmentCommandOutput>;
|
|
198
|
+
getOTelEnrichment(args: GetOTelEnrichmentCommandInput, options?: __HttpHandlerOptions): Promise<GetOTelEnrichmentCommandOutput>;
|
|
199
|
+
getOTelEnrichment(args: GetOTelEnrichmentCommandInput, cb: (err: any, data?: GetOTelEnrichmentCommandOutput) => void): void;
|
|
200
|
+
getOTelEnrichment(args: GetOTelEnrichmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOTelEnrichmentCommandOutput) => void): void;
|
|
191
201
|
/**
|
|
192
202
|
* @see {@link ListAlarmMuteRulesCommand}
|
|
193
203
|
*/
|
|
@@ -295,12 +305,26 @@ export interface CloudWatch {
|
|
|
295
305
|
startMetricStreams(args: StartMetricStreamsCommandInput, options?: __HttpHandlerOptions): Promise<StartMetricStreamsCommandOutput>;
|
|
296
306
|
startMetricStreams(args: StartMetricStreamsCommandInput, cb: (err: any, data?: StartMetricStreamsCommandOutput) => void): void;
|
|
297
307
|
startMetricStreams(args: StartMetricStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMetricStreamsCommandOutput) => void): void;
|
|
308
|
+
/**
|
|
309
|
+
* @see {@link StartOTelEnrichmentCommand}
|
|
310
|
+
*/
|
|
311
|
+
startOTelEnrichment(): Promise<StartOTelEnrichmentCommandOutput>;
|
|
312
|
+
startOTelEnrichment(args: StartOTelEnrichmentCommandInput, options?: __HttpHandlerOptions): Promise<StartOTelEnrichmentCommandOutput>;
|
|
313
|
+
startOTelEnrichment(args: StartOTelEnrichmentCommandInput, cb: (err: any, data?: StartOTelEnrichmentCommandOutput) => void): void;
|
|
314
|
+
startOTelEnrichment(args: StartOTelEnrichmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartOTelEnrichmentCommandOutput) => void): void;
|
|
298
315
|
/**
|
|
299
316
|
* @see {@link StopMetricStreamsCommand}
|
|
300
317
|
*/
|
|
301
318
|
stopMetricStreams(args: StopMetricStreamsCommandInput, options?: __HttpHandlerOptions): Promise<StopMetricStreamsCommandOutput>;
|
|
302
319
|
stopMetricStreams(args: StopMetricStreamsCommandInput, cb: (err: any, data?: StopMetricStreamsCommandOutput) => void): void;
|
|
303
320
|
stopMetricStreams(args: StopMetricStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopMetricStreamsCommandOutput) => void): void;
|
|
321
|
+
/**
|
|
322
|
+
* @see {@link StopOTelEnrichmentCommand}
|
|
323
|
+
*/
|
|
324
|
+
stopOTelEnrichment(): Promise<StopOTelEnrichmentCommandOutput>;
|
|
325
|
+
stopOTelEnrichment(args: StopOTelEnrichmentCommandInput, options?: __HttpHandlerOptions): Promise<StopOTelEnrichmentCommandOutput>;
|
|
326
|
+
stopOTelEnrichment(args: StopOTelEnrichmentCommandInput, cb: (err: any, data?: StopOTelEnrichmentCommandOutput) => void): void;
|
|
327
|
+
stopOTelEnrichment(args: StopOTelEnrichmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopOTelEnrichmentCommandOutput) => void): void;
|
|
304
328
|
/**
|
|
305
329
|
* @see {@link TagResourceCommand}
|
|
306
330
|
*/
|
|
@@ -31,6 +31,7 @@ import type { GetMetricDataCommandInput, GetMetricDataCommandOutput } from "./co
|
|
|
31
31
|
import type { GetMetricStatisticsCommandInput, GetMetricStatisticsCommandOutput } from "./commands/GetMetricStatisticsCommand";
|
|
32
32
|
import type { GetMetricStreamCommandInput, GetMetricStreamCommandOutput } from "./commands/GetMetricStreamCommand";
|
|
33
33
|
import type { GetMetricWidgetImageCommandInput, GetMetricWidgetImageCommandOutput } from "./commands/GetMetricWidgetImageCommand";
|
|
34
|
+
import type { GetOTelEnrichmentCommandInput, GetOTelEnrichmentCommandOutput } from "./commands/GetOTelEnrichmentCommand";
|
|
34
35
|
import type { ListAlarmMuteRulesCommandInput, ListAlarmMuteRulesCommandOutput } from "./commands/ListAlarmMuteRulesCommand";
|
|
35
36
|
import type { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./commands/ListDashboardsCommand";
|
|
36
37
|
import type { ListManagedInsightRulesCommandInput, ListManagedInsightRulesCommandOutput } from "./commands/ListManagedInsightRulesCommand";
|
|
@@ -48,7 +49,9 @@ import type { PutMetricDataCommandInput, PutMetricDataCommandOutput } from "./co
|
|
|
48
49
|
import type { PutMetricStreamCommandInput, PutMetricStreamCommandOutput } from "./commands/PutMetricStreamCommand";
|
|
49
50
|
import type { SetAlarmStateCommandInput, SetAlarmStateCommandOutput } from "./commands/SetAlarmStateCommand";
|
|
50
51
|
import type { StartMetricStreamsCommandInput, StartMetricStreamsCommandOutput } from "./commands/StartMetricStreamsCommand";
|
|
52
|
+
import type { StartOTelEnrichmentCommandInput, StartOTelEnrichmentCommandOutput } from "./commands/StartOTelEnrichmentCommand";
|
|
51
53
|
import type { StopMetricStreamsCommandInput, StopMetricStreamsCommandOutput } from "./commands/StopMetricStreamsCommand";
|
|
54
|
+
import type { StopOTelEnrichmentCommandInput, StopOTelEnrichmentCommandOutput } from "./commands/StopOTelEnrichmentCommand";
|
|
52
55
|
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
53
56
|
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
54
57
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -57,11 +60,11 @@ export { __Client };
|
|
|
57
60
|
/**
|
|
58
61
|
* @public
|
|
59
62
|
*/
|
|
60
|
-
export type ServiceInputTypes = DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StopMetricStreamsCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
63
|
+
export type ServiceInputTypes = DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | GetOTelEnrichmentCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StartOTelEnrichmentCommandInput | StopMetricStreamsCommandInput | StopOTelEnrichmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
61
64
|
/**
|
|
62
65
|
* @public
|
|
63
66
|
*/
|
|
64
|
-
export type ServiceOutputTypes = DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StopMetricStreamsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
67
|
+
export type ServiceOutputTypes = DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | GetOTelEnrichmentCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StartOTelEnrichmentCommandOutput | StopMetricStreamsCommandOutput | StopOTelEnrichmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
65
68
|
/**
|
|
66
69
|
* @public
|
|
67
70
|
*/
|
|
@@ -152,6 +152,14 @@ declare const DescribeAlarmsCommand_base: {
|
|
|
152
152
|
* // ThresholdMetricId: "STRING_VALUE",
|
|
153
153
|
* // EvaluationState: "PARTIAL_DATA" || "EVALUATION_FAILURE" || "EVALUATION_ERROR",
|
|
154
154
|
* // StateTransitionedTimestamp: new Date("TIMESTAMP"),
|
|
155
|
+
* // EvaluationCriteria: { // EvaluationCriteria Union: only one key present
|
|
156
|
+
* // PromQLCriteria: { // AlarmPromQLCriteria
|
|
157
|
+
* // Query: "STRING_VALUE", // required
|
|
158
|
+
* // PendingPeriod: Number("int"),
|
|
159
|
+
* // RecoveryPeriod: Number("int"),
|
|
160
|
+
* // },
|
|
161
|
+
* // },
|
|
162
|
+
* // EvaluationInterval: Number("int"),
|
|
155
163
|
* // },
|
|
156
164
|
* // ],
|
|
157
165
|
* // NextToken: "STRING_VALUE",
|
|
@@ -123,6 +123,14 @@ declare const DescribeAlarmsForMetricCommand_base: {
|
|
|
123
123
|
* // ThresholdMetricId: "STRING_VALUE",
|
|
124
124
|
* // EvaluationState: "PARTIAL_DATA" || "EVALUATION_FAILURE" || "EVALUATION_ERROR",
|
|
125
125
|
* // StateTransitionedTimestamp: new Date("TIMESTAMP"),
|
|
126
|
+
* // EvaluationCriteria: { // EvaluationCriteria Union: only one key present
|
|
127
|
+
* // PromQLCriteria: { // AlarmPromQLCriteria
|
|
128
|
+
* // Query: "STRING_VALUE", // required
|
|
129
|
+
* // PendingPeriod: Number("int"),
|
|
130
|
+
* // RecoveryPeriod: Number("int"),
|
|
131
|
+
* // },
|
|
132
|
+
* // },
|
|
133
|
+
* // EvaluationInterval: Number("int"),
|
|
126
134
|
* // },
|
|
127
135
|
* // ],
|
|
128
136
|
* // };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient";
|
|
4
|
+
import type { GetOTelEnrichmentInput, GetOTelEnrichmentOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetOTelEnrichmentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetOTelEnrichmentCommandInput extends GetOTelEnrichmentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetOTelEnrichmentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetOTelEnrichmentCommandOutput extends GetOTelEnrichmentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetOTelEnrichmentCommand_base: {
|
|
25
|
+
new (input: GetOTelEnrichmentCommandInput): import("@smithy/smithy-client").CommandImpl<GetOTelEnrichmentCommandInput, GetOTelEnrichmentCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetOTelEnrichmentCommandInput]): import("@smithy/smithy-client").CommandImpl<GetOTelEnrichmentCommandInput, GetOTelEnrichmentCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns the current status of vended metric enrichment for the account, including
|
|
31
|
+
* whether CloudWatch vended metrics are enriched with resource ARN and resource tag
|
|
32
|
+
* labels and queryable using PromQL. For the list of supported resources, see
|
|
33
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">Supported AWS infrastructure metrics</a>.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { CloudWatchClient, GetOTelEnrichmentCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
38
|
+
* // const { CloudWatchClient, GetOTelEnrichmentCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
39
|
+
* // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
|
|
40
|
+
* const config = {}; // type is CloudWatchClientConfig
|
|
41
|
+
* const client = new CloudWatchClient(config);
|
|
42
|
+
* const input = {};
|
|
43
|
+
* const command = new GetOTelEnrichmentCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetOTelEnrichmentOutput
|
|
46
|
+
* // Status: "Running" || "Stopped", // required
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param GetOTelEnrichmentCommandInput - {@link GetOTelEnrichmentCommandInput}
|
|
52
|
+
* @returns {@link GetOTelEnrichmentCommandOutput}
|
|
53
|
+
* @see {@link GetOTelEnrichmentCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link GetOTelEnrichmentCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link CloudWatchServiceException}
|
|
58
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export declare class GetOTelEnrichmentCommand extends GetOTelEnrichmentCommand_base {
|
|
64
|
+
/** @internal type navigation helper, not in runtime. */
|
|
65
|
+
protected static __types: {
|
|
66
|
+
api: {
|
|
67
|
+
input: {};
|
|
68
|
+
output: GetOTelEnrichmentOutput;
|
|
69
|
+
};
|
|
70
|
+
sdk: {
|
|
71
|
+
input: GetOTelEnrichmentCommandInput;
|
|
72
|
+
output: GetOTelEnrichmentCommandOutput;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -35,7 +35,7 @@ declare const PutAlarmMuteRuleCommand_base: {
|
|
|
35
35
|
* <b>Permissions</b>
|
|
36
36
|
* </p>
|
|
37
37
|
* <p>To create or update a mute rule, you must have the <code>cloudwatch:PutAlarmMuteRule</code> permission on two types of resources: the alarm mute rule resource itself, and each alarm that the rule targets.</p>
|
|
38
|
-
* <p>For example, If you want to allow a user to create mute rules that target only specific alarms named "WebServerCPUAlarm" and "DatabaseConnectionAlarm", you would create an IAM policy with one statement granting <code>cloudwatch:PutAlarmMuteRule</code> on the alarm mute rule resource (<code>arn:aws:cloudwatch:[REGION]:123456789012:alarm-mute:*</code>), and another statement granting <code>cloudwatch:PutAlarmMuteRule</code> on the targeted alarm resources (<code>arn:aws:cloudwatch:[REGION]:123456789012:alarm:WebServerCPUAlarm</code> and <code>arn:aws:cloudwatch:[REGION]:123456789012:alarm:DatabaseConnectionAlarm</code>).</p>
|
|
38
|
+
* <p>For example, If you want to allow a user to create mute rules that target only specific alarms named "WebServerCPUAlarm" and "DatabaseConnectionAlarm", you would create an IAM policy with one statement granting <code>cloudwatch:PutAlarmMuteRule</code> on the alarm mute rule resource (<code>arn:aws:cloudwatch:[REGION]:123456789012:alarm-mute-rule:*</code>), and another statement granting <code>cloudwatch:PutAlarmMuteRule</code> on the targeted alarm resources (<code>arn:aws:cloudwatch:[REGION]:123456789012:alarm:WebServerCPUAlarm</code> and <code>arn:aws:cloudwatch:[REGION]:123456789012:alarm:DatabaseConnectionAlarm</code>).</p>
|
|
39
39
|
* <p>You can also use IAM policy conditions to allow targeting alarms based on resource tags. For example, you can restrict users to create/update mute rules to only target alarms that have a specific tag key-value pair, such as <code>Team=TeamA</code>.</p>
|
|
40
40
|
* @example
|
|
41
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -28,12 +28,13 @@ declare const PutMetricAlarmCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Creates or updates an alarm and associates it with the specified metric, metric
|
|
31
|
-
* math expression, anomaly detection model,
|
|
31
|
+
* math expression, anomaly detection model, Metrics Insights query, or PromQL query. For more
|
|
32
32
|
* information about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create
|
|
33
33
|
* alarms on Metrics Insights queries</a>.</p>
|
|
34
34
|
* <p>Alarms based on anomaly detection models cannot have Auto Scaling actions.</p>
|
|
35
35
|
* <p>When this operation creates an alarm, the alarm state is immediately set to
|
|
36
|
-
* <code>INSUFFICIENT_DATA</code>.
|
|
36
|
+
* <code>INSUFFICIENT_DATA</code>. For PromQL alarms, the alarm state is instead
|
|
37
|
+
* immediately set to <code>OK</code>. The alarm is then evaluated and its state is set
|
|
37
38
|
* appropriately. Any actions associated with the new state are then executed.</p>
|
|
38
39
|
* <p>When you update an existing alarm, its state is left unchanged, but the update
|
|
39
40
|
* completely overwrites the previous configuration of the alarm.</p>
|
|
@@ -110,10 +111,10 @@ declare const PutMetricAlarmCommand_base: {
|
|
|
110
111
|
* ],
|
|
111
112
|
* Period: Number("int"),
|
|
112
113
|
* Unit: "Seconds" || "Microseconds" || "Milliseconds" || "Bytes" || "Kilobytes" || "Megabytes" || "Gigabytes" || "Terabytes" || "Bits" || "Kilobits" || "Megabits" || "Gigabits" || "Terabits" || "Percent" || "Count" || "Bytes/Second" || "Kilobytes/Second" || "Megabytes/Second" || "Gigabytes/Second" || "Terabytes/Second" || "Bits/Second" || "Kilobits/Second" || "Megabits/Second" || "Gigabits/Second" || "Terabits/Second" || "Count/Second" || "None",
|
|
113
|
-
* EvaluationPeriods: Number("int"),
|
|
114
|
+
* EvaluationPeriods: Number("int"),
|
|
114
115
|
* DatapointsToAlarm: Number("int"),
|
|
115
116
|
* Threshold: Number("double"),
|
|
116
|
-
* ComparisonOperator: "GreaterThanOrEqualToThreshold" || "GreaterThanThreshold" || "LessThanThreshold" || "LessThanOrEqualToThreshold" || "LessThanLowerOrGreaterThanUpperThreshold" || "LessThanLowerThreshold" || "GreaterThanUpperThreshold",
|
|
117
|
+
* ComparisonOperator: "GreaterThanOrEqualToThreshold" || "GreaterThanThreshold" || "LessThanThreshold" || "LessThanOrEqualToThreshold" || "LessThanLowerOrGreaterThanUpperThreshold" || "LessThanLowerThreshold" || "GreaterThanUpperThreshold",
|
|
117
118
|
* TreatMissingData: "STRING_VALUE",
|
|
118
119
|
* EvaluateLowSampleCountPercentile: "STRING_VALUE",
|
|
119
120
|
* Metrics: [ // MetricDataQueries
|
|
@@ -148,6 +149,14 @@ declare const PutMetricAlarmCommand_base: {
|
|
|
148
149
|
* },
|
|
149
150
|
* ],
|
|
150
151
|
* ThresholdMetricId: "STRING_VALUE",
|
|
152
|
+
* EvaluationCriteria: { // EvaluationCriteria Union: only one key present
|
|
153
|
+
* PromQLCriteria: { // AlarmPromQLCriteria
|
|
154
|
+
* Query: "STRING_VALUE", // required
|
|
155
|
+
* PendingPeriod: Number("int"),
|
|
156
|
+
* RecoveryPeriod: Number("int"),
|
|
157
|
+
* },
|
|
158
|
+
* },
|
|
159
|
+
* EvaluationInterval: Number("int"),
|
|
151
160
|
* };
|
|
152
161
|
* const command = new PutMetricAlarmCommand(input);
|
|
153
162
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient";
|
|
4
|
+
import type { StartOTelEnrichmentInput, StartOTelEnrichmentOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartOTelEnrichmentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartOTelEnrichmentCommandInput extends StartOTelEnrichmentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartOTelEnrichmentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartOTelEnrichmentCommandOutput extends StartOTelEnrichmentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StartOTelEnrichmentCommand_base: {
|
|
25
|
+
new (input: StartOTelEnrichmentCommandInput): import("@smithy/smithy-client").CommandImpl<StartOTelEnrichmentCommandInput, StartOTelEnrichmentCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [StartOTelEnrichmentCommandInput]): import("@smithy/smithy-client").CommandImpl<StartOTelEnrichmentCommandInput, StartOTelEnrichmentCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Enables enrichment and PromQL access for CloudWatch vended metrics for
|
|
31
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported AWS resources</a> in the account. Once enabled, metrics that
|
|
32
|
+
* contain a resource identifier dimension (for example, EC2
|
|
33
|
+
* <code>CPUUtilization</code> with an <code>InstanceId</code> dimension) are enriched
|
|
34
|
+
* with resource ARN and resource tag labels and become queryable using
|
|
35
|
+
* PromQL.</p>
|
|
36
|
+
* <p>Before calling this operation, you must enable resource tags on telemetry for
|
|
37
|
+
* your account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/EnableResourceTagsOnTelemetry.html">Enable resource tags on telemetry</a>.</p>
|
|
38
|
+
* @example
|
|
39
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
40
|
+
* ```javascript
|
|
41
|
+
* import { CloudWatchClient, StartOTelEnrichmentCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
42
|
+
* // const { CloudWatchClient, StartOTelEnrichmentCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
43
|
+
* // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
|
|
44
|
+
* const config = {}; // type is CloudWatchClientConfig
|
|
45
|
+
* const client = new CloudWatchClient(config);
|
|
46
|
+
* const input = {};
|
|
47
|
+
* const command = new StartOTelEnrichmentCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // {};
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param StartOTelEnrichmentCommandInput - {@link StartOTelEnrichmentCommandInput}
|
|
54
|
+
* @returns {@link StartOTelEnrichmentCommandOutput}
|
|
55
|
+
* @see {@link StartOTelEnrichmentCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link StartOTelEnrichmentCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link CloudWatchServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare class StartOTelEnrichmentCommand extends StartOTelEnrichmentCommand_base {
|
|
66
|
+
/** @internal type navigation helper, not in runtime. */
|
|
67
|
+
protected static __types: {
|
|
68
|
+
api: {
|
|
69
|
+
input: {};
|
|
70
|
+
output: {};
|
|
71
|
+
};
|
|
72
|
+
sdk: {
|
|
73
|
+
input: StartOTelEnrichmentCommandInput;
|
|
74
|
+
output: StartOTelEnrichmentCommandOutput;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient";
|
|
4
|
+
import type { StopOTelEnrichmentInput, StopOTelEnrichmentOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StopOTelEnrichmentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopOTelEnrichmentCommandInput extends StopOTelEnrichmentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopOTelEnrichmentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopOTelEnrichmentCommandOutput extends StopOTelEnrichmentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StopOTelEnrichmentCommand_base: {
|
|
25
|
+
new (input: StopOTelEnrichmentCommandInput): import("@smithy/smithy-client").CommandImpl<StopOTelEnrichmentCommandInput, StopOTelEnrichmentCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [StopOTelEnrichmentCommandInput]): import("@smithy/smithy-client").CommandImpl<StopOTelEnrichmentCommandInput, StopOTelEnrichmentCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Disables enrichment and PromQL access for CloudWatch vended metrics for
|
|
31
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported AWS resources</a> in the account. After disabling, these metrics
|
|
32
|
+
* are no longer enriched with resource ARN and resource tag labels, and cannot be
|
|
33
|
+
* queried using PromQL.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { CloudWatchClient, StopOTelEnrichmentCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
38
|
+
* // const { CloudWatchClient, StopOTelEnrichmentCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
39
|
+
* // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
|
|
40
|
+
* const config = {}; // type is CloudWatchClientConfig
|
|
41
|
+
* const client = new CloudWatchClient(config);
|
|
42
|
+
* const input = {};
|
|
43
|
+
* const command = new StopOTelEnrichmentCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param StopOTelEnrichmentCommandInput - {@link StopOTelEnrichmentCommandInput}
|
|
50
|
+
* @returns {@link StopOTelEnrichmentCommandOutput}
|
|
51
|
+
* @see {@link StopOTelEnrichmentCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link StopOTelEnrichmentCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link CloudWatchServiceException}
|
|
56
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare class StopOTelEnrichmentCommand extends StopOTelEnrichmentCommand_base {
|
|
62
|
+
/** @internal type navigation helper, not in runtime. */
|
|
63
|
+
protected static __types: {
|
|
64
|
+
api: {
|
|
65
|
+
input: {};
|
|
66
|
+
output: {};
|
|
67
|
+
};
|
|
68
|
+
sdk: {
|
|
69
|
+
input: StopOTelEnrichmentCommandInput;
|
|
70
|
+
output: StopOTelEnrichmentCommandOutput;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -21,6 +21,7 @@ export * from "./GetMetricDataCommand";
|
|
|
21
21
|
export * from "./GetMetricStatisticsCommand";
|
|
22
22
|
export * from "./GetMetricStreamCommand";
|
|
23
23
|
export * from "./GetMetricWidgetImageCommand";
|
|
24
|
+
export * from "./GetOTelEnrichmentCommand";
|
|
24
25
|
export * from "./ListAlarmMuteRulesCommand";
|
|
25
26
|
export * from "./ListDashboardsCommand";
|
|
26
27
|
export * from "./ListManagedInsightRulesCommand";
|
|
@@ -38,6 +39,8 @@ export * from "./PutMetricDataCommand";
|
|
|
38
39
|
export * from "./PutMetricStreamCommand";
|
|
39
40
|
export * from "./SetAlarmStateCommand";
|
|
40
41
|
export * from "./StartMetricStreamsCommand";
|
|
42
|
+
export * from "./StartOTelEnrichmentCommand";
|
|
41
43
|
export * from "./StopMetricStreamsCommand";
|
|
44
|
+
export * from "./StopOTelEnrichmentCommand";
|
|
42
45
|
export * from "./TagResourceCommand";
|
|
43
46
|
export * from "./UntagResourceCommand";
|
|
@@ -210,6 +210,18 @@ export declare const MetricStreamOutputFormat: {
|
|
|
210
210
|
* @public
|
|
211
211
|
*/
|
|
212
212
|
export type MetricStreamOutputFormat = (typeof MetricStreamOutputFormat)[keyof typeof MetricStreamOutputFormat];
|
|
213
|
+
/**
|
|
214
|
+
* @public
|
|
215
|
+
* @enum
|
|
216
|
+
*/
|
|
217
|
+
export declare const OTelEnrichmentStatus: {
|
|
218
|
+
readonly RUNNING: "Running";
|
|
219
|
+
readonly STOPPED: "Stopped";
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
export type OTelEnrichmentStatus = (typeof OTelEnrichmentStatus)[keyof typeof OTelEnrichmentStatus];
|
|
213
225
|
/**
|
|
214
226
|
* @public
|
|
215
227
|
* @enum
|