interface MetricsEndpointProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnInferenceComponent.MetricsEndpointProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnInferenceComponent_MetricsEndpointProperty |
Java | software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.MetricsEndpointProperty |
Python | aws_cdk.aws_sagemaker.CfnInferenceComponent.MetricsEndpointProperty |
TypeScript | aws-cdk-lib » aws_sagemaker » CfnInferenceComponent » MetricsEndpointProperty |
A metrics endpoint exposed by the container.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const metricsEndpointProperty: sagemaker.CfnInferenceComponent.MetricsEndpointProperty = {
metricsEndpointPath: 'metricsEndpointPath',
// the properties below are optional
metricPublishFrequencyInSeconds: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| metrics | string | The path to the Prometheus formatted metrics endpoint exposed by the container. |
| metric | number | The interval, in seconds, at which container metrics scraped from the endpoint are published to Amazon CloudWatch. |
metricsEndpointPath
Type:
string
The path to the Prometheus formatted metrics endpoint exposed by the container.
metricPublishFrequencyInSeconds?
Type:
number
(optional)
The interval, in seconds, at which container metrics scraped from the endpoint are published to Amazon CloudWatch.
Valid values per the SageMaker API Reference are 10, 30, 60, 120, 180, 240 and 300; the service validates the value.

.NET
Go
Java
Python
TypeScript