MetricsConfigProperty Struct
Specifies the metrics that the endpoint publishes to Amazon CloudWatch, the frequency of publication, and whether to enable enhanced or detailed observability metrics.
| 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 metricsConfigProperty: sagemaker.CfnEndpointConfig.MetricsConfigProperty = {
enableDetailedObservability: false,
enableEnhancedMetrics: false,
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_config_property = sagemaker.CfnEndpointConfig.MetricsConfigProperty(
enable_detailed_observability=False,
enable_enhanced_metrics=False,
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.*;
MetricsConfigProperty metricsConfigProperty = MetricsConfigProperty.builder()
.enableDetailedObservability(false)
.enableEnhancedMetrics(false)
.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 metricsConfigProperty = new MetricsConfigProperty {
EnableDetailedObservability = false,
EnableEnhancedMetrics = false,
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"
metricsConfigProperty := &MetricsConfigProperty{
EnableDetailedObservability: jsii.Boolean(false),
EnableEnhancedMetrics: jsii.Boolean(false),
MetricPublishFrequencyInSeconds: jsii.Number(123),
}
Properties
enableDetailedObservabilityoptionalboolean | IResolvableenable_detailed_observabilityoptionaltyping.Union[bool, IResolvable]enableDetailedObservabilityoptionalBooleanEnableDetailedObservabilityoptionalboolEnableDetailedObservabilityoptionalinterface{} #Specifies whether to enable detailed observability for the endpoint.
When set to true, the endpoint publishes container-level inference metrics, per-GPU metrics, per-instance host metrics, and inference component placement metrics.
enableEnhancedMetricsoptionalboolean | IResolvableenable_enhanced_metricsoptionaltyping.Union[bool, IResolvable]enableEnhancedMetricsoptionalBooleanEnableEnhancedMetricsoptionalboolEnableEnhancedMetricsoptionalinterface{} #Specifies whether to enable enhanced metrics for the endpoint.
Enhanced metrics provide utilization and invocation data at instance and container granularity.
metricPublishFrequencyInSecondsoptionalnumbermetric_publish_frequency_in_secondsoptionalint | floatmetricPublishFrequencyInSecondsoptionalNumberMetricPublishFrequencyInSecondsoptionaldoubleMetricPublishFrequencyInSecondsoptional*float64 #The interval, in seconds, at which the endpoint publishes metrics to Amazon CloudWatch.
Valid values are 10, 30, 60, 120, 180, 240, and 300. The default is 60.