@aws-sdk/client-cloudwatch 3.1167.0 → 3.1168.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 +28 -0
- package/dist-cjs/index.js +123 -1
- package/dist-es/CloudWatch.js +10 -0
- package/dist-es/commands/DeleteMetricDataQueryDefinitionCommand.js +4 -0
- package/dist-es/commands/GetMetricDataQueryDefinitionCommand.js +4 -0
- package/dist-es/commands/ListMetricDataQueryDefinitionsCommand.js +4 -0
- package/dist-es/commands/PutMetricDataQueryDefinitionCommand.js +4 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/enums.js +5 -0
- package/dist-es/pagination/ListMetricDataQueryDefinitionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +79 -0
- package/dist-types/CloudWatch.d.ts +36 -0
- package/dist-types/CloudWatchClient.d.ts +6 -2
- package/dist-types/commands/DeleteMetricDataQueryDefinitionCommand.d.ts +78 -0
- package/dist-types/commands/GetMetricDataQueryDefinitionCommand.d.ts +87 -0
- package/dist-types/commands/ListMetricDataQueryDefinitionsCommand.d.ts +91 -0
- package/dist-types/commands/PutMetricDataQueryDefinitionCommand.d.ts +118 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/enums.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +264 -1
- package/dist-types/pagination/ListMetricDataQueryDefinitionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +13 -0
- package/dist-types/ts3.4/CloudWatch.d.ts +76 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/DeleteMetricDataQueryDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetMetricDataQueryDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListMetricDataQueryDefinitionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutMetricDataQueryDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -0
- package/dist-types/ts3.4/pagination/ListMetricDataQueryDefinitionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutMetricDataQueryDefinitionInput, PutMetricDataQueryDefinitionOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutMetricDataQueryDefinitionCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutMetricDataQueryDefinitionCommandInput extends PutMetricDataQueryDefinitionInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutMetricDataQueryDefinitionCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutMetricDataQueryDefinitionCommandOutput extends PutMetricDataQueryDefinitionOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutMetricDataQueryDefinitionCommand_base: {
|
|
22
|
+
new (input: PutMetricDataQueryDefinitionCommandInput): import("@smithy/core/client").CommandImpl<PutMetricDataQueryDefinitionCommandInput, PutMetricDataQueryDefinitionCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutMetricDataQueryDefinitionCommandInput): import("@smithy/core/client").CommandImpl<PutMetricDataQueryDefinitionCommandInput, PutMetricDataQueryDefinitionCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates or updates a metric data query definition.</p>
|
|
28
|
+
* <p>A metric data query definition saves a metric query so that you can reuse it later.
|
|
29
|
+
* It includes the query expression, the query language, and a path that names the
|
|
30
|
+
* definition and can organize it into folders. When you save a definition,
|
|
31
|
+
* CloudWatch doesn't validate or run its expression.</p>
|
|
32
|
+
* <p>To create a definition, omit <code>Id</code>. CloudWatch generates the ID and
|
|
33
|
+
* returns it. To update a definition, specify its <code>Id</code>. An update replaces the
|
|
34
|
+
* path, expression, and type, and keeps the creation time.</p>
|
|
35
|
+
* <p>The path must be unique in your account and Region. If another definition already
|
|
36
|
+
* uses the path, the request fails with a <code>ConflictException</code>.</p>
|
|
37
|
+
* <p>You can have up to 1,000 metric data query definitions in each Region of your
|
|
38
|
+
* account. A request that would create more fails with a
|
|
39
|
+
* <code>LimitExceededException</code>.</p>
|
|
40
|
+
* <p>
|
|
41
|
+
* <b>Permissions</b>
|
|
42
|
+
* </p>
|
|
43
|
+
* <p>To create or update a definition, you need the
|
|
44
|
+
* <code>cloudwatch:PutMetricDataQueryDefinition</code> permission on the metric data
|
|
45
|
+
* query definition resource. The resource ARN has the format
|
|
46
|
+
* <code>arn:aws:cloudwatch:Region:account-id:metric-query-definition/Id</code>.</p>
|
|
47
|
+
* <p>To add tags when you create a definition, you also need the
|
|
48
|
+
* <code>cloudwatch:TagResource</code> permission. You can use the
|
|
49
|
+
* <code>aws:RequestTag/$\{TagKey\}</code> and <code>aws:TagKeys</code> condition keys
|
|
50
|
+
* to control which tags can be added.</p>
|
|
51
|
+
* @example
|
|
52
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
53
|
+
* ```javascript
|
|
54
|
+
* import { CloudWatchClient, PutMetricDataQueryDefinitionCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
55
|
+
* // const { CloudWatchClient, PutMetricDataQueryDefinitionCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
56
|
+
* // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
|
|
57
|
+
* const config = {}; // type is CloudWatchClientConfig
|
|
58
|
+
* const client = new CloudWatchClient(config);
|
|
59
|
+
* const input = { // PutMetricDataQueryDefinitionInput
|
|
60
|
+
* Id: "STRING_VALUE",
|
|
61
|
+
* Path: "STRING_VALUE", // required
|
|
62
|
+
* Expression: "STRING_VALUE", // required
|
|
63
|
+
* Type: "PROMQL" || "SQL" || "METRIC_MATH", // required
|
|
64
|
+
* Tags: [ // TagList
|
|
65
|
+
* { // Tag
|
|
66
|
+
* Key: "STRING_VALUE", // required
|
|
67
|
+
* Value: "STRING_VALUE", // required
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* };
|
|
71
|
+
* const command = new PutMetricDataQueryDefinitionCommand(input);
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* // { // PutMetricDataQueryDefinitionOutput
|
|
74
|
+
* // Id: "STRING_VALUE", // required
|
|
75
|
+
* // Arn: "STRING_VALUE", // required
|
|
76
|
+
* // Path: "STRING_VALUE", // required
|
|
77
|
+
* // Expression: "STRING_VALUE", // required
|
|
78
|
+
* // Type: "PROMQL" || "SQL" || "METRIC_MATH", // required
|
|
79
|
+
* // CreatedAt: new Date("TIMESTAMP"), // required
|
|
80
|
+
* // UpdatedAt: new Date("TIMESTAMP"), // required
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param PutMetricDataQueryDefinitionCommandInput - {@link PutMetricDataQueryDefinitionCommandInput}
|
|
86
|
+
* @returns {@link PutMetricDataQueryDefinitionCommandOutput}
|
|
87
|
+
* @see {@link PutMetricDataQueryDefinitionCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link PutMetricDataQueryDefinitionCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ConflictException} (client fault)
|
|
92
|
+
* <p>This operation attempted to create a resource that already exists.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
95
|
+
* <p>The operation exceeded one or more limits.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
98
|
+
* <p>The named resource does not exist.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link CloudWatchServiceException}
|
|
101
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
102
|
+
*
|
|
103
|
+
*
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export declare class PutMetricDataQueryDefinitionCommand extends PutMetricDataQueryDefinitionCommand_base {
|
|
107
|
+
/** @internal type navigation helper, not in runtime. */
|
|
108
|
+
protected static __types: {
|
|
109
|
+
api: {
|
|
110
|
+
input: PutMetricDataQueryDefinitionInput;
|
|
111
|
+
output: PutMetricDataQueryDefinitionOutput;
|
|
112
|
+
};
|
|
113
|
+
sdk: {
|
|
114
|
+
input: PutMetricDataQueryDefinitionCommandInput;
|
|
115
|
+
output: PutMetricDataQueryDefinitionCommandOutput;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./DeleteAlarmsCommand";
|
|
|
5
5
|
export * from "./DeleteAnomalyDetectorCommand";
|
|
6
6
|
export * from "./DeleteDashboardsCommand";
|
|
7
7
|
export * from "./DeleteInsightRulesCommand";
|
|
8
|
+
export * from "./DeleteMetricDataQueryDefinitionCommand";
|
|
8
9
|
export * from "./DeleteMetricStreamCommand";
|
|
9
10
|
export * from "./DeleteResourceMetricsConfigurationCommand";
|
|
10
11
|
export * from "./DescribeAlarmContributorsCommand";
|
|
@@ -23,6 +24,7 @@ export * from "./GetDashboardCommand";
|
|
|
23
24
|
export * from "./GetDatasetCommand";
|
|
24
25
|
export * from "./GetInsightRuleReportCommand";
|
|
25
26
|
export * from "./GetMetricDataCommand";
|
|
27
|
+
export * from "./GetMetricDataQueryDefinitionCommand";
|
|
26
28
|
export * from "./GetMetricStatisticsCommand";
|
|
27
29
|
export * from "./GetMetricStreamCommand";
|
|
28
30
|
export * from "./GetMetricWidgetImageCommand";
|
|
@@ -31,6 +33,7 @@ export * from "./GetResourceMetricsConfigurationCommand";
|
|
|
31
33
|
export * from "./ListAlarmMuteRulesCommand";
|
|
32
34
|
export * from "./ListDashboardsCommand";
|
|
33
35
|
export * from "./ListManagedInsightRulesCommand";
|
|
36
|
+
export * from "./ListMetricDataQueryDefinitionsCommand";
|
|
34
37
|
export * from "./ListMetricStreamsCommand";
|
|
35
38
|
export * from "./ListMetricsCommand";
|
|
36
39
|
export * from "./ListTagsForResourceCommand";
|
|
@@ -43,6 +46,7 @@ export * from "./PutLogAlarmCommand";
|
|
|
43
46
|
export * from "./PutManagedInsightRulesCommand";
|
|
44
47
|
export * from "./PutMetricAlarmCommand";
|
|
45
48
|
export * from "./PutMetricDataCommand";
|
|
49
|
+
export * from "./PutMetricDataQueryDefinitionCommand";
|
|
46
50
|
export * from "./PutMetricStreamCommand";
|
|
47
51
|
export * from "./SetAlarmStateCommand";
|
|
48
52
|
export * from "./StartMetricStreamsCommand";
|
|
@@ -224,6 +224,19 @@ export declare const StatusCode: {
|
|
|
224
224
|
* @public
|
|
225
225
|
*/
|
|
226
226
|
export type StatusCode = (typeof StatusCode)[keyof typeof StatusCode];
|
|
227
|
+
/**
|
|
228
|
+
* @public
|
|
229
|
+
* @enum
|
|
230
|
+
*/
|
|
231
|
+
export declare const QueryType: {
|
|
232
|
+
readonly METRIC_MATH: "METRIC_MATH";
|
|
233
|
+
readonly PROMQL: "PROMQL";
|
|
234
|
+
readonly SQL: "SQL";
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* @public
|
|
238
|
+
*/
|
|
239
|
+
export type QueryType = (typeof QueryType)[keyof typeof QueryType];
|
|
227
240
|
/**
|
|
228
241
|
* @public
|
|
229
242
|
* @enum
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionsSuppressedBy, AlarmMuteRuleStatus, AlarmType, AnomalyDetectorAdaptationSpeed, AnomalyDetectorOutlierFilteringStrength, AnomalyDetectorStateValue, AnomalyDetectorType, ComparisonOperator, EvaluationState, HistoryItemType, MetricStreamOutputFormat, OTelEnrichmentStatus, RecentlyActive, ScanBy, StandardUnit, StateValue, Statistic, StatusCode } from "./enums";
|
|
1
|
+
import type { ActionsSuppressedBy, AlarmMuteRuleStatus, AlarmType, AnomalyDetectorAdaptationSpeed, AnomalyDetectorOutlierFilteringStrength, AnomalyDetectorStateValue, AnomalyDetectorType, ComparisonOperator, EvaluationState, HistoryItemType, MetricStreamOutputFormat, OTelEnrichmentStatus, QueryType, RecentlyActive, ScanBy, StandardUnit, StateValue, Statistic, StatusCode } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* <p>Includes the alarm's tags in the notifications that the alarm sends to Amazon SNS
|
|
4
4
|
* topics and Lambda functions. The tags are also included in the alarm's
|
|
@@ -1187,6 +1187,21 @@ export interface DeleteInsightRulesOutput {
|
|
|
1187
1187
|
*/
|
|
1188
1188
|
Failures?: PartialFailure[] | undefined;
|
|
1189
1189
|
}
|
|
1190
|
+
/**
|
|
1191
|
+
* @public
|
|
1192
|
+
*/
|
|
1193
|
+
export interface DeleteMetricDataQueryDefinitionInput {
|
|
1194
|
+
/**
|
|
1195
|
+
* <p>The ID of the metric data query definition to delete.</p>
|
|
1196
|
+
* @public
|
|
1197
|
+
*/
|
|
1198
|
+
Id: string | undefined;
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* @public
|
|
1202
|
+
*/
|
|
1203
|
+
export interface DeleteMetricDataQueryDefinitionOutput {
|
|
1204
|
+
}
|
|
1190
1205
|
/**
|
|
1191
1206
|
* @public
|
|
1192
1207
|
*/
|
|
@@ -3257,6 +3272,71 @@ export interface GetMetricDataOutput {
|
|
|
3257
3272
|
*/
|
|
3258
3273
|
Messages?: MessageData[] | undefined;
|
|
3259
3274
|
}
|
|
3275
|
+
/**
|
|
3276
|
+
* @public
|
|
3277
|
+
*/
|
|
3278
|
+
export interface GetMetricDataQueryDefinitionInput {
|
|
3279
|
+
/**
|
|
3280
|
+
* <p>The ID of the metric data query definition to retrieve.</p>
|
|
3281
|
+
* @public
|
|
3282
|
+
*/
|
|
3283
|
+
Id: string | undefined;
|
|
3284
|
+
}
|
|
3285
|
+
/**
|
|
3286
|
+
* @public
|
|
3287
|
+
*/
|
|
3288
|
+
export interface GetMetricDataQueryDefinitionOutput {
|
|
3289
|
+
/**
|
|
3290
|
+
* <p>The ID of the metric data query definition.</p>
|
|
3291
|
+
* @public
|
|
3292
|
+
*/
|
|
3293
|
+
Id: string | undefined;
|
|
3294
|
+
/**
|
|
3295
|
+
* <p>The Amazon Resource Name (ARN) of the metric data query definition.</p>
|
|
3296
|
+
* @public
|
|
3297
|
+
*/
|
|
3298
|
+
Arn: string | undefined;
|
|
3299
|
+
/**
|
|
3300
|
+
* <p>The path of the metric data query definition.</p>
|
|
3301
|
+
* @public
|
|
3302
|
+
*/
|
|
3303
|
+
Path: string | undefined;
|
|
3304
|
+
/**
|
|
3305
|
+
* <p>The query expression.</p>
|
|
3306
|
+
* @public
|
|
3307
|
+
*/
|
|
3308
|
+
Expression: string | undefined;
|
|
3309
|
+
/**
|
|
3310
|
+
* <p>The language of the expression. Valid values are the following:</p>
|
|
3311
|
+
* <ul>
|
|
3312
|
+
* <li>
|
|
3313
|
+
* <p>
|
|
3314
|
+
* <code>PROMQL</code> – A PromQL query.</p>
|
|
3315
|
+
* </li>
|
|
3316
|
+
* <li>
|
|
3317
|
+
* <p>
|
|
3318
|
+
* <code>SQL</code> – A CloudWatch Metrics Insights query.</p>
|
|
3319
|
+
* </li>
|
|
3320
|
+
* <li>
|
|
3321
|
+
* <p>
|
|
3322
|
+
* <code>METRIC_MATH</code> – A metric math expression.</p>
|
|
3323
|
+
* </li>
|
|
3324
|
+
* </ul>
|
|
3325
|
+
* @public
|
|
3326
|
+
*/
|
|
3327
|
+
Type: QueryType | undefined;
|
|
3328
|
+
/**
|
|
3329
|
+
* <p>The date and time when you created the metric data query definition.</p>
|
|
3330
|
+
* @public
|
|
3331
|
+
*/
|
|
3332
|
+
CreatedAt: Date | undefined;
|
|
3333
|
+
/**
|
|
3334
|
+
* <p>The date and time when you last updated the metric data query
|
|
3335
|
+
* definition.</p>
|
|
3336
|
+
* @public
|
|
3337
|
+
*/
|
|
3338
|
+
UpdatedAt: Date | undefined;
|
|
3339
|
+
}
|
|
3260
3340
|
/**
|
|
3261
3341
|
* @public
|
|
3262
3342
|
*/
|
|
@@ -3882,6 +3962,81 @@ export interface ListManagedInsightRulesOutput {
|
|
|
3882
3962
|
*/
|
|
3883
3963
|
NextToken?: string | undefined;
|
|
3884
3964
|
}
|
|
3965
|
+
/**
|
|
3966
|
+
* @public
|
|
3967
|
+
*/
|
|
3968
|
+
export interface ListMetricDataQueryDefinitionsInput {
|
|
3969
|
+
/**
|
|
3970
|
+
* <p>The maximum number of metric data query definitions to return in one call. The
|
|
3971
|
+
* default is 100.</p>
|
|
3972
|
+
* @public
|
|
3973
|
+
*/
|
|
3974
|
+
MaxResults?: number | undefined;
|
|
3975
|
+
/**
|
|
3976
|
+
* <p>The token returned by a previous call to indicate where to continue retrieving
|
|
3977
|
+
* results.</p>
|
|
3978
|
+
* @public
|
|
3979
|
+
*/
|
|
3980
|
+
NextToken?: string | undefined;
|
|
3981
|
+
}
|
|
3982
|
+
/**
|
|
3983
|
+
* <p>Summary information about a metric data query definition. To get the expression,
|
|
3984
|
+
* call <code>GetMetricDataQueryDefinition</code>.</p>
|
|
3985
|
+
* @public
|
|
3986
|
+
*/
|
|
3987
|
+
export interface MetricDataQueryDefinitionSummary {
|
|
3988
|
+
/**
|
|
3989
|
+
* <p>The ID of the metric data query definition.</p>
|
|
3990
|
+
* @public
|
|
3991
|
+
*/
|
|
3992
|
+
Id: string | undefined;
|
|
3993
|
+
/**
|
|
3994
|
+
* <p>The path of the metric data query definition.</p>
|
|
3995
|
+
* @public
|
|
3996
|
+
*/
|
|
3997
|
+
Path: string | undefined;
|
|
3998
|
+
/**
|
|
3999
|
+
* <p>The language of the expression. Valid values are the following:</p>
|
|
4000
|
+
* <ul>
|
|
4001
|
+
* <li>
|
|
4002
|
+
* <p>
|
|
4003
|
+
* <code>PROMQL</code> – A PromQL query.</p>
|
|
4004
|
+
* </li>
|
|
4005
|
+
* <li>
|
|
4006
|
+
* <p>
|
|
4007
|
+
* <code>SQL</code> – A CloudWatch Metrics Insights query.</p>
|
|
4008
|
+
* </li>
|
|
4009
|
+
* <li>
|
|
4010
|
+
* <p>
|
|
4011
|
+
* <code>METRIC_MATH</code> – A metric math expression.</p>
|
|
4012
|
+
* </li>
|
|
4013
|
+
* </ul>
|
|
4014
|
+
* @public
|
|
4015
|
+
*/
|
|
4016
|
+
Type: QueryType | undefined;
|
|
4017
|
+
/**
|
|
4018
|
+
* <p>The date and time when you last updated the metric data query
|
|
4019
|
+
* definition.</p>
|
|
4020
|
+
* @public
|
|
4021
|
+
*/
|
|
4022
|
+
UpdatedAt?: Date | undefined;
|
|
4023
|
+
}
|
|
4024
|
+
/**
|
|
4025
|
+
* @public
|
|
4026
|
+
*/
|
|
4027
|
+
export interface ListMetricDataQueryDefinitionsOutput {
|
|
4028
|
+
/**
|
|
4029
|
+
* <p>A list of metric data query definition summaries.</p>
|
|
4030
|
+
* @public
|
|
4031
|
+
*/
|
|
4032
|
+
Items: MetricDataQueryDefinitionSummary[] | undefined;
|
|
4033
|
+
/**
|
|
4034
|
+
* <p>The token to use when requesting the next set of results. If this field is absent,
|
|
4035
|
+
* there are no more results to retrieve.</p>
|
|
4036
|
+
* @public
|
|
4037
|
+
*/
|
|
4038
|
+
NextToken?: string | undefined;
|
|
4039
|
+
}
|
|
3885
4040
|
/**
|
|
3886
4041
|
* @public
|
|
3887
4042
|
*/
|
|
@@ -5651,6 +5806,114 @@ export interface PutMetricDataInput {
|
|
|
5651
5806
|
*/
|
|
5652
5807
|
StrictEntityValidation?: boolean | undefined;
|
|
5653
5808
|
}
|
|
5809
|
+
/**
|
|
5810
|
+
* @public
|
|
5811
|
+
*/
|
|
5812
|
+
export interface PutMetricDataQueryDefinitionInput {
|
|
5813
|
+
/**
|
|
5814
|
+
* <p>The ID of the metric data query definition to update. Omit this parameter to
|
|
5815
|
+
* create a definition. CloudWatch then generates the ID and returns it in the
|
|
5816
|
+
* response.</p>
|
|
5817
|
+
* @public
|
|
5818
|
+
*/
|
|
5819
|
+
Id?: string | undefined;
|
|
5820
|
+
/**
|
|
5821
|
+
* <p>The name of the metric data query definition. Use slashes (<code>/</code>) to
|
|
5822
|
+
* organize definitions into folders, for example <code>team/web/latency</code>. The path
|
|
5823
|
+
* must meet the following requirements:</p>
|
|
5824
|
+
* <ul>
|
|
5825
|
+
* <li>
|
|
5826
|
+
* <p>It must be unique in your account and Region.</p>
|
|
5827
|
+
* </li>
|
|
5828
|
+
* <li>
|
|
5829
|
+
* <p>It can't start or end with a slash.</p>
|
|
5830
|
+
* </li>
|
|
5831
|
+
* <li>
|
|
5832
|
+
* <p>It can't contain an empty folder name (<code>//</code>).</p>
|
|
5833
|
+
* </li>
|
|
5834
|
+
* <li>
|
|
5835
|
+
* <p>It can be at most 1,015 bytes when encoded as UTF-8.</p>
|
|
5836
|
+
* </li>
|
|
5837
|
+
* </ul>
|
|
5838
|
+
* @public
|
|
5839
|
+
*/
|
|
5840
|
+
Path: string | undefined;
|
|
5841
|
+
/**
|
|
5842
|
+
* <p>The query expression, in the language that <code>Type</code> specifies.
|
|
5843
|
+
* CloudWatch doesn't validate or run the expression when you save it.</p>
|
|
5844
|
+
* @public
|
|
5845
|
+
*/
|
|
5846
|
+
Expression: string | undefined;
|
|
5847
|
+
/**
|
|
5848
|
+
* <p>The language of the expression. Valid values are the following:</p>
|
|
5849
|
+
* <ul>
|
|
5850
|
+
* <li>
|
|
5851
|
+
* <p>
|
|
5852
|
+
* <code>PROMQL</code> – A PromQL query.</p>
|
|
5853
|
+
* </li>
|
|
5854
|
+
* <li>
|
|
5855
|
+
* <p>
|
|
5856
|
+
* <code>SQL</code> – A CloudWatch Metrics Insights query.</p>
|
|
5857
|
+
* </li>
|
|
5858
|
+
* <li>
|
|
5859
|
+
* <p>
|
|
5860
|
+
* <code>METRIC_MATH</code> – A metric math expression.</p>
|
|
5861
|
+
* </li>
|
|
5862
|
+
* </ul>
|
|
5863
|
+
* @public
|
|
5864
|
+
*/
|
|
5865
|
+
Type: QueryType | undefined;
|
|
5866
|
+
/**
|
|
5867
|
+
* <p>A list of key-value pairs to associate with the metric data query definition. You
|
|
5868
|
+
* can use tags to categorize definitions and to control access to them. Tags are applied
|
|
5869
|
+
* only when the request creates a definition, that is, when you omit <code>Id</code>. To
|
|
5870
|
+
* change the tags of an existing definition, use <code>TagResource</code> and
|
|
5871
|
+
* <code>UntagResource</code>.</p>
|
|
5872
|
+
* @public
|
|
5873
|
+
*/
|
|
5874
|
+
Tags?: Tag[] | undefined;
|
|
5875
|
+
}
|
|
5876
|
+
/**
|
|
5877
|
+
* @public
|
|
5878
|
+
*/
|
|
5879
|
+
export interface PutMetricDataQueryDefinitionOutput {
|
|
5880
|
+
/**
|
|
5881
|
+
* <p>The ID of the metric data query definition.</p>
|
|
5882
|
+
* @public
|
|
5883
|
+
*/
|
|
5884
|
+
Id: string | undefined;
|
|
5885
|
+
/**
|
|
5886
|
+
* <p>The Amazon Resource Name (ARN) of the metric data query definition.</p>
|
|
5887
|
+
* @public
|
|
5888
|
+
*/
|
|
5889
|
+
Arn: string | undefined;
|
|
5890
|
+
/**
|
|
5891
|
+
* <p>The path of the metric data query definition.</p>
|
|
5892
|
+
* @public
|
|
5893
|
+
*/
|
|
5894
|
+
Path: string | undefined;
|
|
5895
|
+
/**
|
|
5896
|
+
* <p>The query expression.</p>
|
|
5897
|
+
* @public
|
|
5898
|
+
*/
|
|
5899
|
+
Expression: string | undefined;
|
|
5900
|
+
/**
|
|
5901
|
+
* <p>The language of the expression.</p>
|
|
5902
|
+
* @public
|
|
5903
|
+
*/
|
|
5904
|
+
Type: QueryType | undefined;
|
|
5905
|
+
/**
|
|
5906
|
+
* <p>The date and time when you created the metric data query definition.</p>
|
|
5907
|
+
* @public
|
|
5908
|
+
*/
|
|
5909
|
+
CreatedAt: Date | undefined;
|
|
5910
|
+
/**
|
|
5911
|
+
* <p>The date and time when you last updated the metric data query
|
|
5912
|
+
* definition.</p>
|
|
5913
|
+
* @public
|
|
5914
|
+
*/
|
|
5915
|
+
UpdatedAt: Date | undefined;
|
|
5916
|
+
}
|
|
5654
5917
|
/**
|
|
5655
5918
|
* @public
|
|
5656
5919
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListMetricDataQueryDefinitionsCommandInput, ListMetricDataQueryDefinitionsCommandOutput } from "../commands/ListMetricDataQueryDefinitionsCommand";
|
|
3
|
+
import type { CloudWatchPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListMetricDataQueryDefinitions: (config: CloudWatchPaginationConfiguration, input: ListMetricDataQueryDefinitionsCommandInput, ...rest: any[]) => Paginator<ListMetricDataQueryDefinitionsCommandOutput>;
|
|
@@ -7,5 +7,6 @@ export * from "./GetMetricDataPaginator";
|
|
|
7
7
|
export * from "./ListAlarmMuteRulesPaginator";
|
|
8
8
|
export * from "./ListDashboardsPaginator";
|
|
9
9
|
export * from "./ListManagedInsightRulesPaginator";
|
|
10
|
+
export * from "./ListMetricDataQueryDefinitionsPaginator";
|
|
10
11
|
export * from "./ListMetricsPaginator";
|
|
11
12
|
export * from "./ListMetricStreamsPaginator";
|
|
@@ -50,6 +50,8 @@ export declare var DeleteDashboardsInput$: StaticStructureSchema;
|
|
|
50
50
|
export declare var DeleteDashboardsOutput$: StaticStructureSchema;
|
|
51
51
|
export declare var DeleteInsightRulesInput$: StaticStructureSchema;
|
|
52
52
|
export declare var DeleteInsightRulesOutput$: StaticStructureSchema;
|
|
53
|
+
export declare var DeleteMetricDataQueryDefinitionInput$: StaticStructureSchema;
|
|
54
|
+
export declare var DeleteMetricDataQueryDefinitionOutput$: StaticStructureSchema;
|
|
53
55
|
export declare var DeleteMetricStreamInput$: StaticStructureSchema;
|
|
54
56
|
export declare var DeleteMetricStreamOutput$: StaticStructureSchema;
|
|
55
57
|
export declare var DeleteResourceMetricsConfigurationInput$: StaticStructureSchema;
|
|
@@ -88,6 +90,8 @@ export declare var GetInsightRuleReportInput$: StaticStructureSchema;
|
|
|
88
90
|
export declare var GetInsightRuleReportOutput$: StaticStructureSchema;
|
|
89
91
|
export declare var GetMetricDataInput$: StaticStructureSchema;
|
|
90
92
|
export declare var GetMetricDataOutput$: StaticStructureSchema;
|
|
93
|
+
export declare var GetMetricDataQueryDefinitionInput$: StaticStructureSchema;
|
|
94
|
+
export declare var GetMetricDataQueryDefinitionOutput$: StaticStructureSchema;
|
|
91
95
|
export declare var GetMetricStatisticsInput$: StaticStructureSchema;
|
|
92
96
|
export declare var GetMetricStatisticsOutput$: StaticStructureSchema;
|
|
93
97
|
export declare var GetMetricStreamInput$: StaticStructureSchema;
|
|
@@ -109,6 +113,8 @@ export declare var ListDashboardsInput$: StaticStructureSchema;
|
|
|
109
113
|
export declare var ListDashboardsOutput$: StaticStructureSchema;
|
|
110
114
|
export declare var ListManagedInsightRulesInput$: StaticStructureSchema;
|
|
111
115
|
export declare var ListManagedInsightRulesOutput$: StaticStructureSchema;
|
|
116
|
+
export declare var ListMetricDataQueryDefinitionsInput$: StaticStructureSchema;
|
|
117
|
+
export declare var ListMetricDataQueryDefinitionsOutput$: StaticStructureSchema;
|
|
112
118
|
export declare var ListMetricsInput$: StaticStructureSchema;
|
|
113
119
|
export declare var ListMetricsOutput$: StaticStructureSchema;
|
|
114
120
|
export declare var ListMetricStreamsInput$: StaticStructureSchema;
|
|
@@ -124,6 +130,7 @@ export declare var Metric$: StaticStructureSchema;
|
|
|
124
130
|
export declare var MetricAlarm$: StaticStructureSchema;
|
|
125
131
|
export declare var MetricCharacteristics$: StaticStructureSchema;
|
|
126
132
|
export declare var MetricDataQuery$: StaticStructureSchema;
|
|
133
|
+
export declare var MetricDataQueryDefinitionSummary$: StaticStructureSchema;
|
|
127
134
|
export declare var MetricDataResult$: StaticStructureSchema;
|
|
128
135
|
export declare var MetricDatum$: StaticStructureSchema;
|
|
129
136
|
export declare var MetricMathAnomalyDetector$: StaticStructureSchema;
|
|
@@ -148,6 +155,8 @@ export declare var PutManagedInsightRulesInput$: StaticStructureSchema;
|
|
|
148
155
|
export declare var PutManagedInsightRulesOutput$: StaticStructureSchema;
|
|
149
156
|
export declare var PutMetricAlarmInput$: StaticStructureSchema;
|
|
150
157
|
export declare var PutMetricDataInput$: StaticStructureSchema;
|
|
158
|
+
export declare var PutMetricDataQueryDefinitionInput$: StaticStructureSchema;
|
|
159
|
+
export declare var PutMetricDataQueryDefinitionOutput$: StaticStructureSchema;
|
|
151
160
|
export declare var PutMetricStreamInput$: StaticStructureSchema;
|
|
152
161
|
export declare var PutMetricStreamOutput$: StaticStructureSchema;
|
|
153
162
|
export declare var Range$: StaticStructureSchema;
|
|
@@ -189,6 +198,7 @@ export declare var DeleteAlarms$: StaticOperationSchema;
|
|
|
189
198
|
export declare var DeleteAnomalyDetector$: StaticOperationSchema;
|
|
190
199
|
export declare var DeleteDashboards$: StaticOperationSchema;
|
|
191
200
|
export declare var DeleteInsightRules$: StaticOperationSchema;
|
|
201
|
+
export declare var DeleteMetricDataQueryDefinition$: StaticOperationSchema;
|
|
192
202
|
export declare var DeleteMetricStream$: StaticOperationSchema;
|
|
193
203
|
export declare var DeleteResourceMetricsConfiguration$: StaticOperationSchema;
|
|
194
204
|
export declare var DescribeAlarmContributors$: StaticOperationSchema;
|
|
@@ -207,6 +217,7 @@ export declare var GetDashboard$: StaticOperationSchema;
|
|
|
207
217
|
export declare var GetDataset$: StaticOperationSchema;
|
|
208
218
|
export declare var GetInsightRuleReport$: StaticOperationSchema;
|
|
209
219
|
export declare var GetMetricData$: StaticOperationSchema;
|
|
220
|
+
export declare var GetMetricDataQueryDefinition$: StaticOperationSchema;
|
|
210
221
|
export declare var GetMetricStatistics$: StaticOperationSchema;
|
|
211
222
|
export declare var GetMetricStream$: StaticOperationSchema;
|
|
212
223
|
export declare var GetMetricWidgetImage$: StaticOperationSchema;
|
|
@@ -215,6 +226,7 @@ export declare var GetResourceMetricsConfiguration$: StaticOperationSchema;
|
|
|
215
226
|
export declare var ListAlarmMuteRules$: StaticOperationSchema;
|
|
216
227
|
export declare var ListDashboards$: StaticOperationSchema;
|
|
217
228
|
export declare var ListManagedInsightRules$: StaticOperationSchema;
|
|
229
|
+
export declare var ListMetricDataQueryDefinitions$: StaticOperationSchema;
|
|
218
230
|
export declare var ListMetrics$: StaticOperationSchema;
|
|
219
231
|
export declare var ListMetricStreams$: StaticOperationSchema;
|
|
220
232
|
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
@@ -227,6 +239,7 @@ export declare var PutLogAlarm$: StaticOperationSchema;
|
|
|
227
239
|
export declare var PutManagedInsightRules$: StaticOperationSchema;
|
|
228
240
|
export declare var PutMetricAlarm$: StaticOperationSchema;
|
|
229
241
|
export declare var PutMetricData$: StaticOperationSchema;
|
|
242
|
+
export declare var PutMetricDataQueryDefinition$: StaticOperationSchema;
|
|
230
243
|
export declare var PutMetricStream$: StaticOperationSchema;
|
|
231
244
|
export declare var SetAlarmState$: StaticOperationSchema;
|
|
232
245
|
export declare var StartMetricStreams$: StaticOperationSchema;
|