TargetTrackingConfiguration.fromJson constructor
TargetTrackingConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TargetTrackingConfiguration.fromJson(Map<String, dynamic> json) {
return TargetTrackingConfiguration(
targetValue: json['TargetValue'] as double,
customizedScalingMetricSpecification:
json['CustomizedScalingMetricSpecification'] != null
? CustomizedScalingMetricSpecification.fromJson(
json['CustomizedScalingMetricSpecification']
as Map<String, dynamic>)
: null,
disableScaleIn: json['DisableScaleIn'] as bool?,
estimatedInstanceWarmup: json['EstimatedInstanceWarmup'] as int?,
predefinedScalingMetricSpecification:
json['PredefinedScalingMetricSpecification'] != null
? PredefinedScalingMetricSpecification.fromJson(
json['PredefinedScalingMetricSpecification']
as Map<String, dynamic>)
: null,
scaleInCooldown: json['ScaleInCooldown'] as int?,
scaleOutCooldown: json['ScaleOutCooldown'] as int?,
);
}