Interface ContainerMetricsConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerMetricsConfig.Builder,,ContainerMetricsConfig> SdkBuilder<ContainerMetricsConfig.Builder,,ContainerMetricsConfig> SdkPojo
- Enclosing class:
ContainerMetricsConfig
-
Method Summary
Modifier and TypeMethodDescriptionmetricsEndpoints(Collection<MetricsEndpoint> metricsEndpoints) A list of metrics endpoints to scrape from the container.metricsEndpoints(Consumer<MetricsEndpoint.Builder>... metricsEndpoints) A list of metrics endpoints to scrape from the container.metricsEndpoints(MetricsEndpoint... metricsEndpoints) A list of metrics endpoints to scrape from the container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
metricsEndpoints
A list of metrics endpoints to scrape from the container. Each endpoint specifies the path where the container exposes Prometheus-formatted metrics and the frequency at which to publish them. You can specify a maximum of 1 endpoint.
- Parameters:
metricsEndpoints- A list of metrics endpoints to scrape from the container. Each endpoint specifies the path where the container exposes Prometheus-formatted metrics and the frequency at which to publish them. You can specify a maximum of 1 endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsEndpoints
A list of metrics endpoints to scrape from the container. Each endpoint specifies the path where the container exposes Prometheus-formatted metrics and the frequency at which to publish them. You can specify a maximum of 1 endpoint.
- Parameters:
metricsEndpoints- A list of metrics endpoints to scrape from the container. Each endpoint specifies the path where the container exposes Prometheus-formatted metrics and the frequency at which to publish them. You can specify a maximum of 1 endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsEndpoints
ContainerMetricsConfig.Builder metricsEndpoints(Consumer<MetricsEndpoint.Builder>... metricsEndpoints) A list of metrics endpoints to scrape from the container. Each endpoint specifies the path where the container exposes Prometheus-formatted metrics and the frequency at which to publish them. You can specify a maximum of 1 endpoint.
This is a convenience method that creates an instance of theMetricsEndpoint.Builderavoiding the need to create one manually viaMetricsEndpoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricsEndpoints(List<MetricsEndpoint>).- Parameters:
metricsEndpoints- a consumer that will call methods onMetricsEndpoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-