99 lines
3.3 KiB
C#
99 lines
3.3 KiB
C#
/*
|
||
* Copyright (c) 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.
|
||
*/
|
||
|
||
namespace TencentCloud.Es.V20180416.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class DescribeInstanceLogsRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 集群实例ID
|
||
/// </summary>
|
||
[JsonProperty("InstanceId")]
|
||
public string InstanceId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 日志类型,默认值为1
|
||
/// <li>1, 主日志</li>
|
||
/// <li>2, 搜索慢日志</li>
|
||
/// <li>3, 索引慢日志</li>
|
||
/// <li>4, GC日志</li>
|
||
/// </summary>
|
||
[JsonProperty("LogType")]
|
||
public ulong? LogType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等
|
||
/// </summary>
|
||
[JsonProperty("SearchKey")]
|
||
public string SearchKey{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
|
||
/// </summary>
|
||
[JsonProperty("StartTime")]
|
||
public string StartTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
|
||
/// </summary>
|
||
[JsonProperty("EndTime")]
|
||
public string EndTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 分页起始值, 默认值为0
|
||
/// </summary>
|
||
[JsonProperty("Offset")]
|
||
public ulong? Offset{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 分页大小,默认值为100,最大值100
|
||
/// </summary>
|
||
[JsonProperty("Limit")]
|
||
public ulong? Limit{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 时间排序方式,默认值为0
|
||
/// <li>0, 降序</li>
|
||
/// <li>1, 升序</li>
|
||
/// </summary>
|
||
[JsonProperty("OrderByType")]
|
||
public ulong? OrderByType{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> 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);
|
||
}
|
||
}
|
||
}
|
||
|