Skip to content

MetricsEndpoint

Source code in docs_src/capo_sagemaker/types/metrics_endpoint.py
class MetricsEndpoint(TypedDict, closed=True):
    metrics_endpoint_path: NotRequired[
        "capo_sagemaker.types.metrics_endpoint_path.MetricsEndpointPath"
    ]
    """<p>The path to the metrics endpoint exposed by the container. For example, <code>/metrics</code> or <code>/server/metrics</code>. The path must start with <code>/</code> and can contain alphanumeric characters, forward slashes, underscores, hyphens, and periods. Maximum length is 256 characters. If not specified, defaults to <code>/metrics</code>.</p>"""
    metric_publish_frequency_in_seconds: NotRequired[
        "capo_sagemaker.types.metric_publish_frequency_in_seconds.MetricPublishFrequencyInSeconds"
    ]
    """<p>The interval, in seconds, at which container metrics scraped from the endpoint are published to Amazon CloudWatch. Valid values: <code>10</code>, <code>30</code>, <code>60</code>, <code>120</code>, <code>180</code>, <code>240</code>, <code>300</code>. Defaults to <code>60</code>.</p>"""

metric_publish_frequency_in_seconds instance-attribute

metric_publish_frequency_in_seconds: NotRequired[MetricPublishFrequencyInSeconds]

The interval, in seconds, at which container metrics scraped from the endpoint are published to Amazon CloudWatch. Valid values: 10, 30, 60, 120, 180, 240, 300. Defaults to 60.

metrics_endpoint_path instance-attribute

metrics_endpoint_path: NotRequired[MetricsEndpointPath]

The path to the metrics endpoint exposed by the container. For example, /metrics or /server/metrics. The path must start with / and can contain alphanumeric characters, forward slashes, underscores, hyphens, and periods. Maximum length is 256 characters. If not specified, defaults to /metrics.