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