CustomMetricResponse constructor
const
CustomMetricResponse({})
Creates a new CustomMetricResponse.
filter Allows filtering on the metric's fields.
metricName The name of the metric.
singleInstanceAssignment May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
targetType The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
targetUtilization The target value for the metric.
Implementation
const CustomMetricResponse({
required this.filter,
required this.metricName,
required this.singleInstanceAssignment,
required this.targetType,
required this.targetUtilization,
});