Class CfnInferenceComponentPropsMixin.MetricsEndpointProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceComponentPropsMixin.MetricsEndpointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.MetricsEndpointProperty>
- Enclosing interface:
CfnInferenceComponentPropsMixin.MetricsEndpointProperty
@Stability(Stable)
public static final class CfnInferenceComponentPropsMixin.MetricsEndpointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.MetricsEndpointProperty>
A builder for
CfnInferenceComponentPropsMixin.MetricsEndpointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricPublishFrequencyInSeconds(Number metricPublishFrequencyInSeconds) metricsEndpointPath(String metricsEndpointPath)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricPublishFrequencyInSeconds
@Stability(Stable) public CfnInferenceComponentPropsMixin.MetricsEndpointProperty.Builder metricPublishFrequencyInSeconds(Number metricPublishFrequencyInSeconds) Sets the value ofCfnInferenceComponentPropsMixin.MetricsEndpointProperty.getMetricPublishFrequencyInSeconds()- Parameters:
metricPublishFrequencyInSeconds- 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.- Returns:
this
-
metricsEndpointPath
@Stability(Stable) public CfnInferenceComponentPropsMixin.MetricsEndpointProperty.Builder metricsEndpointPath(String metricsEndpointPath) - Parameters:
metricsEndpointPath- The path to the Prometheus formatted metrics endpoint exposed by the container.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.MetricsEndpointProperty>- Returns:
- a new instance of
CfnInferenceComponentPropsMixin.MetricsEndpointProperty - Throws:
NullPointerException- if any required attribute was not provided
-