
com.tencentcloudapi.es.v20180416.models.DescribeInstanceLogsRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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.
*/
package com.tencentcloudapi.es.v20180416.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeInstanceLogsRequest extends AbstractModel {
/**
* 集群实例ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 日志类型,默认值为1
1, 主日志
2, 搜索慢日志
3, 索引慢日志
4, GC日志
*/
@SerializedName("LogType")
@Expose
private Long LogType;
/**
* 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等
*/
@SerializedName("SearchKey")
@Expose
private String SearchKey;
/**
* 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* 分页起始值, 默认值为0
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* 分页大小,默认值为100,最大值100
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* 时间排序方式,默认值为0
0, 降序
1, 升序
*/
@SerializedName("OrderByType")
@Expose
private Long OrderByType;
/**
* Get 集群实例ID
* @return InstanceId 集群实例ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 集群实例ID
* @param InstanceId 集群实例ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 日志类型,默认值为1
1, 主日志
2, 搜索慢日志
3, 索引慢日志
4, GC日志
* @return LogType 日志类型,默认值为1
1, 主日志
2, 搜索慢日志
3, 索引慢日志
4, GC日志
*/
public Long getLogType() {
return this.LogType;
}
/**
* Set 日志类型,默认值为1
1, 主日志
2, 搜索慢日志
3, 索引慢日志
4, GC日志
* @param LogType 日志类型,默认值为1
1, 主日志
2, 搜索慢日志
3, 索引慢日志
4, GC日志
*/
public void setLogType(Long LogType) {
this.LogType = LogType;
}
/**
* Get 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等
* @return SearchKey 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等
*/
public String getSearchKey() {
return this.SearchKey;
}
/**
* Set 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等
* @param SearchKey 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等
*/
public void setSearchKey(String SearchKey) {
this.SearchKey = SearchKey;
}
/**
* Get 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
* @return StartTime 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
* @param StartTime 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
* @return EndTime 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
* @param EndTime 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get 分页起始值, 默认值为0
* @return Offset 分页起始值, 默认值为0
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set 分页起始值, 默认值为0
* @param Offset 分页起始值, 默认值为0
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get 分页大小,默认值为100,最大值100
* @return Limit 分页大小,默认值为100,最大值100
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set 分页大小,默认值为100,最大值100
* @param Limit 分页大小,默认值为100,最大值100
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get 时间排序方式,默认值为0
0, 降序
1, 升序
* @return OrderByType 时间排序方式,默认值为0
0, 降序
1, 升序
*/
public Long getOrderByType() {
return this.OrderByType;
}
/**
* Set 时间排序方式,默认值为0
0, 降序
1, 升序
* @param OrderByType 时间排序方式,默认值为0
0, 降序
1, 升序
*/
public void setOrderByType(Long OrderByType) {
this.OrderByType = OrderByType;
}
public DescribeInstanceLogsRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeInstanceLogsRequest(DescribeInstanceLogsRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.LogType != null) {
this.LogType = new Long(source.LogType);
}
if (source.SearchKey != null) {
this.SearchKey = new String(source.SearchKey);
}
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.OrderByType != null) {
this.OrderByType = new Long(source.OrderByType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "LogType", this.LogType);
this.setParamSimple(map, prefix + "SearchKey", this.SearchKey);
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "OrderByType", this.OrderByType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy