Skip to content

Commit b01ec9b

Browse files
author
awstools
committed
feat(client-amp): Add Anomaly Detection APIs for Amazon Managed Prometheus
1 parent 7d254a9 commit b01ec9b

17 files changed

+2998
-1
lines changed

clients/client-amp/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@ CreateAlertManagerDefinition
210210

211211
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateAlertManagerDefinitionCommandOutput/)
212212

213+
</details>
214+
<details>
215+
<summary>
216+
CreateAnomalyDetector
217+
</summary>
218+
219+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateAnomalyDetectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateAnomalyDetectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateAnomalyDetectorCommandOutput/)
220+
213221
</details>
214222
<details>
215223
<summary>
@@ -258,6 +266,14 @@ DeleteAlertManagerDefinition
258266

259267
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteAlertManagerDefinitionCommandOutput/)
260268

269+
</details>
270+
<details>
271+
<summary>
272+
DeleteAnomalyDetector
273+
</summary>
274+
275+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteAnomalyDetectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteAnomalyDetectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteAnomalyDetectorCommandOutput/)
276+
261277
</details>
262278
<details>
263279
<summary>
@@ -322,6 +338,14 @@ DescribeAlertManagerDefinition
322338

323339
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeAlertManagerDefinitionCommandOutput/)
324340

341+
</details>
342+
<details>
343+
<summary>
344+
DescribeAnomalyDetector
345+
</summary>
346+
347+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeAnomalyDetectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeAnomalyDetectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeAnomalyDetectorCommandOutput/)
348+
325349
</details>
326350
<details>
327351
<summary>
@@ -394,6 +418,14 @@ GetDefaultScraperConfiguration
394418

395419
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/GetDefaultScraperConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/GetDefaultScraperConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/GetDefaultScraperConfigurationCommandOutput/)
396420

421+
</details>
422+
<details>
423+
<summary>
424+
ListAnomalyDetectors
425+
</summary>
426+
427+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/ListAnomalyDetectorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListAnomalyDetectorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListAnomalyDetectorsCommandOutput/)
428+
397429
</details>
398430
<details>
399431
<summary>
@@ -434,6 +466,14 @@ PutAlertManagerDefinition
434466

435467
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/PutAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutAlertManagerDefinitionCommandOutput/)
436468

469+
</details>
470+
<details>
471+
<summary>
472+
PutAnomalyDetector
473+
</summary>
474+
475+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/PutAnomalyDetectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutAnomalyDetectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutAnomalyDetectorCommandOutput/)
476+
437477
</details>
438478
<details>
439479
<summary>

clients/client-amp/src/Amp.ts

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import {
88
CreateAlertManagerDefinitionCommandInput,
99
CreateAlertManagerDefinitionCommandOutput,
1010
} from "./commands/CreateAlertManagerDefinitionCommand";
11+
import {
12+
CreateAnomalyDetectorCommand,
13+
CreateAnomalyDetectorCommandInput,
14+
CreateAnomalyDetectorCommandOutput,
15+
} from "./commands/CreateAnomalyDetectorCommand";
1116
import {
1217
CreateLoggingConfigurationCommand,
1318
CreateLoggingConfigurationCommandInput,
@@ -38,6 +43,11 @@ import {
3843
DeleteAlertManagerDefinitionCommandInput,
3944
DeleteAlertManagerDefinitionCommandOutput,
4045
} from "./commands/DeleteAlertManagerDefinitionCommand";
46+
import {
47+
DeleteAnomalyDetectorCommand,
48+
DeleteAnomalyDetectorCommandInput,
49+
DeleteAnomalyDetectorCommandOutput,
50+
} from "./commands/DeleteAnomalyDetectorCommand";
4151
import {
4252
DeleteLoggingConfigurationCommand,
4353
DeleteLoggingConfigurationCommandInput,
@@ -78,6 +88,11 @@ import {
7888
DescribeAlertManagerDefinitionCommandInput,
7989
DescribeAlertManagerDefinitionCommandOutput,
8090
} from "./commands/DescribeAlertManagerDefinitionCommand";
91+
import {
92+
DescribeAnomalyDetectorCommand,
93+
DescribeAnomalyDetectorCommandInput,
94+
DescribeAnomalyDetectorCommandOutput,
95+
} from "./commands/DescribeAnomalyDetectorCommand";
8196
import {
8297
DescribeLoggingConfigurationCommand,
8398
DescribeLoggingConfigurationCommandInput,
@@ -123,6 +138,11 @@ import {
123138
GetDefaultScraperConfigurationCommandInput,
124139
GetDefaultScraperConfigurationCommandOutput,
125140
} from "./commands/GetDefaultScraperConfigurationCommand";
141+
import {
142+
ListAnomalyDetectorsCommand,
143+
ListAnomalyDetectorsCommandInput,
144+
ListAnomalyDetectorsCommandOutput,
145+
} from "./commands/ListAnomalyDetectorsCommand";
126146
import {
127147
ListRuleGroupsNamespacesCommand,
128148
ListRuleGroupsNamespacesCommandInput,
@@ -148,6 +168,11 @@ import {
148168
PutAlertManagerDefinitionCommandInput,
149169
PutAlertManagerDefinitionCommandOutput,
150170
} from "./commands/PutAlertManagerDefinitionCommand";
171+
import {
172+
PutAnomalyDetectorCommand,
173+
PutAnomalyDetectorCommandInput,
174+
PutAnomalyDetectorCommandOutput,
175+
} from "./commands/PutAnomalyDetectorCommand";
151176
import {
152177
PutResourcePolicyCommand,
153178
PutResourcePolicyCommandInput,
@@ -197,12 +222,14 @@ import {
197222

198223
const commands = {
199224
CreateAlertManagerDefinitionCommand,
225+
CreateAnomalyDetectorCommand,
200226
CreateLoggingConfigurationCommand,
201227
CreateQueryLoggingConfigurationCommand,
202228
CreateRuleGroupsNamespaceCommand,
203229
CreateScraperCommand,
204230
CreateWorkspaceCommand,
205231
DeleteAlertManagerDefinitionCommand,
232+
DeleteAnomalyDetectorCommand,
206233
DeleteLoggingConfigurationCommand,
207234
DeleteQueryLoggingConfigurationCommand,
208235
DeleteResourcePolicyCommand,
@@ -211,6 +238,7 @@ const commands = {
211238
DeleteScraperLoggingConfigurationCommand,
212239
DeleteWorkspaceCommand,
213240
DescribeAlertManagerDefinitionCommand,
241+
DescribeAnomalyDetectorCommand,
214242
DescribeLoggingConfigurationCommand,
215243
DescribeQueryLoggingConfigurationCommand,
216244
DescribeResourcePolicyCommand,
@@ -220,11 +248,13 @@ const commands = {
220248
DescribeWorkspaceCommand,
221249
DescribeWorkspaceConfigurationCommand,
222250
GetDefaultScraperConfigurationCommand,
251+
ListAnomalyDetectorsCommand,
223252
ListRuleGroupsNamespacesCommand,
224253
ListScrapersCommand,
225254
ListTagsForResourceCommand,
226255
ListWorkspacesCommand,
227256
PutAlertManagerDefinitionCommand,
257+
PutAnomalyDetectorCommand,
228258
PutResourcePolicyCommand,
229259
PutRuleGroupsNamespaceCommand,
230260
TagResourceCommand,
@@ -255,6 +285,23 @@ export interface Amp {
255285
cb: (err: any, data?: CreateAlertManagerDefinitionCommandOutput) => void
256286
): void;
257287

288+
/**
289+
* @see {@link CreateAnomalyDetectorCommand}
290+
*/
291+
createAnomalyDetector(
292+
args: CreateAnomalyDetectorCommandInput,
293+
options?: __HttpHandlerOptions
294+
): Promise<CreateAnomalyDetectorCommandOutput>;
295+
createAnomalyDetector(
296+
args: CreateAnomalyDetectorCommandInput,
297+
cb: (err: any, data?: CreateAnomalyDetectorCommandOutput) => void
298+
): void;
299+
createAnomalyDetector(
300+
args: CreateAnomalyDetectorCommandInput,
301+
options: __HttpHandlerOptions,
302+
cb: (err: any, data?: CreateAnomalyDetectorCommandOutput) => void
303+
): void;
304+
258305
/**
259306
* @see {@link CreateLoggingConfigurationCommand}
260307
*/
@@ -349,6 +396,23 @@ export interface Amp {
349396
cb: (err: any, data?: DeleteAlertManagerDefinitionCommandOutput) => void
350397
): void;
351398

399+
/**
400+
* @see {@link DeleteAnomalyDetectorCommand}
401+
*/
402+
deleteAnomalyDetector(
403+
args: DeleteAnomalyDetectorCommandInput,
404+
options?: __HttpHandlerOptions
405+
): Promise<DeleteAnomalyDetectorCommandOutput>;
406+
deleteAnomalyDetector(
407+
args: DeleteAnomalyDetectorCommandInput,
408+
cb: (err: any, data?: DeleteAnomalyDetectorCommandOutput) => void
409+
): void;
410+
deleteAnomalyDetector(
411+
args: DeleteAnomalyDetectorCommandInput,
412+
options: __HttpHandlerOptions,
413+
cb: (err: any, data?: DeleteAnomalyDetectorCommandOutput) => void
414+
): void;
415+
352416
/**
353417
* @see {@link DeleteLoggingConfigurationCommand}
354418
*/
@@ -476,6 +540,23 @@ export interface Amp {
476540
cb: (err: any, data?: DescribeAlertManagerDefinitionCommandOutput) => void
477541
): void;
478542

543+
/**
544+
* @see {@link DescribeAnomalyDetectorCommand}
545+
*/
546+
describeAnomalyDetector(
547+
args: DescribeAnomalyDetectorCommandInput,
548+
options?: __HttpHandlerOptions
549+
): Promise<DescribeAnomalyDetectorCommandOutput>;
550+
describeAnomalyDetector(
551+
args: DescribeAnomalyDetectorCommandInput,
552+
cb: (err: any, data?: DescribeAnomalyDetectorCommandOutput) => void
553+
): void;
554+
describeAnomalyDetector(
555+
args: DescribeAnomalyDetectorCommandInput,
556+
options: __HttpHandlerOptions,
557+
cb: (err: any, data?: DescribeAnomalyDetectorCommandOutput) => void
558+
): void;
559+
479560
/**
480561
* @see {@link DescribeLoggingConfigurationCommand}
481562
*/
@@ -627,6 +708,23 @@ export interface Amp {
627708
cb: (err: any, data?: GetDefaultScraperConfigurationCommandOutput) => void
628709
): void;
629710

711+
/**
712+
* @see {@link ListAnomalyDetectorsCommand}
713+
*/
714+
listAnomalyDetectors(
715+
args: ListAnomalyDetectorsCommandInput,
716+
options?: __HttpHandlerOptions
717+
): Promise<ListAnomalyDetectorsCommandOutput>;
718+
listAnomalyDetectors(
719+
args: ListAnomalyDetectorsCommandInput,
720+
cb: (err: any, data?: ListAnomalyDetectorsCommandOutput) => void
721+
): void;
722+
listAnomalyDetectors(
723+
args: ListAnomalyDetectorsCommandInput,
724+
options: __HttpHandlerOptions,
725+
cb: (err: any, data?: ListAnomalyDetectorsCommandOutput) => void
726+
): void;
727+
630728
/**
631729
* @see {@link ListRuleGroupsNamespacesCommand}
632730
*/
@@ -705,6 +803,23 @@ export interface Amp {
705803
cb: (err: any, data?: PutAlertManagerDefinitionCommandOutput) => void
706804
): void;
707805

806+
/**
807+
* @see {@link PutAnomalyDetectorCommand}
808+
*/
809+
putAnomalyDetector(
810+
args: PutAnomalyDetectorCommandInput,
811+
options?: __HttpHandlerOptions
812+
): Promise<PutAnomalyDetectorCommandOutput>;
813+
putAnomalyDetector(
814+
args: PutAnomalyDetectorCommandInput,
815+
cb: (err: any, data?: PutAnomalyDetectorCommandOutput) => void
816+
): void;
817+
putAnomalyDetector(
818+
args: PutAnomalyDetectorCommandInput,
819+
options: __HttpHandlerOptions,
820+
cb: (err: any, data?: PutAnomalyDetectorCommandOutput) => void
821+
): void;
822+
708823
/**
709824
* @see {@link PutResourcePolicyCommand}
710825
*/

0 commit comments

Comments
 (0)