@aws-sdk/client-sagemaker-metrics 3.651.1 → 3.656.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 +15 -7
- package/dist-cjs/index.js +99 -2
- package/dist-es/SageMakerMetrics.js +2 -0
- package/dist-es/commands/BatchGetMetricsCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/protocols/Aws_restJson1.js +52 -1
- package/dist-types/SageMakerMetrics.d.ts +7 -0
- package/dist-types/SageMakerMetricsClient.d.ts +3 -2
- package/dist-types/commands/BatchGetMetricsCommand.d.ts +92 -0
- package/dist-types/commands/BatchPutMetricsCommand.d.ts +15 -5
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +144 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/SageMakerMetrics.d.ts +17 -0
- package/dist-types/ts3.4/SageMakerMetricsClient.d.ts +10 -2
- package/dist-types/ts3.4/commands/BatchGetMetricsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/BatchPutMetricsCommand.d.ts +21 -6
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +51 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -31,16 +31,16 @@ using your favorite package manager:
|
|
|
31
31
|
|
|
32
32
|
The AWS SDK is modulized by clients and commands.
|
|
33
33
|
To send a request, you only need to import the `SageMakerMetricsClient` and
|
|
34
|
-
the commands you need, for example `
|
|
34
|
+
the commands you need, for example `BatchGetMetricsCommand`:
|
|
35
35
|
|
|
36
36
|
```js
|
|
37
37
|
// ES5 example
|
|
38
|
-
const { SageMakerMetricsClient,
|
|
38
|
+
const { SageMakerMetricsClient, BatchGetMetricsCommand } = require("@aws-sdk/client-sagemaker-metrics");
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
```ts
|
|
42
42
|
// ES6+ example
|
|
43
|
-
import { SageMakerMetricsClient,
|
|
43
|
+
import { SageMakerMetricsClient, BatchGetMetricsCommand } from "@aws-sdk/client-sagemaker-metrics";
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
### Usage
|
|
@@ -59,7 +59,7 @@ const client = new SageMakerMetricsClient({ region: "REGION" });
|
|
|
59
59
|
const params = {
|
|
60
60
|
/** input parameters */
|
|
61
61
|
};
|
|
62
|
-
const command = new
|
|
62
|
+
const command = new BatchGetMetricsCommand(params);
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
#### Async/await
|
|
@@ -138,7 +138,7 @@ const client = new AWS.SageMakerMetrics({ region: "REGION" });
|
|
|
138
138
|
|
|
139
139
|
// async/await.
|
|
140
140
|
try {
|
|
141
|
-
const data = await client.
|
|
141
|
+
const data = await client.batchGetMetrics(params);
|
|
142
142
|
// process data.
|
|
143
143
|
} catch (error) {
|
|
144
144
|
// error handling.
|
|
@@ -146,7 +146,7 @@ try {
|
|
|
146
146
|
|
|
147
147
|
// Promises.
|
|
148
148
|
client
|
|
149
|
-
.
|
|
149
|
+
.batchGetMetrics(params)
|
|
150
150
|
.then((data) => {
|
|
151
151
|
// process data.
|
|
152
152
|
})
|
|
@@ -155,7 +155,7 @@ client
|
|
|
155
155
|
});
|
|
156
156
|
|
|
157
157
|
// callbacks.
|
|
158
|
-
client.
|
|
158
|
+
client.batchGetMetrics(params, (err, data) => {
|
|
159
159
|
// process err and data.
|
|
160
160
|
});
|
|
161
161
|
```
|
|
@@ -211,6 +211,14 @@ see LICENSE for more information.
|
|
|
211
211
|
|
|
212
212
|
## Client Commands (Operations List)
|
|
213
213
|
|
|
214
|
+
<details>
|
|
215
|
+
<summary>
|
|
216
|
+
BatchGetMetrics
|
|
217
|
+
</summary>
|
|
218
|
+
|
|
219
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-metrics/command/BatchGetMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-metrics/Interface/BatchGetMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-metrics/Interface/BatchGetMetricsCommandOutput/)
|
|
220
|
+
|
|
221
|
+
</details>
|
|
214
222
|
<details>
|
|
215
223
|
<summary>
|
|
216
224
|
BatchPutMetrics
|
package/dist-cjs/index.js
CHANGED
|
@@ -21,12 +21,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
|
-
|
|
24
|
+
BatchGetMetricsCommand: () => BatchGetMetricsCommand,
|
|
25
25
|
BatchPutMetricsCommand: () => BatchPutMetricsCommand,
|
|
26
|
+
MetricQueryResultStatus: () => MetricQueryResultStatus,
|
|
27
|
+
MetricStatistic: () => MetricStatistic,
|
|
28
|
+
Period: () => Period,
|
|
26
29
|
PutMetricsErrorCode: () => PutMetricsErrorCode,
|
|
27
30
|
SageMakerMetrics: () => SageMakerMetrics,
|
|
28
31
|
SageMakerMetricsClient: () => SageMakerMetricsClient,
|
|
29
32
|
SageMakerMetricsServiceException: () => SageMakerMetricsServiceException,
|
|
33
|
+
XAxisType: () => XAxisType,
|
|
30
34
|
__Client: () => import_smithy_client.Client
|
|
31
35
|
});
|
|
32
36
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -171,7 +175,7 @@ var SageMakerMetricsClient = _SageMakerMetricsClient;
|
|
|
171
175
|
// src/SageMakerMetrics.ts
|
|
172
176
|
|
|
173
177
|
|
|
174
|
-
// src/commands/
|
|
178
|
+
// src/commands/BatchGetMetricsCommand.ts
|
|
175
179
|
|
|
176
180
|
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
177
181
|
|
|
@@ -196,6 +200,21 @@ __name(_SageMakerMetricsServiceException, "SageMakerMetricsServiceException");
|
|
|
196
200
|
var SageMakerMetricsServiceException = _SageMakerMetricsServiceException;
|
|
197
201
|
|
|
198
202
|
// src/protocols/Aws_restJson1.ts
|
|
203
|
+
var se_BatchGetMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
204
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
205
|
+
const headers = {
|
|
206
|
+
"content-type": "application/json"
|
|
207
|
+
};
|
|
208
|
+
b.bp("/BatchGetMetrics");
|
|
209
|
+
let body;
|
|
210
|
+
body = JSON.stringify(
|
|
211
|
+
(0, import_smithy_client.take)(input, {
|
|
212
|
+
MetricQueries: (_) => (0, import_smithy_client._json)(_)
|
|
213
|
+
})
|
|
214
|
+
);
|
|
215
|
+
b.m("POST").h(headers).b(body);
|
|
216
|
+
return b.build();
|
|
217
|
+
}, "se_BatchGetMetricsCommand");
|
|
199
218
|
var se_BatchPutMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
200
219
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
201
220
|
const headers = {
|
|
@@ -212,6 +231,20 @@ var se_BatchPutMetricsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
212
231
|
b.m("PUT").h(headers).b(body);
|
|
213
232
|
return b.build();
|
|
214
233
|
}, "se_BatchPutMetricsCommand");
|
|
234
|
+
var de_BatchGetMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
235
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
236
|
+
return de_CommandError(output, context);
|
|
237
|
+
}
|
|
238
|
+
const contents = (0, import_smithy_client.map)({
|
|
239
|
+
$metadata: deserializeMetadata(output)
|
|
240
|
+
});
|
|
241
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
242
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
243
|
+
MetricQueryResults: (_) => de_MetricQueryResultList(_, context)
|
|
244
|
+
});
|
|
245
|
+
Object.assign(contents, doc);
|
|
246
|
+
return contents;
|
|
247
|
+
}, "de_BatchGetMetricsCommand");
|
|
215
248
|
var de_BatchPutMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
216
249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
217
250
|
return de_CommandError(output, context);
|
|
@@ -253,6 +286,26 @@ var se_RawMetricDataList = /* @__PURE__ */ __name((input, context) => {
|
|
|
253
286
|
return se_RawMetricData(entry, context);
|
|
254
287
|
});
|
|
255
288
|
}, "se_RawMetricDataList");
|
|
289
|
+
var de_MetricQueryResult = /* @__PURE__ */ __name((output, context) => {
|
|
290
|
+
return (0, import_smithy_client.take)(output, {
|
|
291
|
+
Message: import_smithy_client.expectString,
|
|
292
|
+
MetricValues: (_) => de_MetricValues(_, context),
|
|
293
|
+
Status: import_smithy_client.expectString,
|
|
294
|
+
XAxisValues: import_smithy_client._json
|
|
295
|
+
});
|
|
296
|
+
}, "de_MetricQueryResult");
|
|
297
|
+
var de_MetricQueryResultList = /* @__PURE__ */ __name((output, context) => {
|
|
298
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
299
|
+
return de_MetricQueryResult(entry, context);
|
|
300
|
+
});
|
|
301
|
+
return retVal;
|
|
302
|
+
}, "de_MetricQueryResultList");
|
|
303
|
+
var de_MetricValues = /* @__PURE__ */ __name((output, context) => {
|
|
304
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
305
|
+
return (0, import_smithy_client.limitedParseDouble)(entry);
|
|
306
|
+
});
|
|
307
|
+
return retVal;
|
|
308
|
+
}, "de_MetricValues");
|
|
256
309
|
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
257
310
|
httpStatusCode: output.statusCode,
|
|
258
311
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -260,7 +313,21 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
260
313
|
cfId: output.headers["x-amz-cf-id"]
|
|
261
314
|
}), "deserializeMetadata");
|
|
262
315
|
|
|
316
|
+
// src/commands/BatchGetMetricsCommand.ts
|
|
317
|
+
var _BatchGetMetricsCommand = class _BatchGetMetricsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
318
|
+
return [
|
|
319
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
320
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
321
|
+
];
|
|
322
|
+
}).s("SageMakerMetricsService", "BatchGetMetrics", {}).n("SageMakerMetricsClient", "BatchGetMetricsCommand").f(void 0, void 0).ser(se_BatchGetMetricsCommand).de(de_BatchGetMetricsCommand).build() {
|
|
323
|
+
};
|
|
324
|
+
__name(_BatchGetMetricsCommand, "BatchGetMetricsCommand");
|
|
325
|
+
var BatchGetMetricsCommand = _BatchGetMetricsCommand;
|
|
326
|
+
|
|
263
327
|
// src/commands/BatchPutMetricsCommand.ts
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
264
331
|
var _BatchPutMetricsCommand = class _BatchPutMetricsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
265
332
|
return [
|
|
266
333
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
@@ -273,6 +340,7 @@ var BatchPutMetricsCommand = _BatchPutMetricsCommand;
|
|
|
273
340
|
|
|
274
341
|
// src/SageMakerMetrics.ts
|
|
275
342
|
var commands = {
|
|
343
|
+
BatchGetMetricsCommand,
|
|
276
344
|
BatchPutMetricsCommand
|
|
277
345
|
};
|
|
278
346
|
var _SageMakerMetrics = class _SageMakerMetrics extends SageMakerMetricsClient {
|
|
@@ -282,6 +350,30 @@ var SageMakerMetrics = _SageMakerMetrics;
|
|
|
282
350
|
(0, import_smithy_client.createAggregatedClient)(commands, SageMakerMetrics);
|
|
283
351
|
|
|
284
352
|
// src/models/models_0.ts
|
|
353
|
+
var MetricStatistic = {
|
|
354
|
+
AVG: "Avg",
|
|
355
|
+
COUNT: "Count",
|
|
356
|
+
LAST: "Last",
|
|
357
|
+
MAX: "Max",
|
|
358
|
+
MIN: "Min",
|
|
359
|
+
STD_DEV: "StdDev"
|
|
360
|
+
};
|
|
361
|
+
var Period = {
|
|
362
|
+
FIVE_MINUTE: "FiveMinute",
|
|
363
|
+
ITERATION_NUMBER: "IterationNumber",
|
|
364
|
+
ONE_HOUR: "OneHour",
|
|
365
|
+
ONE_MINUTE: "OneMinute"
|
|
366
|
+
};
|
|
367
|
+
var XAxisType = {
|
|
368
|
+
ITERATION_NUMBER: "IterationNumber",
|
|
369
|
+
TIMESTAMP: "Timestamp"
|
|
370
|
+
};
|
|
371
|
+
var MetricQueryResultStatus = {
|
|
372
|
+
COMPLETE: "Complete",
|
|
373
|
+
INTERNAL_ERROR: "InternalError",
|
|
374
|
+
TRUNCATED: "Truncated",
|
|
375
|
+
VALIDATION_ERROR: "ValidationError"
|
|
376
|
+
};
|
|
285
377
|
var PutMetricsErrorCode = {
|
|
286
378
|
CONFLICT_ERROR: "CONFLICT_ERROR",
|
|
287
379
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
@@ -296,7 +388,12 @@ var PutMetricsErrorCode = {
|
|
|
296
388
|
SageMakerMetricsClient,
|
|
297
389
|
SageMakerMetrics,
|
|
298
390
|
$Command,
|
|
391
|
+
BatchGetMetricsCommand,
|
|
299
392
|
BatchPutMetricsCommand,
|
|
393
|
+
MetricStatistic,
|
|
394
|
+
Period,
|
|
395
|
+
XAxisType,
|
|
396
|
+
MetricQueryResultStatus,
|
|
300
397
|
PutMetricsErrorCode
|
|
301
398
|
});
|
|
302
399
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { BatchGetMetricsCommand, } from "./commands/BatchGetMetricsCommand";
|
|
2
3
|
import { BatchPutMetricsCommand, } from "./commands/BatchPutMetricsCommand";
|
|
3
4
|
import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
|
|
4
5
|
const commands = {
|
|
6
|
+
BatchGetMetricsCommand,
|
|
5
7
|
BatchPutMetricsCommand,
|
|
6
8
|
};
|
|
7
9
|
export class SageMakerMetrics extends SageMakerMetricsClient {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchGetMetricsCommand, se_BatchGetMetricsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchGetMetricsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("SageMakerMetricsService", "BatchGetMetrics", {})
|
|
17
|
+
.n("SageMakerMetricsClient", "BatchGetMetricsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchGetMetricsCommand)
|
|
20
|
+
.de(de_BatchGetMetricsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
export const MetricStatistic = {
|
|
2
|
+
AVG: "Avg",
|
|
3
|
+
COUNT: "Count",
|
|
4
|
+
LAST: "Last",
|
|
5
|
+
MAX: "Max",
|
|
6
|
+
MIN: "Min",
|
|
7
|
+
STD_DEV: "StdDev",
|
|
8
|
+
};
|
|
9
|
+
export const Period = {
|
|
10
|
+
FIVE_MINUTE: "FiveMinute",
|
|
11
|
+
ITERATION_NUMBER: "IterationNumber",
|
|
12
|
+
ONE_HOUR: "OneHour",
|
|
13
|
+
ONE_MINUTE: "OneMinute",
|
|
14
|
+
};
|
|
15
|
+
export const XAxisType = {
|
|
16
|
+
ITERATION_NUMBER: "IterationNumber",
|
|
17
|
+
TIMESTAMP: "Timestamp",
|
|
18
|
+
};
|
|
19
|
+
export const MetricQueryResultStatus = {
|
|
20
|
+
COMPLETE: "Complete",
|
|
21
|
+
INTERNAL_ERROR: "InternalError",
|
|
22
|
+
TRUNCATED: "Truncated",
|
|
23
|
+
VALIDATION_ERROR: "ValidationError",
|
|
24
|
+
};
|
|
1
25
|
export const PutMetricsErrorCode = {
|
|
2
26
|
CONFLICT_ERROR: "CONFLICT_ERROR",
|
|
3
27
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, expectNonNull as __expectNonNull, expectObject as __expectObject, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { SageMakerMetricsServiceException as __BaseException } from "../models/SageMakerMetricsServiceException";
|
|
5
|
+
export const se_BatchGetMetricsCommand = async (input, context) => {
|
|
6
|
+
const b = rb(input, context);
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
b.bp("/BatchGetMetrics");
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
MetricQueries: (_) => _json(_),
|
|
14
|
+
}));
|
|
15
|
+
b.m("POST").h(headers).b(body);
|
|
16
|
+
return b.build();
|
|
17
|
+
};
|
|
5
18
|
export const se_BatchPutMetricsCommand = async (input, context) => {
|
|
6
19
|
const b = rb(input, context);
|
|
7
20
|
const headers = {
|
|
@@ -16,6 +29,20 @@ export const se_BatchPutMetricsCommand = async (input, context) => {
|
|
|
16
29
|
b.m("PUT").h(headers).b(body);
|
|
17
30
|
return b.build();
|
|
18
31
|
};
|
|
32
|
+
export const de_BatchGetMetricsCommand = async (output, context) => {
|
|
33
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
34
|
+
return de_CommandError(output, context);
|
|
35
|
+
}
|
|
36
|
+
const contents = map({
|
|
37
|
+
$metadata: deserializeMetadata(output),
|
|
38
|
+
});
|
|
39
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
40
|
+
const doc = take(data, {
|
|
41
|
+
MetricQueryResults: (_) => de_MetricQueryResultList(_, context),
|
|
42
|
+
});
|
|
43
|
+
Object.assign(contents, doc);
|
|
44
|
+
return contents;
|
|
45
|
+
};
|
|
19
46
|
export const de_BatchPutMetricsCommand = async (output, context) => {
|
|
20
47
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
21
48
|
return de_CommandError(output, context);
|
|
@@ -59,6 +86,30 @@ const se_RawMetricDataList = (input, context) => {
|
|
|
59
86
|
return se_RawMetricData(entry, context);
|
|
60
87
|
});
|
|
61
88
|
};
|
|
89
|
+
const de_MetricQueryResult = (output, context) => {
|
|
90
|
+
return take(output, {
|
|
91
|
+
Message: __expectString,
|
|
92
|
+
MetricValues: (_) => de_MetricValues(_, context),
|
|
93
|
+
Status: __expectString,
|
|
94
|
+
XAxisValues: _json,
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
const de_MetricQueryResultList = (output, context) => {
|
|
98
|
+
const retVal = (output || [])
|
|
99
|
+
.filter((e) => e != null)
|
|
100
|
+
.map((entry) => {
|
|
101
|
+
return de_MetricQueryResult(entry, context);
|
|
102
|
+
});
|
|
103
|
+
return retVal;
|
|
104
|
+
};
|
|
105
|
+
const de_MetricValues = (output, context) => {
|
|
106
|
+
const retVal = (output || [])
|
|
107
|
+
.filter((e) => e != null)
|
|
108
|
+
.map((entry) => {
|
|
109
|
+
return __limitedParseDouble(entry);
|
|
110
|
+
});
|
|
111
|
+
return retVal;
|
|
112
|
+
};
|
|
62
113
|
const deserializeMetadata = (output) => ({
|
|
63
114
|
httpStatusCode: output.statusCode,
|
|
64
115
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { BatchGetMetricsCommandInput, BatchGetMetricsCommandOutput } from "./commands/BatchGetMetricsCommand";
|
|
2
3
|
import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "./commands/BatchPutMetricsCommand";
|
|
3
4
|
import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
|
|
4
5
|
export interface SageMakerMetrics {
|
|
6
|
+
/**
|
|
7
|
+
* @see {@link BatchGetMetricsCommand}
|
|
8
|
+
*/
|
|
9
|
+
batchGetMetrics(args: BatchGetMetricsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetMetricsCommandOutput>;
|
|
10
|
+
batchGetMetrics(args: BatchGetMetricsCommandInput, cb: (err: any, data?: BatchGetMetricsCommandOutput) => void): void;
|
|
11
|
+
batchGetMetrics(args: BatchGetMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetMetricsCommandOutput) => void): void;
|
|
5
12
|
/**
|
|
6
13
|
* @see {@link BatchPutMetricsCommand}
|
|
7
14
|
*/
|
|
@@ -7,6 +7,7 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
|
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { BatchGetMetricsCommandInput, BatchGetMetricsCommandOutput } from "./commands/BatchGetMetricsCommand";
|
|
10
11
|
import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "./commands/BatchPutMetricsCommand";
|
|
11
12
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
12
13
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -14,11 +15,11 @@ export { __Client };
|
|
|
14
15
|
/**
|
|
15
16
|
* @public
|
|
16
17
|
*/
|
|
17
|
-
export type ServiceInputTypes = BatchPutMetricsCommandInput;
|
|
18
|
+
export type ServiceInputTypes = BatchGetMetricsCommandInput | BatchPutMetricsCommandInput;
|
|
18
19
|
/**
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
21
|
-
export type ServiceOutputTypes = BatchPutMetricsCommandOutput;
|
|
22
|
+
export type ServiceOutputTypes = BatchGetMetricsCommandOutput | BatchPutMetricsCommandOutput;
|
|
22
23
|
/**
|
|
23
24
|
* @public
|
|
24
25
|
*/
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BatchGetMetricsRequest, BatchGetMetricsResponse } from "../models/models_0";
|
|
4
|
+
import { SageMakerMetricsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerMetricsClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetMetricsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetMetricsCommandInput extends BatchGetMetricsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetMetricsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetMetricsCommandOutput extends BatchGetMetricsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchGetMetricsCommand_base: {
|
|
25
|
+
new (input: BatchGetMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetMetricsCommandInput, BatchGetMetricsCommandOutput, SageMakerMetricsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: BatchGetMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetMetricsCommandInput, BatchGetMetricsCommandOutput, SageMakerMetricsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Used to retrieve training metrics from SageMaker.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SageMakerMetricsClient, BatchGetMetricsCommand } from "@aws-sdk/client-sagemaker-metrics"; // ES Modules import
|
|
35
|
+
* // const { SageMakerMetricsClient, BatchGetMetricsCommand } = require("@aws-sdk/client-sagemaker-metrics"); // CommonJS import
|
|
36
|
+
* const client = new SageMakerMetricsClient(config);
|
|
37
|
+
* const input = { // BatchGetMetricsRequest
|
|
38
|
+
* MetricQueries: [ // MetricQueryList // required
|
|
39
|
+
* { // MetricQuery
|
|
40
|
+
* MetricName: "STRING_VALUE", // required
|
|
41
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
42
|
+
* MetricStat: "Min" || "Max" || "Avg" || "Count" || "StdDev" || "Last", // required
|
|
43
|
+
* Period: "OneMinute" || "FiveMinute" || "OneHour" || "IterationNumber", // required
|
|
44
|
+
* XAxisType: "IterationNumber" || "Timestamp", // required
|
|
45
|
+
* Start: Number("long"),
|
|
46
|
+
* End: Number("long"),
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* };
|
|
50
|
+
* const command = new BatchGetMetricsCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // BatchGetMetricsResponse
|
|
53
|
+
* // MetricQueryResults: [ // MetricQueryResultList
|
|
54
|
+
* // { // MetricQueryResult
|
|
55
|
+
* // Status: "Complete" || "Truncated" || "InternalError" || "ValidationError", // required
|
|
56
|
+
* // Message: "STRING_VALUE",
|
|
57
|
+
* // XAxisValues: [ // XAxisValues // required
|
|
58
|
+
* // Number("long"),
|
|
59
|
+
* // ],
|
|
60
|
+
* // MetricValues: [ // MetricValues // required
|
|
61
|
+
* // Number("double"),
|
|
62
|
+
* // ],
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param BatchGetMetricsCommandInput - {@link BatchGetMetricsCommandInput}
|
|
70
|
+
* @returns {@link BatchGetMetricsCommandOutput}
|
|
71
|
+
* @see {@link BatchGetMetricsCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link BatchGetMetricsCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link SageMakerMetricsClientResolvedConfig | config} for SageMakerMetricsClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link SageMakerMetricsServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from SageMakerMetrics service.</p>
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class BatchGetMetricsCommand extends BatchGetMetricsCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: BatchGetMetricsRequest;
|
|
85
|
+
output: BatchGetMetricsResponse;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: BatchGetMetricsCommandInput;
|
|
89
|
+
output: BatchGetMetricsCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BatchPutMetricsRequest, BatchPutMetricsResponse } from "../models/models_0";
|
|
4
|
-
import { SageMakerMetricsClientResolvedConfig } from "../SageMakerMetricsClient";
|
|
4
|
+
import { SageMakerMetricsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerMetricsClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,13 +22,12 @@ export interface BatchPutMetricsCommandInput extends BatchPutMetricsRequest {
|
|
|
22
22
|
export interface BatchPutMetricsCommandOutput extends BatchPutMetricsResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const BatchPutMetricsCommand_base: {
|
|
25
|
-
new (input: BatchPutMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput, SageMakerMetricsClientResolvedConfig,
|
|
26
|
-
new (__0_0: BatchPutMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput, SageMakerMetricsClientResolvedConfig,
|
|
25
|
+
new (input: BatchPutMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput, SageMakerMetricsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: BatchPutMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput, SageMakerMetricsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Used to ingest training metrics into SageMaker. These metrics can be visualized in SageMaker Studio
|
|
31
|
-
* retrieved with the <code>GetMetrics</code> API.
|
|
30
|
+
* <p>Used to ingest training metrics into SageMaker. These metrics can be visualized in SageMaker Studio.
|
|
32
31
|
* </p>
|
|
33
32
|
* @example
|
|
34
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -72,4 +71,15 @@ declare const BatchPutMetricsCommand_base: {
|
|
|
72
71
|
* @public
|
|
73
72
|
*/
|
|
74
73
|
export declare class BatchPutMetricsCommand extends BatchPutMetricsCommand_base {
|
|
74
|
+
/** @internal type navigation helper, not in runtime. */
|
|
75
|
+
protected static __types: {
|
|
76
|
+
api: {
|
|
77
|
+
input: BatchPutMetricsRequest;
|
|
78
|
+
output: BatchPutMetricsResponse;
|
|
79
|
+
};
|
|
80
|
+
sdk: {
|
|
81
|
+
input: BatchPutMetricsCommandInput;
|
|
82
|
+
output: BatchPutMetricsCommandOutput;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
75
85
|
}
|
|
@@ -1,3 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const MetricStatistic: {
|
|
6
|
+
readonly AVG: "Avg";
|
|
7
|
+
readonly COUNT: "Count";
|
|
8
|
+
readonly LAST: "Last";
|
|
9
|
+
readonly MAX: "Max";
|
|
10
|
+
readonly MIN: "Min";
|
|
11
|
+
readonly STD_DEV: "StdDev";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export type MetricStatistic = (typeof MetricStatistic)[keyof typeof MetricStatistic];
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
* @enum
|
|
20
|
+
*/
|
|
21
|
+
export declare const Period: {
|
|
22
|
+
readonly FIVE_MINUTE: "FiveMinute";
|
|
23
|
+
readonly ITERATION_NUMBER: "IterationNumber";
|
|
24
|
+
readonly ONE_HOUR: "OneHour";
|
|
25
|
+
readonly ONE_MINUTE: "OneMinute";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export type Period = (typeof Period)[keyof typeof Period];
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
* @enum
|
|
34
|
+
*/
|
|
35
|
+
export declare const XAxisType: {
|
|
36
|
+
readonly ITERATION_NUMBER: "IterationNumber";
|
|
37
|
+
readonly TIMESTAMP: "Timestamp";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export type XAxisType = (typeof XAxisType)[keyof typeof XAxisType];
|
|
43
|
+
/**
|
|
44
|
+
* <p>Specifies a query to retrieve training metrics from SageMaker.</p>
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export interface MetricQuery {
|
|
48
|
+
/**
|
|
49
|
+
* <p>The name of the metric to retrieve.</p>
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
MetricName: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* <p>The ARN of the SageMaker resource to retrieve metrics for.</p>
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
ResourceArn: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* <p>The metrics stat type of metrics to retrieve.</p>
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
MetricStat: MetricStatistic | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* <p>The time period of metrics to retrieve.</p>
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
Period: Period | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* <p>The x-axis type of metrics to retrieve.</p>
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
XAxisType: XAxisType | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* <p>The start time of metrics to retrieve.</p>
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
Start?: number;
|
|
78
|
+
/**
|
|
79
|
+
* <p>The end time of metrics to retrieve.</p>
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
End?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export interface BatchGetMetricsRequest {
|
|
88
|
+
/**
|
|
89
|
+
* <p>Queries made to retrieve training metrics from SageMaker.</p>
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
MetricQueries: MetricQuery[] | undefined;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @public
|
|
96
|
+
* @enum
|
|
97
|
+
*/
|
|
98
|
+
export declare const MetricQueryResultStatus: {
|
|
99
|
+
readonly COMPLETE: "Complete";
|
|
100
|
+
readonly INTERNAL_ERROR: "InternalError";
|
|
101
|
+
readonly TRUNCATED: "Truncated";
|
|
102
|
+
readonly VALIDATION_ERROR: "ValidationError";
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
export type MetricQueryResultStatus = (typeof MetricQueryResultStatus)[keyof typeof MetricQueryResultStatus];
|
|
108
|
+
/**
|
|
109
|
+
* <p>The result of a query to retrieve training metrics from SageMaker.</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export interface MetricQueryResult {
|
|
113
|
+
/**
|
|
114
|
+
* <p>The status of the metric query.</p>
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
Status: MetricQueryResultStatus | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* <p>A message describing the status of the metric query.</p>
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
Message?: string;
|
|
123
|
+
/**
|
|
124
|
+
* <p>The values for the x-axis of the metrics.</p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
XAxisValues: number[] | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* <p>The metric values retrieved by the query.</p>
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
MetricValues: number[] | undefined;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export interface BatchGetMetricsResponse {
|
|
138
|
+
/**
|
|
139
|
+
* <p>The results of a query to retrieve training metrics from SageMaker.</p>
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
MetricQueryResults?: MetricQueryResult[];
|
|
143
|
+
}
|
|
1
144
|
/**
|
|
2
145
|
* <p>The raw metric data to associate with the resource.</p>
|
|
3
146
|
* @public
|
|
@@ -30,7 +173,7 @@ export interface RawMetricData {
|
|
|
30
173
|
*/
|
|
31
174
|
export interface BatchPutMetricsRequest {
|
|
32
175
|
/**
|
|
33
|
-
* <p>The name of the Trial Component to associate with the metrics.</p>
|
|
176
|
+
* <p>The name of the Trial Component to associate with the metrics. The Trial Component name must be entirely lowercase.</p>
|
|
34
177
|
* @public
|
|
35
178
|
*/
|
|
36
179
|
TrialComponentName: string | undefined;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
+
import { BatchGetMetricsCommandInput, BatchGetMetricsCommandOutput } from "../commands/BatchGetMetricsCommand";
|
|
3
4
|
import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "../commands/BatchPutMetricsCommand";
|
|
5
|
+
/**
|
|
6
|
+
* serializeAws_restJson1BatchGetMetricsCommand
|
|
7
|
+
*/
|
|
8
|
+
export declare const se_BatchGetMetricsCommand: (input: BatchGetMetricsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
4
9
|
/**
|
|
5
10
|
* serializeAws_restJson1BatchPutMetricsCommand
|
|
6
11
|
*/
|
|
7
12
|
export declare const se_BatchPutMetricsCommand: (input: BatchPutMetricsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
+
/**
|
|
14
|
+
* deserializeAws_restJson1BatchGetMetricsCommand
|
|
15
|
+
*/
|
|
16
|
+
export declare const de_BatchGetMetricsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetMetricsCommandOutput>;
|
|
8
17
|
/**
|
|
9
18
|
* deserializeAws_restJson1BatchPutMetricsCommand
|
|
10
19
|
*/
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
BatchGetMetricsCommandInput,
|
|
4
|
+
BatchGetMetricsCommandOutput,
|
|
5
|
+
} from "./commands/BatchGetMetricsCommand";
|
|
2
6
|
import {
|
|
3
7
|
BatchPutMetricsCommandInput,
|
|
4
8
|
BatchPutMetricsCommandOutput,
|
|
5
9
|
} from "./commands/BatchPutMetricsCommand";
|
|
6
10
|
import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
|
|
7
11
|
export interface SageMakerMetrics {
|
|
12
|
+
batchGetMetrics(
|
|
13
|
+
args: BatchGetMetricsCommandInput,
|
|
14
|
+
options?: __HttpHandlerOptions
|
|
15
|
+
): Promise<BatchGetMetricsCommandOutput>;
|
|
16
|
+
batchGetMetrics(
|
|
17
|
+
args: BatchGetMetricsCommandInput,
|
|
18
|
+
cb: (err: any, data?: BatchGetMetricsCommandOutput) => void
|
|
19
|
+
): void;
|
|
20
|
+
batchGetMetrics(
|
|
21
|
+
args: BatchGetMetricsCommandInput,
|
|
22
|
+
options: __HttpHandlerOptions,
|
|
23
|
+
cb: (err: any, data?: BatchGetMetricsCommandOutput) => void
|
|
24
|
+
): void;
|
|
8
25
|
batchPutMetrics(
|
|
9
26
|
args: BatchPutMetricsCommandInput,
|
|
10
27
|
options?: __HttpHandlerOptions
|
|
@@ -45,6 +45,10 @@ import {
|
|
|
45
45
|
HttpAuthSchemeInputConfig,
|
|
46
46
|
HttpAuthSchemeResolvedConfig,
|
|
47
47
|
} from "./auth/httpAuthSchemeProvider";
|
|
48
|
+
import {
|
|
49
|
+
BatchGetMetricsCommandInput,
|
|
50
|
+
BatchGetMetricsCommandOutput,
|
|
51
|
+
} from "./commands/BatchGetMetricsCommand";
|
|
48
52
|
import {
|
|
49
53
|
BatchPutMetricsCommandInput,
|
|
50
54
|
BatchPutMetricsCommandOutput,
|
|
@@ -56,8 +60,12 @@ import {
|
|
|
56
60
|
} from "./endpoint/EndpointParameters";
|
|
57
61
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
58
62
|
export { __Client };
|
|
59
|
-
export type ServiceInputTypes =
|
|
60
|
-
|
|
63
|
+
export type ServiceInputTypes =
|
|
64
|
+
| BatchGetMetricsCommandInput
|
|
65
|
+
| BatchPutMetricsCommandInput;
|
|
66
|
+
export type ServiceOutputTypes =
|
|
67
|
+
| BatchGetMetricsCommandOutput
|
|
68
|
+
| BatchPutMetricsCommandOutput;
|
|
61
69
|
export interface ClientDefaults
|
|
62
70
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
63
71
|
requestHandler?: __HttpHandlerUserInput;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BatchGetMetricsRequest,
|
|
5
|
+
BatchGetMetricsResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
SageMakerMetricsClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../SageMakerMetricsClient";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface BatchGetMetricsCommandInput extends BatchGetMetricsRequest {}
|
|
15
|
+
export interface BatchGetMetricsCommandOutput
|
|
16
|
+
extends BatchGetMetricsResponse,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const BatchGetMetricsCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: BatchGetMetricsCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
BatchGetMetricsCommandInput,
|
|
23
|
+
BatchGetMetricsCommandOutput,
|
|
24
|
+
SageMakerMetricsClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: BatchGetMetricsCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
BatchGetMetricsCommandInput,
|
|
32
|
+
BatchGetMetricsCommandOutput,
|
|
33
|
+
SageMakerMetricsClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class BatchGetMetricsCommand extends BatchGetMetricsCommand_base {
|
|
40
|
+
protected static __types: {
|
|
41
|
+
api: {
|
|
42
|
+
input: BatchGetMetricsRequest;
|
|
43
|
+
output: BatchGetMetricsResponse;
|
|
44
|
+
};
|
|
45
|
+
sdk: {
|
|
46
|
+
input: BatchGetMetricsCommandInput;
|
|
47
|
+
output: BatchGetMetricsCommandOutput;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -4,7 +4,11 @@ import {
|
|
|
4
4
|
BatchPutMetricsRequest,
|
|
5
5
|
BatchPutMetricsResponse,
|
|
6
6
|
} from "../models/models_0";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
SageMakerMetricsClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../SageMakerMetricsClient";
|
|
8
12
|
export { __MetadataBearer };
|
|
9
13
|
export { $Command };
|
|
10
14
|
export interface BatchPutMetricsCommandInput extends BatchPutMetricsRequest {}
|
|
@@ -18,8 +22,8 @@ declare const BatchPutMetricsCommand_base: {
|
|
|
18
22
|
BatchPutMetricsCommandInput,
|
|
19
23
|
BatchPutMetricsCommandOutput,
|
|
20
24
|
SageMakerMetricsClientResolvedConfig,
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
23
27
|
>;
|
|
24
28
|
new (
|
|
25
29
|
__0_0: BatchPutMetricsCommandInput
|
|
@@ -27,9 +31,20 @@ declare const BatchPutMetricsCommand_base: {
|
|
|
27
31
|
BatchPutMetricsCommandInput,
|
|
28
32
|
BatchPutMetricsCommandOutput,
|
|
29
33
|
SageMakerMetricsClientResolvedConfig,
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
32
36
|
>;
|
|
33
37
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
34
38
|
};
|
|
35
|
-
export declare class BatchPutMetricsCommand extends BatchPutMetricsCommand_base {
|
|
39
|
+
export declare class BatchPutMetricsCommand extends BatchPutMetricsCommand_base {
|
|
40
|
+
protected static __types: {
|
|
41
|
+
api: {
|
|
42
|
+
input: BatchPutMetricsRequest;
|
|
43
|
+
output: BatchPutMetricsResponse;
|
|
44
|
+
};
|
|
45
|
+
sdk: {
|
|
46
|
+
input: BatchPutMetricsCommandInput;
|
|
47
|
+
output: BatchPutMetricsCommandOutput;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -1,3 +1,54 @@
|
|
|
1
|
+
export declare const MetricStatistic: {
|
|
2
|
+
readonly AVG: "Avg";
|
|
3
|
+
readonly COUNT: "Count";
|
|
4
|
+
readonly LAST: "Last";
|
|
5
|
+
readonly MAX: "Max";
|
|
6
|
+
readonly MIN: "Min";
|
|
7
|
+
readonly STD_DEV: "StdDev";
|
|
8
|
+
};
|
|
9
|
+
export type MetricStatistic =
|
|
10
|
+
(typeof MetricStatistic)[keyof typeof MetricStatistic];
|
|
11
|
+
export declare const Period: {
|
|
12
|
+
readonly FIVE_MINUTE: "FiveMinute";
|
|
13
|
+
readonly ITERATION_NUMBER: "IterationNumber";
|
|
14
|
+
readonly ONE_HOUR: "OneHour";
|
|
15
|
+
readonly ONE_MINUTE: "OneMinute";
|
|
16
|
+
};
|
|
17
|
+
export type Period = (typeof Period)[keyof typeof Period];
|
|
18
|
+
export declare const XAxisType: {
|
|
19
|
+
readonly ITERATION_NUMBER: "IterationNumber";
|
|
20
|
+
readonly TIMESTAMP: "Timestamp";
|
|
21
|
+
};
|
|
22
|
+
export type XAxisType = (typeof XAxisType)[keyof typeof XAxisType];
|
|
23
|
+
export interface MetricQuery {
|
|
24
|
+
MetricName: string | undefined;
|
|
25
|
+
ResourceArn: string | undefined;
|
|
26
|
+
MetricStat: MetricStatistic | undefined;
|
|
27
|
+
Period: Period | undefined;
|
|
28
|
+
XAxisType: XAxisType | undefined;
|
|
29
|
+
Start?: number;
|
|
30
|
+
End?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface BatchGetMetricsRequest {
|
|
33
|
+
MetricQueries: MetricQuery[] | undefined;
|
|
34
|
+
}
|
|
35
|
+
export declare const MetricQueryResultStatus: {
|
|
36
|
+
readonly COMPLETE: "Complete";
|
|
37
|
+
readonly INTERNAL_ERROR: "InternalError";
|
|
38
|
+
readonly TRUNCATED: "Truncated";
|
|
39
|
+
readonly VALIDATION_ERROR: "ValidationError";
|
|
40
|
+
};
|
|
41
|
+
export type MetricQueryResultStatus =
|
|
42
|
+
(typeof MetricQueryResultStatus)[keyof typeof MetricQueryResultStatus];
|
|
43
|
+
export interface MetricQueryResult {
|
|
44
|
+
Status: MetricQueryResultStatus | undefined;
|
|
45
|
+
Message?: string;
|
|
46
|
+
XAxisValues: number[] | undefined;
|
|
47
|
+
MetricValues: number[] | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface BatchGetMetricsResponse {
|
|
50
|
+
MetricQueryResults?: MetricQueryResult[];
|
|
51
|
+
}
|
|
1
52
|
export interface RawMetricData {
|
|
2
53
|
MetricName: string | undefined;
|
|
3
54
|
Timestamp: Date | undefined;
|
|
@@ -3,14 +3,26 @@ import {
|
|
|
3
3
|
HttpResponse as __HttpResponse,
|
|
4
4
|
} from "@smithy/protocol-http";
|
|
5
5
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
+
import {
|
|
7
|
+
BatchGetMetricsCommandInput,
|
|
8
|
+
BatchGetMetricsCommandOutput,
|
|
9
|
+
} from "../commands/BatchGetMetricsCommand";
|
|
6
10
|
import {
|
|
7
11
|
BatchPutMetricsCommandInput,
|
|
8
12
|
BatchPutMetricsCommandOutput,
|
|
9
13
|
} from "../commands/BatchPutMetricsCommand";
|
|
14
|
+
export declare const se_BatchGetMetricsCommand: (
|
|
15
|
+
input: BatchGetMetricsCommandInput,
|
|
16
|
+
context: __SerdeContext
|
|
17
|
+
) => Promise<__HttpRequest>;
|
|
10
18
|
export declare const se_BatchPutMetricsCommand: (
|
|
11
19
|
input: BatchPutMetricsCommandInput,
|
|
12
20
|
context: __SerdeContext
|
|
13
21
|
) => Promise<__HttpRequest>;
|
|
22
|
+
export declare const de_BatchGetMetricsCommand: (
|
|
23
|
+
output: __HttpResponse,
|
|
24
|
+
context: __SerdeContext
|
|
25
|
+
) => Promise<BatchGetMetricsCommandOutput>;
|
|
14
26
|
export declare const de_BatchPutMetricsCommand: (
|
|
15
27
|
output: __HttpResponse,
|
|
16
28
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-metrics",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Metrics Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.656.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sagemaker-metrics",
|
|
@@ -20,43 +20,43 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.4.
|
|
38
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
39
|
-
"@smithy/hash-node": "^3.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.1.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
-
"@smithy/middleware-serde": "^3.0.
|
|
45
|
-
"@smithy/middleware-stack": "^3.0.
|
|
46
|
-
"@smithy/node-config-provider": "^3.1.
|
|
47
|
-
"@smithy/node-http-handler": "^3.2.
|
|
48
|
-
"@smithy/protocol-http": "^4.1.
|
|
49
|
-
"@smithy/smithy-client": "^3.3.
|
|
50
|
-
"@smithy/types": "^3.4.
|
|
51
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.654.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.654.0",
|
|
25
|
+
"@aws-sdk/core": "3.654.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.654.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.654.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.654.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.654.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.654.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.654.0",
|
|
32
|
+
"@aws-sdk/types": "3.654.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.654.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.654.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.654.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.8",
|
|
37
|
+
"@smithy/core": "^2.4.3",
|
|
38
|
+
"@smithy/fetch-http-handler": "^3.2.7",
|
|
39
|
+
"@smithy/hash-node": "^3.0.6",
|
|
40
|
+
"@smithy/invalid-dependency": "^3.0.6",
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.8",
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.1.3",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.18",
|
|
44
|
+
"@smithy/middleware-serde": "^3.0.6",
|
|
45
|
+
"@smithy/middleware-stack": "^3.0.6",
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.7",
|
|
47
|
+
"@smithy/node-http-handler": "^3.2.2",
|
|
48
|
+
"@smithy/protocol-http": "^4.1.3",
|
|
49
|
+
"@smithy/smithy-client": "^3.3.2",
|
|
50
|
+
"@smithy/types": "^3.4.2",
|
|
51
|
+
"@smithy/url-parser": "^3.0.6",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.1.
|
|
58
|
-
"@smithy/util-middleware": "^3.0.
|
|
59
|
-
"@smithy/util-retry": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.18",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.18",
|
|
57
|
+
"@smithy/util-endpoints": "^2.1.2",
|
|
58
|
+
"@smithy/util-middleware": "^3.0.6",
|
|
59
|
+
"@smithy/util-retry": "^3.0.6",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|