@aws-sdk/client-sagemaker-metrics 3.315.0 → 3.316.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.
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SageMakerMetrics = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const BatchPutMetricsCommand_1 = require("./commands/BatchPutMetricsCommand");
|
|
5
6
|
const SageMakerMetricsClient_1 = require("./SageMakerMetricsClient");
|
|
7
|
+
const commands = {
|
|
8
|
+
BatchPutMetricsCommand: BatchPutMetricsCommand_1.BatchPutMetricsCommand,
|
|
9
|
+
};
|
|
6
10
|
class SageMakerMetrics extends SageMakerMetricsClient_1.SageMakerMetricsClient {
|
|
7
|
-
batchPutMetrics(args, optionsOrCb, cb) {
|
|
8
|
-
const command = new BatchPutMetricsCommand_1.BatchPutMetricsCommand(args);
|
|
9
|
-
if (typeof optionsOrCb === "function") {
|
|
10
|
-
this.send(command, optionsOrCb);
|
|
11
|
-
}
|
|
12
|
-
else if (typeof cb === "function") {
|
|
13
|
-
if (typeof optionsOrCb !== "object")
|
|
14
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
15
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
11
|
}
|
|
22
12
|
exports.SageMakerMetrics = SageMakerMetrics;
|
|
13
|
+
(0, smithy_client_1.createAggregatedClient)(commands, SageMakerMetrics);
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { BatchPutMetricsCommand, } from "./commands/BatchPutMetricsCommand";
|
|
2
3
|
import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
|
|
4
|
+
const commands = {
|
|
5
|
+
BatchPutMetricsCommand,
|
|
6
|
+
};
|
|
3
7
|
export class SageMakerMetrics extends SageMakerMetricsClient {
|
|
4
|
-
batchPutMetrics(args, optionsOrCb, cb) {
|
|
5
|
-
const command = new BatchPutMetricsCommand(args);
|
|
6
|
-
if (typeof optionsOrCb === "function") {
|
|
7
|
-
this.send(command, optionsOrCb);
|
|
8
|
-
}
|
|
9
|
-
else if (typeof cb === "function") {
|
|
10
|
-
if (typeof optionsOrCb !== "object")
|
|
11
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
12
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
8
|
}
|
|
9
|
+
createAggregatedClient(commands, SageMakerMetrics);
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "./commands/BatchPutMetricsCommand";
|
|
3
3
|
import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
|
|
4
|
+
export interface SageMakerMetrics {
|
|
5
|
+
/**
|
|
6
|
+
* @see {@link BatchPutMetricsCommand}
|
|
7
|
+
*/
|
|
8
|
+
batchPutMetrics(args: BatchPutMetricsCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutMetricsCommandOutput>;
|
|
9
|
+
batchPutMetrics(args: BatchPutMetricsCommandInput, cb: (err: any, data?: BatchPutMetricsCommandOutput) => void): void;
|
|
10
|
+
batchPutMetrics(args: BatchPutMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutMetricsCommandOutput) => void): void;
|
|
11
|
+
}
|
|
4
12
|
/**
|
|
5
13
|
* @public
|
|
6
14
|
* <p>Contains all data plane API operations and data types for Amazon SageMaker Metrics.
|
|
@@ -13,14 +21,5 @@ import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
|
|
|
13
21
|
* </li>
|
|
14
22
|
* </ul>
|
|
15
23
|
*/
|
|
16
|
-
export declare class SageMakerMetrics extends SageMakerMetricsClient {
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
* <p>Used to ingest training metrics into SageMaker. These metrics can be visualized in SageMaker Studio and
|
|
20
|
-
* retrieved with the <code>GetMetrics</code> API.
|
|
21
|
-
* </p>
|
|
22
|
-
*/
|
|
23
|
-
batchPutMetrics(args: BatchPutMetricsCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutMetricsCommandOutput>;
|
|
24
|
-
batchPutMetrics(args: BatchPutMetricsCommandInput, cb: (err: any, data?: BatchPutMetricsCommandOutput) => void): void;
|
|
25
|
-
batchPutMetrics(args: BatchPutMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutMetricsCommandOutput) => void): void;
|
|
24
|
+
export declare class SageMakerMetrics extends SageMakerMetricsClient implements SageMakerMetrics {
|
|
26
25
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
BatchPutMetricsCommandOutput,
|
|
5
5
|
} from "./commands/BatchPutMetricsCommand";
|
|
6
6
|
import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
|
|
7
|
-
export
|
|
7
|
+
export interface SageMakerMetrics {
|
|
8
8
|
batchPutMetrics(
|
|
9
9
|
args: BatchPutMetricsCommandInput,
|
|
10
10
|
options?: __HttpHandlerOptions
|
|
@@ -19,3 +19,6 @@ export declare class SageMakerMetrics extends SageMakerMetricsClient {
|
|
|
19
19
|
cb: (err: any, data?: BatchPutMetricsCommandOutput) => void
|
|
20
20
|
): void;
|
|
21
21
|
}
|
|
22
|
+
export declare class SageMakerMetrics
|
|
23
|
+
extends SageMakerMetricsClient
|
|
24
|
+
implements SageMakerMetrics {}
|
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.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|