com.aliyun.sdk.service.gpdb20160503.models.DescribeDiagnosisMonitorPerformanceResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-gpdb20160503 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.gpdb20160503.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeDiagnosisMonitorPerformanceResponseBody} extends {@link TeaModel}
*
* DescribeDiagnosisMonitorPerformanceResponseBody
*/
public class DescribeDiagnosisMonitorPerformanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Performances")
private java.util.List < Performances> performances;
@com.aliyun.core.annotation.NameInMap("PerformancesThreshold")
private Integer performancesThreshold;
@com.aliyun.core.annotation.NameInMap("PerformancesTruncated")
private Boolean performancesTruncated;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDiagnosisMonitorPerformanceResponseBody(Builder builder) {
this.performances = builder.performances;
this.performancesThreshold = builder.performancesThreshold;
this.performancesTruncated = builder.performancesTruncated;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDiagnosisMonitorPerformanceResponseBody create() {
return builder().build();
}
/**
* @return performances
*/
public java.util.List < Performances> getPerformances() {
return this.performances;
}
/**
* @return performancesThreshold
*/
public Integer getPerformancesThreshold() {
return this.performancesThreshold;
}
/**
* @return performancesTruncated
*/
public Boolean getPerformancesTruncated() {
return this.performancesTruncated;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List < Performances> performances;
private Integer performancesThreshold;
private Boolean performancesTruncated;
private String requestId;
/**
* Details of query execution.
*/
public Builder performances(java.util.List < Performances> performances) {
this.performances = performances;
return this;
}
/**
* The threshold for the number of queries.
*/
public Builder performancesThreshold(Integer performancesThreshold) {
this.performancesThreshold = performancesThreshold;
return this;
}
/**
* Indicates whether the queries are truncated when the number of queries exceeds the threshold. Valid values:
*
*
* * **true**: The queries are truncated.
* * **false**: The queries are not truncated.
*/
public Builder performancesTruncated(Boolean performancesTruncated) {
this.performancesTruncated = performancesTruncated;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDiagnosisMonitorPerformanceResponseBody build() {
return new DescribeDiagnosisMonitorPerformanceResponseBody(this);
}
}
public static class Performances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cost")
private Integer cost;
@com.aliyun.core.annotation.NameInMap("Database")
private String database;
@com.aliyun.core.annotation.NameInMap("QueryID")
private String queryID;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("User")
private String user;
private Performances(Builder builder) {
this.cost = builder.cost;
this.database = builder.database;
this.queryID = builder.queryID;
this.startTime = builder.startTime;
this.status = builder.status;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static Performances create() {
return builder().build();
}
/**
* @return cost
*/
public Integer getCost() {
return this.cost;
}
/**
* @return database
*/
public String getDatabase() {
return this.database;
}
/**
* @return queryID
*/
public String getQueryID() {
return this.queryID;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
public static final class Builder {
private Integer cost;
private String database;
private String queryID;
private Long startTime;
private String status;
private String user;
/**
* The execution duration of the query. Unit: milliseconds.
*/
public Builder cost(Integer cost) {
this.cost = cost;
return this;
}
/**
* The name of the database.
*/
public Builder database(String database) {
this.database = database;
return this;
}
/**
* The ID of the query. It is a unique identifier of the query.
*/
public Builder queryID(String queryID) {
this.queryID = queryID;
return this;
}
/**
* The start time of the query. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The execution state of the query. Valid values:
*
*
* * **running**: The query is being executed.
* * **finished**: The query is complete.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The name of the database account.
*/
public Builder user(String user) {
this.user = user;
return this;
}
public Performances build() {
return new Performances(this);
}
}
}
}