lib/v20201016/models.rb in tencentcloud-sdk-cls-1.0.234 vs lib/v20201016/models.rb in tencentcloud-sdk-cls-1.0.235

- old
+ new

@@ -308,135 +308,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # 异步上下文任务 - class AsyncContextTask < TencentCloud::Common::AbstractModel - # @param LogsetId: 日志集ID - # @type LogsetId: String - # @param TopicId: 日志主题ID - # @type TopicId: String - # @param CreateTime: 创建时间,时间戳,精确到毫秒 - # @type CreateTime: Integer - # @param Status: 状态,0表示待开始,1表示运行中,2表示已完成,-1表示失败 - # @type Status: Integer - # @param AsyncContextTaskId: 异步上下文任务ID - # @type AsyncContextTaskId: String - # @param ErrorMessage: 任务失败的错误信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ErrorMessage: String - # @param PkgId: 日志包序号 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type PkgId: String - # @param PkgLogId: 日志包内一条日志的序号 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type PkgLogId: String - # @param Time: 日志时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Time: Integer - # @param FinishTime: 任务完成时间,时间戳,精确到毫秒 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FinishTime: Integer - # @param AsyncSearchTaskId: 相关联的异步检索ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type AsyncSearchTaskId: String - - attr_accessor :LogsetId, :TopicId, :CreateTime, :Status, :AsyncContextTaskId, :ErrorMessage, :PkgId, :PkgLogId, :Time, :FinishTime, :AsyncSearchTaskId - - def initialize(logsetid=nil, topicid=nil, createtime=nil, status=nil, asynccontexttaskid=nil, errormessage=nil, pkgid=nil, pkglogid=nil, time=nil, finishtime=nil, asyncsearchtaskid=nil) - @LogsetId = logsetid - @TopicId = topicid - @CreateTime = createtime - @Status = status - @AsyncContextTaskId = asynccontexttaskid - @ErrorMessage = errormessage - @PkgId = pkgid - @PkgLogId = pkglogid - @Time = time - @FinishTime = finishtime - @AsyncSearchTaskId = asyncsearchtaskid - end - - def deserialize(params) - @LogsetId = params['LogsetId'] - @TopicId = params['TopicId'] - @CreateTime = params['CreateTime'] - @Status = params['Status'] - @AsyncContextTaskId = params['AsyncContextTaskId'] - @ErrorMessage = params['ErrorMessage'] - @PkgId = params['PkgId'] - @PkgLogId = params['PkgLogId'] - @Time = params['Time'] - @FinishTime = params['FinishTime'] - @AsyncSearchTaskId = params['AsyncSearchTaskId'] - end - end - - # 异步检索任务 - class AsyncSearchTask < TencentCloud::Common::AbstractModel - # @param LogsetId: 日志集ID - # @type LogsetId: String - # @param TopicId: 日志主题ID - # @type TopicId: String - # @param CreateTime: 创建时间 - # @type CreateTime: String - # @param Status: 状态,0表示待开始,1表示运行中,2表示已完成,-1表示失败 - # @type Status: Integer - # @param AsyncSearchTaskId: 异步检索任务ID - # @type AsyncSearchTaskId: String - # @param Query: 查询语句 - # @type Query: String - # @param From: 要查询的日志的起始时间,Unix时间戳,单位ms - # @type From: Integer - # @param To: 要查询的日志的结束时间,Unix时间戳,单位ms - # @type To: Integer - # @param Sort: 日志扫描顺序,可选值:asc(升序)、desc(降序) - # @type Sort: String - # @param ErrorMessage: 任务失败的错误信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ErrorMessage: String - # @param LogCount: 异步检索任务匹配的总日志条数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LogCount: Integer - # @param FinishTime: 任务完成时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FinishTime: String - - attr_accessor :LogsetId, :TopicId, :CreateTime, :Status, :AsyncSearchTaskId, :Query, :From, :To, :Sort, :ErrorMessage, :LogCount, :FinishTime - - def initialize(logsetid=nil, topicid=nil, createtime=nil, status=nil, asyncsearchtaskid=nil, query=nil, from=nil, to=nil, sort=nil, errormessage=nil, logcount=nil, finishtime=nil) - @LogsetId = logsetid - @TopicId = topicid - @CreateTime = createtime - @Status = status - @AsyncSearchTaskId = asyncsearchtaskid - @Query = query - @From = from - @To = to - @Sort = sort - @ErrorMessage = errormessage - @LogCount = logcount - @FinishTime = finishtime - end - - def deserialize(params) - @LogsetId = params['LogsetId'] - @TopicId = params['TopicId'] - @CreateTime = params['CreateTime'] - @Status = params['Status'] - @AsyncSearchTaskId = params['AsyncSearchTaskId'] - @Query = params['Query'] - @From = params['From'] - @To = params['To'] - @Sort = params['Sort'] - @ErrorMessage = params['ErrorMessage'] - @LogCount = params['LogCount'] - @FinishTime = params['FinishTime'] - end - end - # 回调配置 class CallBackInfo < TencentCloud::Common::AbstractModel # @param Body: 回调时的Body # @type Body: String # @param Headers: 回调时的Headers @@ -810,118 +685,10 @@ @AlarmId = params['AlarmId'] @RequestId = params['RequestId'] end end - # CreateAsyncContextTask请求参数结构体 - class CreateAsyncContextTaskRequest < TencentCloud::Common::AbstractModel - # @param TopicId: 日志主题ID - # @type TopicId: String - # @param Time: 日志时间,单位ms - # @type Time: Integer - # @param PkgId: 日志包序号 - # @type PkgId: String - # @param PkgLogId: 日志包内一条日志的序号 - # @type PkgLogId: String - # @param LogsetId: 日志集ID - # @type LogsetId: String - # @param AsyncSearchTaskId: 异步检索任务ID - # @type AsyncSearchTaskId: String - - attr_accessor :TopicId, :Time, :PkgId, :PkgLogId, :LogsetId, :AsyncSearchTaskId - - def initialize(topicid=nil, time=nil, pkgid=nil, pkglogid=nil, logsetid=nil, asyncsearchtaskid=nil) - @TopicId = topicid - @Time = time - @PkgId = pkgid - @PkgLogId = pkglogid - @LogsetId = logsetid - @AsyncSearchTaskId = asyncsearchtaskid - end - - def deserialize(params) - @TopicId = params['TopicId'] - @Time = params['Time'] - @PkgId = params['PkgId'] - @PkgLogId = params['PkgLogId'] - @LogsetId = params['LogsetId'] - @AsyncSearchTaskId = params['AsyncSearchTaskId'] - end - end - - # CreateAsyncContextTask返回参数结构体 - class CreateAsyncContextTaskResponse < TencentCloud::Common::AbstractModel - # @param AsyncContextTaskId: 异步上下文任务ID - # @type AsyncContextTaskId: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :AsyncContextTaskId, :RequestId - - def initialize(asynccontexttaskid=nil, requestid=nil) - @AsyncContextTaskId = asynccontexttaskid - @RequestId = requestid - end - - def deserialize(params) - @AsyncContextTaskId = params['AsyncContextTaskId'] - @RequestId = params['RequestId'] - end - end - - # CreateAsyncSearchTask请求参数结构体 - class CreateAsyncSearchTaskRequest < TencentCloud::Common::AbstractModel - # @param LogsetId: 日志集ID - # @type LogsetId: String - # @param TopicId: 日志主题ID,目前仅支持StorageType为cold的日志主题 - # @type TopicId: String - # @param Query: 查询语句,语句长度最大为1024 - # @type Query: String - # @param From: 要查询的日志的起始时间,Unix时间戳,单位ms - # @type From: Integer - # @param To: 要查询的日志的结束时间,Unix时间戳,单位ms - # @type To: Integer - # @param Sort: 日志扫描顺序;可选值:asc(升序)、desc(降序),默认为 desc - # @type Sort: String - - attr_accessor :LogsetId, :TopicId, :Query, :From, :To, :Sort - - def initialize(logsetid=nil, topicid=nil, query=nil, from=nil, to=nil, sort=nil) - @LogsetId = logsetid - @TopicId = topicid - @Query = query - @From = from - @To = to - @Sort = sort - end - - def deserialize(params) - @LogsetId = params['LogsetId'] - @TopicId = params['TopicId'] - @Query = params['Query'] - @From = params['From'] - @To = params['To'] - @Sort = params['Sort'] - end - end - - # CreateAsyncSearchTask返回参数结构体 - class CreateAsyncSearchTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # CreateConfig请求参数结构体 class CreateConfigRequest < TencentCloud::Common::AbstractModel # @param Name: 采集配置名称 # @type Name: String # @param Output: 采集配置所属日志主题ID即TopicId @@ -1511,82 +1278,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # DeleteAsyncContextTask请求参数结构体 - class DeleteAsyncContextTaskRequest < TencentCloud::Common::AbstractModel - # @param TopicId: 日志主题ID - # @type TopicId: String - # @param AsyncContextTaskId: 异步上下文任务ID - # @type AsyncContextTaskId: String - - attr_accessor :TopicId, :AsyncContextTaskId - - def initialize(topicid=nil, asynccontexttaskid=nil) - @TopicId = topicid - @AsyncContextTaskId = asynccontexttaskid - end - - def deserialize(params) - @TopicId = params['TopicId'] - @AsyncContextTaskId = params['AsyncContextTaskId'] - end - end - - # DeleteAsyncContextTask返回参数结构体 - class DeleteAsyncContextTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # DeleteAsyncSearchTask请求参数结构体 - class DeleteAsyncSearchTaskRequest < TencentCloud::Common::AbstractModel - # @param AsyncSearchTaskId: 异步检索任务ID - # @type AsyncSearchTaskId: String - # @param TopicId: 日志主题ID - # @type TopicId: String - - attr_accessor :AsyncSearchTaskId, :TopicId - - def initialize(asyncsearchtaskid=nil, topicid=nil) - @AsyncSearchTaskId = asyncsearchtaskid - @TopicId = topicid - end - - def deserialize(params) - @AsyncSearchTaskId = params['AsyncSearchTaskId'] - @TopicId = params['TopicId'] - end - end - - # DeleteAsyncSearchTask返回参数结构体 - class DeleteAsyncSearchTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # DeleteConfigFromMachineGroup请求参数结构体 class DeleteConfigFromMachineGroupRequest < TencentCloud::Common::AbstractModel # @param GroupId: 机器组ID # @type GroupId: String # @param ConfigId: 采集配置ID @@ -2055,301 +1750,9 @@ @Alarms = [] params['Alarms'].each do |i| alarminfo_tmp = AlarmInfo.new alarminfo_tmp.deserialize(i) @Alarms << alarminfo_tmp - end - end - @TotalCount = params['TotalCount'] - @RequestId = params['RequestId'] - end - end - - # DescribeAsyncContextResult请求参数结构体 - class DescribeAsyncContextResultRequest < TencentCloud::Common::AbstractModel - # @param AsyncContextTaskId: 异步检索任务ID - # @type AsyncContextTaskId: String - # @param PkgId: 日志包序号 - # @type PkgId: String - # @param PkgLogId: 日志在日志包内的序号 - # @type PkgLogId: String - # @param TopicId: 日志主题ID - # @type TopicId: String - # @param PrevLogs: 上文日志条数,默认值10 - # @type PrevLogs: Integer - # @param NextLogs: 下文日志条数,默认值10 - # @type NextLogs: Integer - - attr_accessor :AsyncContextTaskId, :PkgId, :PkgLogId, :TopicId, :PrevLogs, :NextLogs - - def initialize(asynccontexttaskid=nil, pkgid=nil, pkglogid=nil, topicid=nil, prevlogs=nil, nextlogs=nil) - @AsyncContextTaskId = asynccontexttaskid - @PkgId = pkgid - @PkgLogId = pkglogid - @TopicId = topicid - @PrevLogs = prevlogs - @NextLogs = nextlogs - end - - def deserialize(params) - @AsyncContextTaskId = params['AsyncContextTaskId'] - @PkgId = params['PkgId'] - @PkgLogId = params['PkgLogId'] - @TopicId = params['TopicId'] - @PrevLogs = params['PrevLogs'] - @NextLogs = params['NextLogs'] - end - end - - # DescribeAsyncContextResult返回参数结构体 - class DescribeAsyncContextResultResponse < TencentCloud::Common::AbstractModel - # @param PrevOver: 上文日志是否已经返回 - # @type PrevOver: Boolean - # @param NextOver: 下文日志是否已经返回 - # @type NextOver: Boolean - # @param Results: 日志内容 - # @type Results: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :PrevOver, :NextOver, :Results, :RequestId - - def initialize(prevover=nil, nextover=nil, results=nil, requestid=nil) - @PrevOver = prevover - @NextOver = nextover - @Results = results - @RequestId = requestid - end - - def deserialize(params) - @PrevOver = params['PrevOver'] - @NextOver = params['NextOver'] - unless params['Results'].nil? - @Results = [] - params['Results'].each do |i| - loginfo_tmp = LogInfo.new - loginfo_tmp.deserialize(i) - @Results << loginfo_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeAsyncContextTasks请求参数结构体 - class DescribeAsyncContextTasksRequest < TencentCloud::Common::AbstractModel - # @param Offset: 分页的偏移量,默认值为0 - # @type Offset: Integer - # @param Limit: 分页单页限制数目,默认值为20,最大值100 - # @type Limit: Integer - # @param Filters: <br><li> topicId - - # 按照【日志主题ID】进行过滤。 - # 类型:String - - # 必选:否 - - # <br><li> logsetId - - # 按照【日志集ID】进行过滤,可通过调用DescribeLogsets查询已创建的日志集列表或登录控制台进行查看;也可以调用CreateLogset创建新的日志集。 - - # 类型:String - - # 必选:否 - - # 每次请求的Filters的上限为10,Filter.Values的上限为5 - # @type Filters: Array - - attr_accessor :Offset, :Limit, :Filters - - def initialize(offset=nil, limit=nil, filters=nil) - @Offset = offset - @Limit = limit - @Filters = filters - end - - def deserialize(params) - @Offset = params['Offset'] - @Limit = params['Limit'] - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - end - end - - # DescribeAsyncContextTasks返回参数结构体 - class DescribeAsyncContextTasksResponse < TencentCloud::Common::AbstractModel - # @param AsyncContextTasks: 异步上下文任务列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type AsyncContextTasks: Array - # @param TotalCount: 异步上下文任务的总数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :AsyncContextTasks, :TotalCount, :RequestId - - def initialize(asynccontexttasks=nil, totalcount=nil, requestid=nil) - @AsyncContextTasks = asynccontexttasks - @TotalCount = totalcount - @RequestId = requestid - end - - def deserialize(params) - unless params['AsyncContextTasks'].nil? - @AsyncContextTasks = [] - params['AsyncContextTasks'].each do |i| - asynccontexttask_tmp = AsyncContextTask.new - asynccontexttask_tmp.deserialize(i) - @AsyncContextTasks << asynccontexttask_tmp - end - end - @TotalCount = params['TotalCount'] - @RequestId = params['RequestId'] - end - end - - # DescribeAsyncSearchResult请求参数结构体 - class DescribeAsyncSearchResultRequest < TencentCloud::Common::AbstractModel - # @param AsyncSearchTaskId: 异步检索任务ID - # @type AsyncSearchTaskId: String - # @param TopicId: 日志集ID - # @type TopicId: String - # @param Context: 加载更多日志时使用,透传上次返回的Context值,获取后续的日志内容 - # @type Context: String - # @param Limit: 单次调用返回的日志条数,默认为20,最大为500 - # @type Limit: Integer - - attr_accessor :AsyncSearchTaskId, :TopicId, :Context, :Limit - - def initialize(asyncsearchtaskid=nil, topicid=nil, context=nil, limit=nil) - @AsyncSearchTaskId = asyncsearchtaskid - @TopicId = topicid - @Context = context - @Limit = limit - end - - def deserialize(params) - @AsyncSearchTaskId = params['AsyncSearchTaskId'] - @TopicId = params['TopicId'] - @Context = params['Context'] - @Limit = params['Limit'] - end - end - - # DescribeAsyncSearchResult返回参数结构体 - class DescribeAsyncSearchResultResponse < TencentCloud::Common::AbstractModel - # @param Context: 加载后续内容的Context - # @type Context: String - # @param ListOver: 日志查询结果是否全部返回 - # @type ListOver: Boolean - # @param Results: 日志内容 - # @type Results: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Context, :ListOver, :Results, :RequestId - - def initialize(context=nil, listover=nil, results=nil, requestid=nil) - @Context = context - @ListOver = listover - @Results = results - @RequestId = requestid - end - - def deserialize(params) - @Context = params['Context'] - @ListOver = params['ListOver'] - unless params['Results'].nil? - @Results = [] - params['Results'].each do |i| - loginfo_tmp = LogInfo.new - loginfo_tmp.deserialize(i) - @Results << loginfo_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeAsyncSearchTasks请求参数结构体 - class DescribeAsyncSearchTasksRequest < TencentCloud::Common::AbstractModel - # @param Offset: 分页的偏移量,默认值为0 - # @type Offset: Integer - # @param Limit: 分页单页限制数目,默认值为20,最大值100 - # @type Limit: Integer - # @param Filters: <br><li> topicId - - # 按照【日志主题ID】进行过滤。 - # 类型:String - - # 必选:否 - - # <br><li> logsetId - - # 按照【日志集ID】进行过滤,可通过调用DescribeLogsets查询已创建的日志集列表或登录控制台进行查看;也可以调用CreateLogset创建新的日志集。 - - # 类型:String - - # 必选:否 - - # 每次请求的Filters的上限为10,Filter.Values的上限为5 - # @type Filters: Array - - attr_accessor :Offset, :Limit, :Filters - - def initialize(offset=nil, limit=nil, filters=nil) - @Offset = offset - @Limit = limit - @Filters = filters - end - - def deserialize(params) - @Offset = params['Offset'] - @Limit = params['Limit'] - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - end - end - - # DescribeAsyncSearchTasks返回参数结构体 - class DescribeAsyncSearchTasksResponse < TencentCloud::Common::AbstractModel - # @param AsyncSearchTasks: 异步检索任务列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type AsyncSearchTasks: Array - # @param TotalCount: 异步检索任务的总数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :AsyncSearchTasks, :TotalCount, :RequestId - - def initialize(asyncsearchtasks=nil, totalcount=nil, requestid=nil) - @AsyncSearchTasks = asyncsearchtasks - @TotalCount = totalcount - @RequestId = requestid - end - - def deserialize(params) - unless params['AsyncSearchTasks'].nil? - @AsyncSearchTasks = [] - params['AsyncSearchTasks'].each do |i| - asyncsearchtask_tmp = AsyncSearchTask.new - asyncsearchtask_tmp.deserialize(i) - @AsyncSearchTasks << asyncsearchtask_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end