CustomizedScalingMetricSpecification class
Represents a CloudWatch metric of your choosing that can be used for dynamic scaling as part of a target tracking scaling policy.
To create your customized scaling metric specification:
- Add values for each required parameter from CloudWatch. You can use an existing metric, or a new metric that you create. To use your own metric, you must first publish the metric to CloudWatch. For more information, see Publish Custom Metrics in the Amazon CloudWatch User Guide.
- Choose a metric that changes proportionally with capacity. The value of the metric should increase or decrease in inverse proportion to the number of capacity units. That is, the value of the metric should decrease when capacity increases.
Constructors
-
CustomizedScalingMetricSpecification({required String metricName, required String namespace, required MetricStatistic statistic, List<
MetricDimension> ? dimensions, String? unit}) -
CustomizedScalingMetricSpecification.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
dimensions
→ List<
MetricDimension> ? -
The dimensions of the metric.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metricName → String
-
The name of the metric.
final
- namespace → String
-
The namespace of the metric.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statistic → MetricStatistic
-
The statistic of the metric.
final
- unit → String?
-
The unit of the metric.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited