com.aliyun.sdk.service.polardb20170801.models.DescribeDBProxyPerformanceRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-polardb20170801 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDBProxyPerformanceRequest} extends {@link RequestModel}
*
* DescribeDBProxyPerformanceRequest
*/
public class DescribeDBProxyPerformanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBClusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBEndpointId")
private String DBEndpointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBNodeId")
private String DBNodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Interval")
private String interval;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Key")
@com.aliyun.core.annotation.Validation(required = true)
private String key;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private DescribeDBProxyPerformanceRequest(Builder builder) {
super(builder);
this.DBClusterId = builder.DBClusterId;
this.DBEndpointId = builder.DBEndpointId;
this.DBNodeId = builder.DBNodeId;
this.endTime = builder.endTime;
this.interval = builder.interval;
this.key = builder.key;
this.startTime = builder.startTime;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBProxyPerformanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return DBEndpointId
*/
public String getDBEndpointId() {
return this.DBEndpointId;
}
/**
* @return DBNodeId
*/
public String getDBNodeId() {
return this.DBNodeId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return interval
*/
public String getInterval() {
return this.interval;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder {
private String DBClusterId;
private String DBEndpointId;
private String DBNodeId;
private String endTime;
private String interval;
private String key;
private String startTime;
private String type;
private Builder() {
super();
}
private Builder(DescribeDBProxyPerformanceRequest request) {
super(request);
this.DBClusterId = request.DBClusterId;
this.DBEndpointId = request.DBEndpointId;
this.DBNodeId = request.DBNodeId;
this.endTime = request.endTime;
this.interval = request.interval;
this.key = request.key;
this.startTime = request.startTime;
this.type = request.type;
}
/**
* The ID of cluster.
* This parameter is required.
*
* example:
* pc-****************
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
return this;
}
/**
* The ID of the endpoint.
*
* example:
* pe-****************
*/
public Builder DBEndpointId(String DBEndpointId) {
this.putQueryParameter("DBEndpointId", DBEndpointId);
this.DBEndpointId = DBEndpointId;
return this;
}
/**
* The ID of the node in the cluster. This parameter can be used to query the performance metrics of PolarProxy on different nodes. The following metrics are supported: PolarProxy_DBConns, PolarProxy_DBQps, and PolarProxy_DBActionOps.
*
* example:
* pi-******************
*/
public Builder DBNodeId(String DBNodeId) {
this.putQueryParameter("DBNodeId", DBNodeId);
this.DBNodeId = DBNodeId;
return this;
}
/**
* The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ
format. The time must be in UTC.
* This parameter is required.
*
* example:
* 2020-09-24T02:08Z
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* The interval at which performance data is collected. Valid values: 5, 30, 60, 600, 1800, 3600, 86400, in seconds.
*
* example:
* 60
*/
public Builder interval(String interval) {
this.putQueryParameter("Interval", interval);
this.interval = interval;
return this;
}
/**
* The performance metrics that you want to query. Separate multiple indicators with commas (,). For more information, see Performance parameters.
* This parameter is required.
*
* example:
* PolarProxy_CpuUsage
*/
public Builder key(String key) {
this.putQueryParameter("Key", key);
this.key = key;
return this;
}
/**
* The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ
format. The time must be in UTC.
* This parameter is required.
*
* example:
* 2020-09-23T01:01Z
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* Special metric. Set the value to tair, which indicates the PolarTair architecture.
*
* example:
* tair
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DescribeDBProxyPerformanceRequest build() {
return new DescribeDBProxyPerformanceRequest(this);
}
}
}