@aws-sdk/client-amp 3.920.0 → 3.921.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 +40 -0
- package/dist-cjs/index.js +452 -0
- package/dist-es/Amp.js +10 -0
- package/dist-es/commands/CreateAnomalyDetectorCommand.js +22 -0
- package/dist-es/commands/DeleteAnomalyDetectorCommand.js +22 -0
- package/dist-es/commands/DescribeAnomalyDetectorCommand.js +22 -0
- package/dist-es/commands/ListAnomalyDetectorsCommand.js +22 -0
- package/dist-es/commands/PutAnomalyDetectorCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +37 -0
- package/dist-es/pagination/ListAnomalyDetectorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +233 -2
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForAnomalyDetectorActive.js +49 -0
- package/dist-es/waiters/waitForAnomalyDetectorDeleted.js +34 -0
- package/dist-types/Amp.d.ts +35 -0
- package/dist-types/AmpClient.d.ts +7 -2
- package/dist-types/commands/CreateAnomalyDetectorCommand.d.ts +128 -0
- package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +92 -0
- package/dist-types/commands/DescribeAnomalyDetectorCommand.d.ts +126 -0
- package/dist-types/commands/ListAnomalyDetectorsCommand.d.ts +108 -0
- package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +500 -0
- package/dist-types/pagination/ListAnomalyDetectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Amp.d.ts +85 -0
- package/dist-types/ts3.4/AmpClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateAnomalyDetectorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAnomalyDetectorCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DescribeAnomalyDetectorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAnomalyDetectorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutAnomalyDetectorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +175 -0
- package/dist-types/ts3.4/pagination/ListAnomalyDetectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForAnomalyDetectorActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForAnomalyDetectorDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForAnomalyDetectorActive.d.ts +14 -0
- package/dist-types/waiters/waitForAnomalyDetectorDeleted.d.ts +14 -0
- package/package.json +34 -34
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
4
|
+
import { ListAnomalyDetectorsRequest, ListAnomalyDetectorsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAnomalyDetectorsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAnomalyDetectorsCommandInput extends ListAnomalyDetectorsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAnomalyDetectorsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAnomalyDetectorsCommandOutput extends ListAnomalyDetectorsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAnomalyDetectorsCommand_base: {
|
|
25
|
+
new (input: ListAnomalyDetectorsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAnomalyDetectorsCommandInput, ListAnomalyDetectorsCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListAnomalyDetectorsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAnomalyDetectorsCommandInput, ListAnomalyDetectorsCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a paginated list of anomaly detectors for a workspace with optional filtering by alias.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AmpClient, ListAnomalyDetectorsCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
35
|
+
* // const { AmpClient, ListAnomalyDetectorsCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
36
|
+
* // import type { AmpClientConfig } from "@aws-sdk/client-amp";
|
|
37
|
+
* const config = {}; // type is AmpClientConfig
|
|
38
|
+
* const client = new AmpClient(config);
|
|
39
|
+
* const input = { // ListAnomalyDetectorsRequest
|
|
40
|
+
* workspaceId: "STRING_VALUE", // required
|
|
41
|
+
* alias: "STRING_VALUE",
|
|
42
|
+
* maxResults: Number("int"),
|
|
43
|
+
* nextToken: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new ListAnomalyDetectorsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // ListAnomalyDetectorsResponse
|
|
48
|
+
* // anomalyDetectors: [ // AnomalyDetectorSummaryList // required
|
|
49
|
+
* // { // AnomalyDetectorSummary
|
|
50
|
+
* // arn: "STRING_VALUE", // required
|
|
51
|
+
* // anomalyDetectorId: "STRING_VALUE", // required
|
|
52
|
+
* // alias: "STRING_VALUE", // required
|
|
53
|
+
* // status: { // AnomalyDetectorStatus
|
|
54
|
+
* // statusCode: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATION_FAILED" || "UPDATE_FAILED" || "DELETION_FAILED", // required
|
|
55
|
+
* // statusReason: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
58
|
+
* // modifiedAt: new Date("TIMESTAMP"), // required
|
|
59
|
+
* // tags: { // TagMap
|
|
60
|
+
* // "<keys>": "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // nextToken: "STRING_VALUE",
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param ListAnomalyDetectorsCommandInput - {@link ListAnomalyDetectorsCommandInput}
|
|
70
|
+
* @returns {@link ListAnomalyDetectorsCommandOutput}
|
|
71
|
+
* @see {@link ListAnomalyDetectorsCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link ListAnomalyDetectorsCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>An unexpected error occurred during the processing of the request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p>The request references a resources that doesn't exist.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>The request was denied due to request throttling.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link AmpServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class ListAnomalyDetectorsCommand extends ListAnomalyDetectorsCommand_base {
|
|
97
|
+
/** @internal type navigation helper, not in runtime. */
|
|
98
|
+
protected static __types: {
|
|
99
|
+
api: {
|
|
100
|
+
input: ListAnomalyDetectorsRequest;
|
|
101
|
+
output: ListAnomalyDetectorsResponse;
|
|
102
|
+
};
|
|
103
|
+
sdk: {
|
|
104
|
+
input: ListAnomalyDetectorsCommandInput;
|
|
105
|
+
output: ListAnomalyDetectorsCommandOutput;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
4
|
+
import { PutAnomalyDetectorRequest, PutAnomalyDetectorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutAnomalyDetectorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutAnomalyDetectorCommandInput extends PutAnomalyDetectorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutAnomalyDetectorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutAnomalyDetectorCommandOutput extends PutAnomalyDetectorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutAnomalyDetectorCommand_base: {
|
|
25
|
+
new (input: PutAnomalyDetectorCommandInput): import("@smithy/smithy-client").CommandImpl<PutAnomalyDetectorCommandInput, PutAnomalyDetectorCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: PutAnomalyDetectorCommandInput): import("@smithy/smithy-client").CommandImpl<PutAnomalyDetectorCommandInput, PutAnomalyDetectorCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>When you call <code>PutAnomalyDetector</code>, the operation creates a new anomaly detector if one doesn't exist, or updates an existing one. Each call to this operation triggers a complete retraining of the detector, which includes querying the minimum required samples and backfilling the detector with historical data. This process occurs regardless of whether you're making a minor change like updating the evaluation interval or making more substantial modifications. The operation serves as the single method for creating, updating, and retraining anomaly detectors.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AmpClient, PutAnomalyDetectorCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
35
|
+
* // const { AmpClient, PutAnomalyDetectorCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
36
|
+
* // import type { AmpClientConfig } from "@aws-sdk/client-amp";
|
|
37
|
+
* const config = {}; // type is AmpClientConfig
|
|
38
|
+
* const client = new AmpClient(config);
|
|
39
|
+
* const input = { // PutAnomalyDetectorRequest
|
|
40
|
+
* workspaceId: "STRING_VALUE", // required
|
|
41
|
+
* anomalyDetectorId: "STRING_VALUE", // required
|
|
42
|
+
* evaluationIntervalInSeconds: Number("int"),
|
|
43
|
+
* missingDataAction: { // AnomalyDetectorMissingDataAction Union: only one key present
|
|
44
|
+
* markAsAnomaly: true || false,
|
|
45
|
+
* skip: true || false,
|
|
46
|
+
* },
|
|
47
|
+
* configuration: { // AnomalyDetectorConfiguration Union: only one key present
|
|
48
|
+
* randomCutForest: { // RandomCutForestConfiguration
|
|
49
|
+
* query: "STRING_VALUE", // required
|
|
50
|
+
* shingleSize: Number("int"),
|
|
51
|
+
* sampleSize: Number("int"),
|
|
52
|
+
* ignoreNearExpectedFromAbove: { // IgnoreNearExpected Union: only one key present
|
|
53
|
+
* amount: Number("double"),
|
|
54
|
+
* ratio: Number("double"),
|
|
55
|
+
* },
|
|
56
|
+
* ignoreNearExpectedFromBelow: {// Union: only one key present
|
|
57
|
+
* amount: Number("double"),
|
|
58
|
+
* ratio: Number("double"),
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* labels: { // PrometheusMetricLabelMap
|
|
63
|
+
* "<keys>": "STRING_VALUE",
|
|
64
|
+
* },
|
|
65
|
+
* clientToken: "STRING_VALUE",
|
|
66
|
+
* };
|
|
67
|
+
* const command = new PutAnomalyDetectorCommand(input);
|
|
68
|
+
* const response = await client.send(command);
|
|
69
|
+
* // { // PutAnomalyDetectorResponse
|
|
70
|
+
* // anomalyDetectorId: "STRING_VALUE", // required
|
|
71
|
+
* // arn: "STRING_VALUE", // required
|
|
72
|
+
* // status: { // AnomalyDetectorStatus
|
|
73
|
+
* // statusCode: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATION_FAILED" || "UPDATE_FAILED" || "DELETION_FAILED", // required
|
|
74
|
+
* // statusReason: "STRING_VALUE",
|
|
75
|
+
* // },
|
|
76
|
+
* // tags: { // TagMap
|
|
77
|
+
* // "<keys>": "STRING_VALUE",
|
|
78
|
+
* // },
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param PutAnomalyDetectorCommandInput - {@link PutAnomalyDetectorCommandInput}
|
|
84
|
+
* @returns {@link PutAnomalyDetectorCommandOutput}
|
|
85
|
+
* @see {@link PutAnomalyDetectorCommandInput} for command's `input` shape.
|
|
86
|
+
* @see {@link PutAnomalyDetectorCommandOutput} for command's `response` shape.
|
|
87
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
90
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ConflictException} (client fault)
|
|
93
|
+
* <p>The request would cause an inconsistent state.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link InternalServerException} (server fault)
|
|
96
|
+
* <p>An unexpected error occurred during the processing of the request.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
99
|
+
* <p>Completing the request would cause a service quota to be exceeded.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
102
|
+
* <p>The request was denied due to request throttling.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ValidationException} (client fault)
|
|
105
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link AmpServiceException}
|
|
108
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
113
|
+
export declare class PutAnomalyDetectorCommand extends PutAnomalyDetectorCommand_base {
|
|
114
|
+
/** @internal type navigation helper, not in runtime. */
|
|
115
|
+
protected static __types: {
|
|
116
|
+
api: {
|
|
117
|
+
input: PutAnomalyDetectorRequest;
|
|
118
|
+
output: PutAnomalyDetectorResponse;
|
|
119
|
+
};
|
|
120
|
+
sdk: {
|
|
121
|
+
input: PutAnomalyDetectorCommandInput;
|
|
122
|
+
output: PutAnomalyDetectorCommandOutput;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./CreateAlertManagerDefinitionCommand";
|
|
2
|
+
export * from "./CreateAnomalyDetectorCommand";
|
|
2
3
|
export * from "./CreateLoggingConfigurationCommand";
|
|
3
4
|
export * from "./CreateQueryLoggingConfigurationCommand";
|
|
4
5
|
export * from "./CreateRuleGroupsNamespaceCommand";
|
|
5
6
|
export * from "./CreateScraperCommand";
|
|
6
7
|
export * from "./CreateWorkspaceCommand";
|
|
7
8
|
export * from "./DeleteAlertManagerDefinitionCommand";
|
|
9
|
+
export * from "./DeleteAnomalyDetectorCommand";
|
|
8
10
|
export * from "./DeleteLoggingConfigurationCommand";
|
|
9
11
|
export * from "./DeleteQueryLoggingConfigurationCommand";
|
|
10
12
|
export * from "./DeleteResourcePolicyCommand";
|
|
@@ -13,6 +15,7 @@ export * from "./DeleteScraperCommand";
|
|
|
13
15
|
export * from "./DeleteScraperLoggingConfigurationCommand";
|
|
14
16
|
export * from "./DeleteWorkspaceCommand";
|
|
15
17
|
export * from "./DescribeAlertManagerDefinitionCommand";
|
|
18
|
+
export * from "./DescribeAnomalyDetectorCommand";
|
|
16
19
|
export * from "./DescribeLoggingConfigurationCommand";
|
|
17
20
|
export * from "./DescribeQueryLoggingConfigurationCommand";
|
|
18
21
|
export * from "./DescribeResourcePolicyCommand";
|
|
@@ -22,11 +25,13 @@ export * from "./DescribeScraperLoggingConfigurationCommand";
|
|
|
22
25
|
export * from "./DescribeWorkspaceCommand";
|
|
23
26
|
export * from "./DescribeWorkspaceConfigurationCommand";
|
|
24
27
|
export * from "./GetDefaultScraperConfigurationCommand";
|
|
28
|
+
export * from "./ListAnomalyDetectorsCommand";
|
|
25
29
|
export * from "./ListRuleGroupsNamespacesCommand";
|
|
26
30
|
export * from "./ListScrapersCommand";
|
|
27
31
|
export * from "./ListTagsForResourceCommand";
|
|
28
32
|
export * from "./ListWorkspacesCommand";
|
|
29
33
|
export * from "./PutAlertManagerDefinitionCommand";
|
|
34
|
+
export * from "./PutAnomalyDetectorCommand";
|
|
30
35
|
export * from "./PutResourcePolicyCommand";
|
|
31
36
|
export * from "./PutRuleGroupsNamespaceCommand";
|
|
32
37
|
export * from "./TagResourceCommand";
|