SageMakerMetricsClient
Index > SageMakerMetrics > SageMakerMetricsClient
Auto-generated documentation for SageMakerMetrics type annotations stubs module mypy-boto3-sagemaker-metrics.
SageMakerMetricsClient
Type annotations and code completion for boto3.client("sagemaker-metrics")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_sagemaker_metrics.client import SageMakerMetricsClient
def get_sagemaker-metrics_client() -> SageMakerMetricsClient:
return Session().client("sagemaker-metrics")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("sagemaker-metrics").exceptions
structure.
client = boto3.client("sagemaker-metrics")
try:
do_something(client)
except (
client.ClientError,
) as e:
print(e)
from mypy_boto3_sagemaker_metrics.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
batch_put_metrics
Used to ingest training metrics into SageMaker.
Type annotations and code completion for boto3.client("sagemaker-metrics").batch_put_metrics
method.
boto3 documentation
def batch_put_metrics(
self,
*,
TrialComponentName: str,
MetricData: Sequence[RawMetricDataTypeDef], # (1)
) -> BatchPutMetricsResponseTypeDef: # (2)
...
kwargs: BatchPutMetricsRequestRequestTypeDef = { # (1)
"TrialComponentName": ...,
"MetricData": ...,
}
parent.batch_put_metrics(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("sagemaker-metrics").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("sagemaker-metrics").close
method.
boto3 documentation
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("sagemaker-metrics").generate_presigned_url
method.
boto3 documentation