Interface CfnService.MonitoringConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnService.MonitoringConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnService
@Stability(Stable)
public static interface CfnService.MonitoringConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The optional monitoring configuration for a service, which defines the resolution for the service-level
CPUUtilization and MemoryUtilization Amazon CloudWatch metrics.
When not specified, Amazon ECS uses the default resolution of 60 seconds.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
MonitoringConfigurationProperty monitoringConfigurationProperty = MonitoringConfigurationProperty.builder()
.metricConfigurations(List.of(MetricConfigurationProperty.builder()
.metricNames(List.of("metricNames"))
.resolutionSeconds(123)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnService.MonitoringConfigurationPropertystatic final classAn implementation forCfnService.MonitoringConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The list of metric configurations for the service monitoring.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricConfigurations
The list of metric configurations for the service monitoring.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnService.MetricConfigurationProperty>- See Also:
-
builder
-