com.jdcloud.sdk.service.rds.model.DescribeQueryPerformanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rds Show documentation
Show all versions of rds Show documentation
JDCLOUD Open API SDK for Java
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* 性能统计
* 性能统计相关接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.rds.model;
import com.jdcloud.sdk.annotation.Required;
import com.jdcloud.sdk.service.JdcloudRequest;
/**
* 查询性能统计</br>- SQL Server:支持</br>- MySQL:暂不支持
*/
public class DescribeQueryPerformanceRequest extends JdcloudRequest implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 查询类型,不同的查询类型按照相应的字段从高到低返回结果。支持如下类型:ExecutionCount:执行次数LastRows:上次返回行数ElapsedTime:平均执行时间CPUTime:平均CPU时间LogicalReads:平均逻辑读LogicalWrites:平均逻辑写PhysicalReads:平均物理读
* Required:true
*/
@Required
private String queryType;
/**
* 只返回查询条件大于等于threshold的记录,默认为0
*/
private Integer threshold;
/**
* 显示数据的页码,取值范围:[1,1000),页码超过总页数时,显示最后一页,用于查询列表的接口
*/
private Integer pageNumber;
/**
* 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数
*/
private Integer pageSize;
/**
* Region ID
* Required:true
*/
@Required
private String regionId;
/**
* Instance ID
* Required:true
*/
@Required
private String instanceId;
/**
* get 查询类型,不同的查询类型按照相应的字段从高到低返回结果。支持如下类型:ExecutionCount:执行次数LastRows:上次返回行数ElapsedTime:平均执行时间CPUTime:平均CPU时间LogicalReads:平均逻辑读LogicalWrites:平均逻辑写PhysicalReads:平均物理读
*
* @return
*/
public String getQueryType() {
return queryType;
}
/**
* set 查询类型,不同的查询类型按照相应的字段从高到低返回结果。支持如下类型:ExecutionCount:执行次数LastRows:上次返回行数ElapsedTime:平均执行时间CPUTime:平均CPU时间LogicalReads:平均逻辑读LogicalWrites:平均逻辑写PhysicalReads:平均物理读
*
* @param queryType
*/
public void setQueryType(String queryType) {
this.queryType = queryType;
}
/**
* get 只返回查询条件大于等于threshold的记录,默认为0
*
* @return
*/
public Integer getThreshold() {
return threshold;
}
/**
* set 只返回查询条件大于等于threshold的记录,默认为0
*
* @param threshold
*/
public void setThreshold(Integer threshold) {
this.threshold = threshold;
}
/**
* get 显示数据的页码,取值范围:[1,1000),页码超过总页数时,显示最后一页,用于查询列表的接口
*
* @return
*/
public Integer getPageNumber() {
return pageNumber;
}
/**
* set 显示数据的页码,取值范围:[1,1000),页码超过总页数时,显示最后一页,用于查询列表的接口
*
* @param pageNumber
*/
public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
}
/**
* get 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数
*
* @return
*/
public Integer getPageSize() {
return pageSize;
}
/**
* set 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数
*
* @param pageSize
*/
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
/**
* get Region ID
*
* @return
*/
public String getRegionId() {
return regionId;
}
/**
* set Region ID
*
* @param regionId
*/
public void setRegionId(String regionId) {
this.regionId = regionId;
}
/**
* get Instance ID
*
* @return
*/
public String getInstanceId() {
return instanceId;
}
/**
* set Instance ID
*
* @param instanceId
*/
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
/**
* set 查询类型,不同的查询类型按照相应的字段从高到低返回结果。支持如下类型:ExecutionCount:执行次数LastRows:上次返回行数ElapsedTime:平均执行时间CPUTime:平均CPU时间LogicalReads:平均逻辑读LogicalWrites:平均逻辑写PhysicalReads:平均物理读
*
* @param queryType
*/
public DescribeQueryPerformanceRequest queryType(String queryType) {
this.queryType = queryType;
return this;
}
/**
* set 只返回查询条件大于等于threshold的记录,默认为0
*
* @param threshold
*/
public DescribeQueryPerformanceRequest threshold(Integer threshold) {
this.threshold = threshold;
return this;
}
/**
* set 显示数据的页码,取值范围:[1,1000),页码超过总页数时,显示最后一页,用于查询列表的接口
*
* @param pageNumber
*/
public DescribeQueryPerformanceRequest pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* set 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数
*
* @param pageSize
*/
public DescribeQueryPerformanceRequest pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* set Region ID
*
* @param regionId
*/
public DescribeQueryPerformanceRequest regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* set Instance ID
*
* @param instanceId
*/
public DescribeQueryPerformanceRequest instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
}