com.aliyun.eas20210701.models.DescribeServiceAutoScalerResponseBody Maven / Gradle / Ivy
Show all versions of eas20210701 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.eas20210701.models;
import com.aliyun.tea.*;
public class DescribeServiceAutoScalerResponseBody extends TeaModel {
/**
* The additional information about the Autoscaler policy, such as the interval of triggering Autoscaler.
*
* example:
* {
* "behavior": {
* "scaleDown": {
* "stabilizationWindowSeconds": 150
* }
* }
* }
*/
@NameInMap("Behavior")
public java.util.Map behavior;
/**
* The metrics.
*/
@NameInMap("CurrentMetrics")
public java.util.List currentMetrics;
/**
* The maximum number of instances in the service.
*
* example:
* 8
*/
@NameInMap("MaxReplica")
public Integer maxReplica;
/**
* The minimum number of instances in the service.
*
* example:
* 3
*/
@NameInMap("MinReplica")
public Integer minReplica;
/**
* The request ID.
*
* example:
* 40325405-579C-4D82****
*/
@NameInMap("RequestId")
public String requestId;
/**
* The auto scaling policies.
*/
@NameInMap("ScaleStrategies")
public java.util.List scaleStrategies;
/**
* The service name.
*
* example:
* foo
*/
@NameInMap("ServiceName")
public String serviceName;
public static DescribeServiceAutoScalerResponseBody build(java.util.Map map) throws Exception {
DescribeServiceAutoScalerResponseBody self = new DescribeServiceAutoScalerResponseBody();
return TeaModel.build(map, self);
}
public DescribeServiceAutoScalerResponseBody setBehavior(java.util.Map behavior) {
this.behavior = behavior;
return this;
}
public java.util.Map getBehavior() {
return this.behavior;
}
public DescribeServiceAutoScalerResponseBody setCurrentMetrics(java.util.List currentMetrics) {
this.currentMetrics = currentMetrics;
return this;
}
public java.util.List getCurrentMetrics() {
return this.currentMetrics;
}
public DescribeServiceAutoScalerResponseBody setMaxReplica(Integer maxReplica) {
this.maxReplica = maxReplica;
return this;
}
public Integer getMaxReplica() {
return this.maxReplica;
}
public DescribeServiceAutoScalerResponseBody setMinReplica(Integer minReplica) {
this.minReplica = minReplica;
return this;
}
public Integer getMinReplica() {
return this.minReplica;
}
public DescribeServiceAutoScalerResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribeServiceAutoScalerResponseBody setScaleStrategies(java.util.List scaleStrategies) {
this.scaleStrategies = scaleStrategies;
return this;
}
public java.util.List getScaleStrategies() {
return this.scaleStrategies;
}
public DescribeServiceAutoScalerResponseBody setServiceName(String serviceName) {
this.serviceName = serviceName;
return this;
}
public String getServiceName() {
return this.serviceName;
}
public static class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends TeaModel {
/**
* The metric name. Valid values:
*
* - QPS
* - CPU
*
*
* example:
* qps
*/
@NameInMap("metricName")
public String metricName;
/**
* The service for which the metric is specified.
*
* example:
* demo_svc
*/
@NameInMap("service")
public String service;
/**
* The metric value.
*
* example:
* 10
*/
@NameInMap("value")
public Float value;
public static DescribeServiceAutoScalerResponseBodyCurrentMetrics build(java.util.Map map) throws Exception {
DescribeServiceAutoScalerResponseBodyCurrentMetrics self = new DescribeServiceAutoScalerResponseBodyCurrentMetrics();
return TeaModel.build(map, self);
}
public DescribeServiceAutoScalerResponseBodyCurrentMetrics setMetricName(String metricName) {
this.metricName = metricName;
return this;
}
public String getMetricName() {
return this.metricName;
}
public DescribeServiceAutoScalerResponseBodyCurrentMetrics setService(String service) {
this.service = service;
return this;
}
public String getService() {
return this.service;
}
public DescribeServiceAutoScalerResponseBodyCurrentMetrics setValue(Float value) {
this.value = value;
return this;
}
public Float getValue() {
return this.value;
}
}
public static class DescribeServiceAutoScalerResponseBodyScaleStrategies extends TeaModel {
/**
* The metric name. Valid values:
*
* - QPS: the queries per second (QPS) for an individual instance.
* - CPU: the CPU utilization.
*
*
* example:
* QPS
*/
@NameInMap("metricName")
public String metricName;
/**
* The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.
*
* example:
* demo_svc
*/
@NameInMap("service")
public String service;
/**
* The threshold of the metric that triggers auto scaling.
*
* - If you set metricName to QPS, scale-out is triggered when the average QPS for a single instance is greater than this threshold.
* - If you set metricName to CPU, scale-out is triggered when the average CPU utilization for a single instance is greater than this threshold.
*
*
* example:
* 10
*/
@NameInMap("threshold")
public Float threshold;
public static DescribeServiceAutoScalerResponseBodyScaleStrategies build(java.util.Map map) throws Exception {
DescribeServiceAutoScalerResponseBodyScaleStrategies self = new DescribeServiceAutoScalerResponseBodyScaleStrategies();
return TeaModel.build(map, self);
}
public DescribeServiceAutoScalerResponseBodyScaleStrategies setMetricName(String metricName) {
this.metricName = metricName;
return this;
}
public String getMetricName() {
return this.metricName;
}
public DescribeServiceAutoScalerResponseBodyScaleStrategies setService(String service) {
this.service = service;
return this;
}
public String getService() {
return this.service;
}
public DescribeServiceAutoScalerResponseBodyScaleStrategies setThreshold(Float threshold) {
this.threshold = threshold;
return this;
}
public Float getThreshold() {
return this.threshold;
}
}
}