MetricsEndpointProperty Struct
A metrics endpoint exposed by the container.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
metrics_endpoint_property = sagemaker.CfnInferenceComponent.MetricsEndpointProperty(
metrics_endpoint_path="metricsEndpointPath",
# the properties below are optional
metric_publish_frequency_in_seconds=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
MetricsEndpointProperty metricsEndpointProperty = MetricsEndpointProperty.builder()
.metricsEndpointPath("metricsEndpointPath")
// the properties below are optional
.metricPublishFrequencyInSeconds(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var metricsEndpointProperty = new MetricsEndpointProperty {
MetricsEndpointPath = "metricsEndpointPath",
// the properties below are optional
MetricPublishFrequencyInSeconds = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
metricsEndpointProperty := &MetricsEndpointProperty{
MetricsEndpointPath: jsii.String("metricsEndpointPath"),
// the properties below are optional
MetricPublishFrequencyInSeconds: jsii.Number(123),
}
Properties
metricPublishFrequencyInSecondsoptionalnumbermetric_publish_frequency_in_secondsoptionalint | floatmetricPublishFrequencyInSecondsoptionalNumberMetricPublishFrequencyInSecondsoptionaldoubleMetricPublishFrequencyInSecondsoptional*float64 #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.
metricsEndpointPathstringmetrics_endpoint_pathstrmetricsEndpointPathStringMetricsEndpointPathstringMetricsEndpointPath*string required #The path to the Prometheus formatted metrics endpoint exposed by the container.