SageMakerMetricsClient#
Index > SageMakerMetrics > SageMakerMetricsClient
Auto-generated documentation for SageMakerMetrics type annotations stubs module types-aiobotocore-sagemaker-metrics.
SageMakerMetricsClient#
Type annotations and code completion for session.create_client("sagemaker-metrics")
boto3 documentation
SageMakerMetricsClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_sagemaker_metrics.client import SageMakerMetricsClient
session = get_session()
async with session.create_client("sagemaker-metrics") as client:
client: SageMakerMetricsClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("sagemaker-metrics").exceptions
structure.
SageMakerMetricsClient.exceptions usage example
async with session.create_client("sagemaker-metrics") as client:
try:
do_something(client)
except (
client.ClientError,
) as e:
print(e)
SageMakerMetricsClient usage type checking example
from types_aiobotocore_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 session.create_client("sagemaker-metrics").batch_put_metrics
method.
boto3 documentation
# batch_put_metrics method definition
await def batch_put_metrics(
self,
*,
TrialComponentName: str,
MetricData: Sequence[RawMetricDataTypeDef], # (1)
) -> BatchPutMetricsResponseTypeDef: # (2)
...
# batch_put_metrics method usage example with argument unpacking
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 session.create_client("sagemaker-metrics").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for session.create_client("sagemaker-metrics").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.create_client("sagemaker-metrics").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
__aenter__#
Type annotations and code completion for session.create_client("sagemaker-metrics").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> SageMakerMetricsClient:
...
__aexit__#
Type annotations and code completion for session.create_client("sagemaker-metrics").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...