# frozen_string_literal: true # 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. module TencentCloud module Cfg module V20210820 # 动作动态参数返回格式 class ActionFieldConfigDetail < TencentCloud::Common::AbstractModel # @param Type: 组件类型 # 可选项如下: # input 文本框 # textarea 多行文本框 # number 数值输入框 # select 选择器 # cascader 级联选择器 # radio 单选 # time 时间选择 # @type Type: String # @param Lable: 组件label # @type Lable: String # @param Field: 组件唯一标识, 传回后端时的key # @type Field: String # @param DefaultValue: 默认值 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DefaultValue: String # @param Config: 支持配置项如下,可根据需要选择配置项,不需要配置是设置空{}: # { # placeholder: string (占位符) # tooltip: string (提示信息) # reg: RegExp (对输入内容格式进行正则校验的规则) # max: number (对于输入框,限制最大输入字符数,对于数值输入框,设置上限) # min: number (对于数值输入框,设置下限) # step: number (设置数值输入框的步长,默认为1) # format: string (时间选择的格式,如YYYY-MM-DD表示年月日, YYYY-MM-DD HH:mm:ss 表示时分秒) # separator: string[] (多行输入框的分隔符,不传或者为空时表示不分隔,直接返回用户输入的文本字符串) # multiple: boolean (是否多选,对选择器和级联选择器有效) # options: 选择器的选项【支持以下两种形式】 # 直接给定选项数组 { value: string; label: string }[] # 通过调接口获取选项 { api: string(接口地址), params: string[] (接口参数,对应于参数配置的field,前端根据field对应的所有组件的输入值作为参数查询数据, 为空时在组件加载时直接请求数据) } # } # @type Config: String # @param Required: 是否必填 (0 -- 否 1-- 是) # @type Required: Integer # @param Validate: compute配置依赖的其他field满足的条件时通过校验(如:三个表单项中必须至少有一个填写了) # [fieldName, # { config: 此项保留,等待后面具体场景细化 } # ] # @type Validate: String # @param Visible: 是否可见 # @type Visible: String attr_accessor :Type, :Lable, :Field, :DefaultValue, :Config, :Required, :Validate, :Visible def initialize(type=nil, lable=nil, field=nil, defaultvalue=nil, config=nil, required=nil, validate=nil, visible=nil) @Type = type @Lable = lable @Field = field @DefaultValue = defaultvalue @Config = config @Required = required @Validate = validate @Visible = visible end def deserialize(params) @Type = params['Type'] @Lable = params['Lable'] @Field = params['Field'] @DefaultValue = params['DefaultValue'] @Config = params['Config'] @Required = params['Required'] @Validate = params['Validate'] @Visible = params['Visible'] end end # 动作栏位配置结果 class ActionFieldConfigResult < TencentCloud::Common::AbstractModel # @param ActionId: 动作ID # @type ActionId: Integer # @param ActionName: 动作名称 # @type ActionName: String # @param ConfigDetail: 动作对应的栏位配置详情 # @type ConfigDetail: Array attr_accessor :ActionId, :ActionName, :ConfigDetail def initialize(actionid=nil, actionname=nil, configdetail=nil) @ActionId = actionid @ActionName = actionname @ConfigDetail = configdetail end def deserialize(params) @ActionId = params['ActionId'] @ActionName = params['ActionName'] unless params['ConfigDetail'].nil? @ConfigDetail = [] params['ConfigDetail'].each do |i| actionfieldconfigdetail_tmp = ActionFieldConfigDetail.new actionfieldconfigdetail_tmp.deserialize(i) @ConfigDetail << actionfieldconfigdetail_tmp end end end end # 动作库筛选栏位 class ActionFilter < TencentCloud::Common::AbstractModel # @param Keyword: 关键字 # @type Keyword: String # @param Values: 搜索内容值 # @type Values: Array attr_accessor :Keyword, :Values def initialize(keyword=nil, values=nil) @Keyword = keyword @Values = values end def deserialize(params) @Keyword = params['Keyword'] @Values = params['Values'] end end # 动作库数据列表 class ActionLibraryListResult < TencentCloud::Common::AbstractModel # @param ActionName: 动作名称 # @type ActionName: String # @param Desc: 动作描述 # @type Desc: String # @param ActionType: 动作类型。范围:["平台","自定义"] # @type ActionType: String # @param CreateTime: 创建时间 # @type CreateTime: String # @param Creator: 创建人 # @type Creator: String # @param UpdateTime: 更新时间 # @type UpdateTime: String # @param RiskDesc: 动作风险描述 # @type RiskDesc: String # @param ActionId: 动作ID # @type ActionId: Integer # @param AttributeId: 动作属性( 1:故障 2:恢复) # @type AttributeId: Integer # @param RelationActionId: 关联的动作ID # @type RelationActionId: Integer # @param ActionCommand: 操作命令 # @type ActionCommand: String # @param ActionCommandType: 动作类型(0 -- tat 1 -- 云API) # @type ActionCommandType: Integer # @param ActionContent: 自定义动作的参数,json string # @type ActionContent: String # @param ResourceType: 二级分类 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceType: String # @param ActionDetail: 动作描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionDetail: String # @param IsAllowed: 是否允许当前账号使用 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsAllowed: Boolean # @param ActionBestCase: 最佳实践案例的链接地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionBestCase: String # @param ObjectType: 对象类型 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ObjectType: String # @param MetricIdList: 监控指标ID列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MetricIdList: Array # @param IsNewAction: 是否是新动作 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsNewAction: Boolean # @param ObjectTypeId: 对象类型ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ObjectTypeId: Integer attr_accessor :ActionName, :Desc, :ActionType, :CreateTime, :Creator, :UpdateTime, :RiskDesc, :ActionId, :AttributeId, :RelationActionId, :ActionCommand, :ActionCommandType, :ActionContent, :ResourceType, :ActionDetail, :IsAllowed, :ActionBestCase, :ObjectType, :MetricIdList, :IsNewAction, :ObjectTypeId def initialize(actionname=nil, desc=nil, actiontype=nil, createtime=nil, creator=nil, updatetime=nil, riskdesc=nil, actionid=nil, attributeid=nil, relationactionid=nil, actioncommand=nil, actioncommandtype=nil, actioncontent=nil, resourcetype=nil, actiondetail=nil, isallowed=nil, actionbestcase=nil, objecttype=nil, metricidlist=nil, isnewaction=nil, objecttypeid=nil) @ActionName = actionname @Desc = desc @ActionType = actiontype @CreateTime = createtime @Creator = creator @UpdateTime = updatetime @RiskDesc = riskdesc @ActionId = actionid @AttributeId = attributeid @RelationActionId = relationactionid @ActionCommand = actioncommand @ActionCommandType = actioncommandtype @ActionContent = actioncontent @ResourceType = resourcetype @ActionDetail = actiondetail @IsAllowed = isallowed @ActionBestCase = actionbestcase @ObjectType = objecttype @MetricIdList = metricidlist @IsNewAction = isnewaction @ObjectTypeId = objecttypeid end def deserialize(params) @ActionName = params['ActionName'] @Desc = params['Desc'] @ActionType = params['ActionType'] @CreateTime = params['CreateTime'] @Creator = params['Creator'] @UpdateTime = params['UpdateTime'] @RiskDesc = params['RiskDesc'] @ActionId = params['ActionId'] @AttributeId = params['AttributeId'] @RelationActionId = params['RelationActionId'] @ActionCommand = params['ActionCommand'] @ActionCommandType = params['ActionCommandType'] @ActionContent = params['ActionContent'] @ResourceType = params['ResourceType'] @ActionDetail = params['ActionDetail'] @IsAllowed = params['IsAllowed'] @ActionBestCase = params['ActionBestCase'] @ObjectType = params['ObjectType'] @MetricIdList = params['MetricIdList'] @IsNewAction = params['IsNewAction'] @ObjectTypeId = params['ObjectTypeId'] end end # 应用性能监控产品中应用信息 class ApmServiceInfo < TencentCloud::Common::AbstractModel # @param InstanceId: 业务ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String # @param ServiceNameList: 应用名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ServiceNameList: Array # @param RegionId: 地域ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type RegionId: Integer attr_accessor :InstanceId, :ServiceNameList, :RegionId def initialize(instanceid=nil, servicenamelist=nil, regionid=nil) @InstanceId = instanceid @ServiceNameList = servicenamelist @RegionId = regionid end def deserialize(params) @InstanceId = params['InstanceId'] @ServiceNameList = params['ServiceNameList'] @RegionId = params['RegionId'] end end # CreateTaskFromAction请求参数结构体 class CreateTaskFromActionRequest < TencentCloud::Common::AbstractModel # @param TaskActionId: 动作ID,可从动作列表接口DescribeActionLibraryList获取 # @type TaskActionId: Integer # @param TaskInstances: 参与演练的实例ID # @type TaskInstances: Array # @param TaskTitle: 演练名称,不填则默认取动作名称 # @type TaskTitle: String # @param TaskDescription: 演练描述,不填则默认取动作描述 # @type TaskDescription: String # @param TaskActionGeneralConfiguration: 动作通用参数,需要json序列化传入,可以从动作详情接口DescribeActionFieldConfigList获取,不填默认使用动作默认参数 # @type TaskActionGeneralConfiguration: String # @param TaskActionCustomConfiguration: 动作自定义参数,需要json序列化传入,可以从动作详情接口DescribeActionFieldConfigList获取,不填默认使用动作默认参数,注意:必填参数,是没有默认值的 ,务必保证传入有效值 # @type TaskActionCustomConfiguration: String # @param TaskPauseDuration: 演练自动暂停时间,单位分钟, 不填则默认为60 # @type TaskPauseDuration: Integer attr_accessor :TaskActionId, :TaskInstances, :TaskTitle, :TaskDescription, :TaskActionGeneralConfiguration, :TaskActionCustomConfiguration, :TaskPauseDuration def initialize(taskactionid=nil, taskinstances=nil, tasktitle=nil, taskdescription=nil, taskactiongeneralconfiguration=nil, taskactioncustomconfiguration=nil, taskpauseduration=nil) @TaskActionId = taskactionid @TaskInstances = taskinstances @TaskTitle = tasktitle @TaskDescription = taskdescription @TaskActionGeneralConfiguration = taskactiongeneralconfiguration @TaskActionCustomConfiguration = taskactioncustomconfiguration @TaskPauseDuration = taskpauseduration end def deserialize(params) @TaskActionId = params['TaskActionId'] @TaskInstances = params['TaskInstances'] @TaskTitle = params['TaskTitle'] @TaskDescription = params['TaskDescription'] @TaskActionGeneralConfiguration = params['TaskActionGeneralConfiguration'] @TaskActionCustomConfiguration = params['TaskActionCustomConfiguration'] @TaskPauseDuration = params['TaskPauseDuration'] end end # CreateTaskFromAction返回参数结构体 class CreateTaskFromActionResponse < TencentCloud::Common::AbstractModel # @param TaskId: 创建成功的演练ID # @type TaskId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TaskId, :RequestId def initialize(taskid=nil, requestid=nil) @TaskId = taskid @RequestId = requestid end def deserialize(params) @TaskId = params['TaskId'] @RequestId = params['RequestId'] end end # CreateTaskFromTemplate请求参数结构体 class CreateTaskFromTemplateRequest < TencentCloud::Common::AbstractModel # @param TemplateId: 从经验库中查询到的经验模板ID # @type TemplateId: Integer # @param TaskConfig: 演练的配置参数 # @type TaskConfig: :class:`Tencentcloud::Cfg.v20210820.models.TaskConfig` attr_accessor :TemplateId, :TaskConfig def initialize(templateid=nil, taskconfig=nil) @TemplateId = templateid @TaskConfig = taskconfig end def deserialize(params) @TemplateId = params['TemplateId'] unless params['TaskConfig'].nil? @TaskConfig = TaskConfig.new @TaskConfig.deserialize(params['TaskConfig']) end end end # CreateTaskFromTemplate返回参数结构体 class CreateTaskFromTemplateResponse < TencentCloud::Common::AbstractModel # @param TaskId: 创建成功的演练ID # @type TaskId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TaskId, :RequestId def initialize(taskid=nil, requestid=nil) @TaskId = taskid @RequestId = requestid end def deserialize(params) @TaskId = params['TaskId'] @RequestId = params['RequestId'] end end # DeleteTask请求参数结构体 class DeleteTaskRequest < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer attr_accessor :TaskId def initialize(taskid=nil) @TaskId = taskid end def deserialize(params) @TaskId = params['TaskId'] end end # DeleteTask返回参数结构体 class DeleteTaskResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DescribeActionFieldConfigList请求参数结构体 class DescribeActionFieldConfigListRequest < TencentCloud::Common::AbstractModel # @param ActionIds: 动作ID列表 # @type ActionIds: Array # @param ObjectTypeId: 对象类型ID # @type ObjectTypeId: Integer attr_accessor :ActionIds, :ObjectTypeId def initialize(actionids=nil, objecttypeid=nil) @ActionIds = actionids @ObjectTypeId = objecttypeid end def deserialize(params) @ActionIds = params['ActionIds'] @ObjectTypeId = params['ObjectTypeId'] end end # DescribeActionFieldConfigList返回参数结构体 class DescribeActionFieldConfigListResponse < TencentCloud::Common::AbstractModel # @param Common: 通用栏位配置列表 # @type Common: Array # @param Results: 动作栏位配置列表 # @type Results: Array # @param ResourceOffline: 资源下线信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceOffline: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Common, :Results, :ResourceOffline, :RequestId def initialize(common=nil, results=nil, resourceoffline=nil, requestid=nil) @Common = common @Results = results @ResourceOffline = resourceoffline @RequestId = requestid end def deserialize(params) unless params['Common'].nil? @Common = [] params['Common'].each do |i| actionfieldconfigresult_tmp = ActionFieldConfigResult.new actionfieldconfigresult_tmp.deserialize(i) @Common << actionfieldconfigresult_tmp end end unless params['Results'].nil? @Results = [] params['Results'].each do |i| actionfieldconfigresult_tmp = ActionFieldConfigResult.new actionfieldconfigresult_tmp.deserialize(i) @Results << actionfieldconfigresult_tmp end end unless params['ResourceOffline'].nil? @ResourceOffline = [] params['ResourceOffline'].each do |i| resourceoffline_tmp = ResourceOffline.new resourceoffline_tmp.deserialize(i) @ResourceOffline << resourceoffline_tmp end end @RequestId = params['RequestId'] end end # DescribeActionLibraryList请求参数结构体 class DescribeActionLibraryListRequest < TencentCloud::Common::AbstractModel # @param Limit: 0-100 # @type Limit: Integer # @param Offset: 默认值0 # @type Offset: Integer # @param ObjectType: 对象类型ID # @type ObjectType: Integer # @param Filters: Keyword取值{"动作名称": "a_title", "描述": "a_desc", "动作类型": "a_type", "创建时间": "a_create_time", "二级分类": "a_resource_type"} # @type Filters: Array # @param Attribute: 动作分类,1表示故障动作,2表示恢复动作 # @type Attribute: Array # @param ActionIds: 筛选项 -动作ID # @type ActionIds: Array attr_accessor :Limit, :Offset, :ObjectType, :Filters, :Attribute, :ActionIds def initialize(limit=nil, offset=nil, objecttype=nil, filters=nil, attribute=nil, actionids=nil) @Limit = limit @Offset = offset @ObjectType = objecttype @Filters = filters @Attribute = attribute @ActionIds = actionids end def deserialize(params) @Limit = params['Limit'] @Offset = params['Offset'] @ObjectType = params['ObjectType'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| actionfilter_tmp = ActionFilter.new actionfilter_tmp.deserialize(i) @Filters << actionfilter_tmp end end @Attribute = params['Attribute'] @ActionIds = params['ActionIds'] end end # DescribeActionLibraryList返回参数结构体 class DescribeActionLibraryListResponse < TencentCloud::Common::AbstractModel # @param Results: 查询结果列表 # @type Results: Array # @param Total: 符合记录条数 # @type Total: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Results, :Total, :RequestId def initialize(results=nil, total=nil, requestid=nil) @Results = results @Total = total @RequestId = requestid end def deserialize(params) unless params['Results'].nil? @Results = [] params['Results'].each do |i| actionlibrarylistresult_tmp = ActionLibraryListResult.new actionlibrarylistresult_tmp.deserialize(i) @Results << actionlibrarylistresult_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end end # DescribeObjectTypeList请求参数结构体 class DescribeObjectTypeListRequest < TencentCloud::Common::AbstractModel # @param SupportType: 所支持的对象 # 0:全平台产品 # 1:平台接入的对象 # 2:应用所支持的部分对象 # @type SupportType: Integer attr_accessor :SupportType def initialize(supporttype=nil) @SupportType = supporttype end def deserialize(params) @SupportType = params['SupportType'] end end # DescribeObjectTypeList返回参数结构体 class DescribeObjectTypeListResponse < TencentCloud::Common::AbstractModel # @param ObjectTypeList: 对象类型列表 # @type ObjectTypeList: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ObjectTypeList, :RequestId def initialize(objecttypelist=nil, requestid=nil) @ObjectTypeList = objecttypelist @RequestId = requestid end def deserialize(params) unless params['ObjectTypeList'].nil? @ObjectTypeList = [] params['ObjectTypeList'].each do |i| objecttype_tmp = ObjectType.new objecttype_tmp.deserialize(i) @ObjectTypeList << objecttype_tmp end end @RequestId = params['RequestId'] end end # 查询-保护策略 class DescribePolicy < TencentCloud::Common::AbstractModel # @param TaskPolicyIdList: 保护策略ID列表 # @type TaskPolicyIdList: Array # @param TaskPolicyStatus: 保护策略状态 # @type TaskPolicyStatus: String # @param TaskPolicyRule: 策略规则 # @type TaskPolicyRule: String # @param TaskPolicyDealType: 护栏策略生效处理策略 1:顺序执行,2:暂停 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPolicyDealType: Integer attr_accessor :TaskPolicyIdList, :TaskPolicyStatus, :TaskPolicyRule, :TaskPolicyDealType def initialize(taskpolicyidlist=nil, taskpolicystatus=nil, taskpolicyrule=nil, taskpolicydealtype=nil) @TaskPolicyIdList = taskpolicyidlist @TaskPolicyStatus = taskpolicystatus @TaskPolicyRule = taskpolicyrule @TaskPolicyDealType = taskpolicydealtype end def deserialize(params) @TaskPolicyIdList = params['TaskPolicyIdList'] @TaskPolicyStatus = params['TaskPolicyStatus'] @TaskPolicyRule = params['TaskPolicyRule'] @TaskPolicyDealType = params['TaskPolicyDealType'] end end # DescribeTaskExecuteLogs请求参数结构体 class DescribeTaskExecuteLogsRequest < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer # @param Limit: 返回的内容行数 # @type Limit: Integer # @param Offset: 日志起始的行数。 # @type Offset: Integer attr_accessor :TaskId, :Limit, :Offset def initialize(taskid=nil, limit=nil, offset=nil) @TaskId = taskid @Limit = limit @Offset = offset end def deserialize(params) @TaskId = params['TaskId'] @Limit = params['Limit'] @Offset = params['Offset'] end end # DescribeTaskExecuteLogs返回参数结构体 class DescribeTaskExecuteLogsResponse < TencentCloud::Common::AbstractModel # @param LogMessage: 日志数据 # @type LogMessage: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :LogMessage, :RequestId def initialize(logmessage=nil, requestid=nil) @LogMessage = logmessage @RequestId = requestid end def deserialize(params) @LogMessage = params['LogMessage'] @RequestId = params['RequestId'] end end # DescribeTaskList请求参数结构体 class DescribeTaskListRequest < TencentCloud::Common::AbstractModel # @param Limit: 分页Limit # @type Limit: Integer # @param Offset: 分页Offset # @type Offset: Integer # @param TaskTitle: 演练名称 # @type TaskTitle: String # @param TaskTag: 标签键 # @type TaskTag: Array # @param TaskStatus: 任务状态(1001 -- 未开始 1002 -- 进行中 1003 -- 暂停中 1004 -- 任务结束) # @type TaskStatus: Integer # @param TaskStartTime: 开始时间,固定格式%Y-%m-%d %H:%M:%S # @type TaskStartTime: String # @param TaskEndTime: 结束时间,固定格式%Y-%m-%d %H:%M:%S # @type TaskEndTime: String # @param TaskUpdateTime: 更新时间,固定格式%Y-%m-%d %H:%M:%S # @type TaskUpdateTime: String # @param Tags: 标签对 # @type Tags: Array # @param Filters: 筛选条件 # @type Filters: Array # @param TaskId: 演练ID # @type TaskId: Array # @param ApplicationId: 关联应用ID筛选 # @type ApplicationId: Array # @param ApplicationName: 关联应用筛选 # @type ApplicationName: Array # @param TaskStatusList: 任务状态筛选--支持多选 任务状态(1001 -- 未开始 1002 -- 进行中 1003 -- 暂停中 1004 -- 任务结束) # @type TaskStatusList: Array attr_accessor :Limit, :Offset, :TaskTitle, :TaskTag, :TaskStatus, :TaskStartTime, :TaskEndTime, :TaskUpdateTime, :Tags, :Filters, :TaskId, :ApplicationId, :ApplicationName, :TaskStatusList def initialize(limit=nil, offset=nil, tasktitle=nil, tasktag=nil, taskstatus=nil, taskstarttime=nil, taskendtime=nil, taskupdatetime=nil, tags=nil, filters=nil, taskid=nil, applicationid=nil, applicationname=nil, taskstatuslist=nil) @Limit = limit @Offset = offset @TaskTitle = tasktitle @TaskTag = tasktag @TaskStatus = taskstatus @TaskStartTime = taskstarttime @TaskEndTime = taskendtime @TaskUpdateTime = taskupdatetime @Tags = tags @Filters = filters @TaskId = taskid @ApplicationId = applicationid @ApplicationName = applicationname @TaskStatusList = taskstatuslist end def deserialize(params) @Limit = params['Limit'] @Offset = params['Offset'] @TaskTitle = params['TaskTitle'] @TaskTag = params['TaskTag'] @TaskStatus = params['TaskStatus'] @TaskStartTime = params['TaskStartTime'] @TaskEndTime = params['TaskEndTime'] @TaskUpdateTime = params['TaskUpdateTime'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagwithdescribe_tmp = TagWithDescribe.new tagwithdescribe_tmp.deserialize(i) @Tags << tagwithdescribe_tmp end end unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| actionfilter_tmp = ActionFilter.new actionfilter_tmp.deserialize(i) @Filters << actionfilter_tmp end end @TaskId = params['TaskId'] @ApplicationId = params['ApplicationId'] @ApplicationName = params['ApplicationName'] @TaskStatusList = params['TaskStatusList'] end end # DescribeTaskList返回参数结构体 class DescribeTaskListResponse < TencentCloud::Common::AbstractModel # @param TaskList: 无 # @type TaskList: Array # @param Total: 列表数量 # @type Total: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TaskList, :Total, :RequestId def initialize(tasklist=nil, total=nil, requestid=nil) @TaskList = tasklist @Total = total @RequestId = requestid end def deserialize(params) unless params['TaskList'].nil? @TaskList = [] params['TaskList'].each do |i| tasklistitem_tmp = TaskListItem.new tasklistitem_tmp.deserialize(i) @TaskList << tasklistitem_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end end # DescribeTaskPolicyTriggerLog请求参数结构体 class DescribeTaskPolicyTriggerLogRequest < TencentCloud::Common::AbstractModel # @param TaskId: 演练ID # @type TaskId: Integer # @param Page: 页码 # @type Page: Integer # @param PageSize: 页数量 # @type PageSize: Integer attr_accessor :TaskId, :Page, :PageSize def initialize(taskid=nil, page=nil, pagesize=nil) @TaskId = taskid @Page = page @PageSize = pagesize end def deserialize(params) @TaskId = params['TaskId'] @Page = params['Page'] @PageSize = params['PageSize'] end end # DescribeTaskPolicyTriggerLog返回参数结构体 class DescribeTaskPolicyTriggerLogResponse < TencentCloud::Common::AbstractModel # @param TriggerLogs: 触发日志 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TriggerLogs: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TriggerLogs, :RequestId def initialize(triggerlogs=nil, requestid=nil) @TriggerLogs = triggerlogs @RequestId = requestid end def deserialize(params) unless params['TriggerLogs'].nil? @TriggerLogs = [] params['TriggerLogs'].each do |i| policytriggerlog_tmp = PolicyTriggerLog.new policytriggerlog_tmp.deserialize(i) @TriggerLogs << policytriggerlog_tmp end end @RequestId = params['RequestId'] end end # DescribeTask请求参数结构体 class DescribeTaskRequest < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer attr_accessor :TaskId def initialize(taskid=nil) @TaskId = taskid end def deserialize(params) @TaskId = params['TaskId'] end end # DescribeTask返回参数结构体 class DescribeTaskResponse < TencentCloud::Common::AbstractModel # @param Task: 任务信息 # @type Task: :class:`Tencentcloud::Cfg.v20210820.models.Task` # @param ReportInfo: 任务对应的演练报告信息,null表示未导出报告 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ReportInfo: :class:`Tencentcloud::Cfg.v20210820.models.TaskReportInfo` # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Task, :ReportInfo, :RequestId def initialize(task=nil, reportinfo=nil, requestid=nil) @Task = task @ReportInfo = reportinfo @RequestId = requestid end def deserialize(params) unless params['Task'].nil? @Task = Task.new @Task.deserialize(params['Task']) end unless params['ReportInfo'].nil? @ReportInfo = TaskReportInfo.new @ReportInfo.deserialize(params['ReportInfo']) end @RequestId = params['RequestId'] end end # DescribeTemplateList请求参数结构体 class DescribeTemplateListRequest < TencentCloud::Common::AbstractModel # @param Limit: 分页Limit, 最大值100 # @type Limit: Integer # @param Offset: 分页Offset # @type Offset: Integer # @param Title: 演练名称 # @type Title: String # @param Tag: 标签键 # @type Tag: Array # @param IsUsed: 状态,1---使用中, 2---停用 # @type IsUsed: Integer # @param Tags: 标签对 # @type Tags: Array # @param TemplateSource: 经验来源 0-自建 1-专家推荐 # @type TemplateSource: Integer # @param TemplateIdList: 经验ID # @type TemplateIdList: Array # @param Filters: 过滤参数 # @type Filters: Array attr_accessor :Limit, :Offset, :Title, :Tag, :IsUsed, :Tags, :TemplateSource, :TemplateIdList, :Filters def initialize(limit=nil, offset=nil, title=nil, tag=nil, isused=nil, tags=nil, templatesource=nil, templateidlist=nil, filters=nil) @Limit = limit @Offset = offset @Title = title @Tag = tag @IsUsed = isused @Tags = tags @TemplateSource = templatesource @TemplateIdList = templateidlist @Filters = filters end def deserialize(params) @Limit = params['Limit'] @Offset = params['Offset'] @Title = params['Title'] @Tag = params['Tag'] @IsUsed = params['IsUsed'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagwithdescribe_tmp = TagWithDescribe.new tagwithdescribe_tmp.deserialize(i) @Tags << tagwithdescribe_tmp end end @TemplateSource = params['TemplateSource'] @TemplateIdList = params['TemplateIdList'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| actionfilter_tmp = ActionFilter.new actionfilter_tmp.deserialize(i) @Filters << actionfilter_tmp end end end end # DescribeTemplateList返回参数结构体 class DescribeTemplateListResponse < TencentCloud::Common::AbstractModel # @param TemplateList: 经验库列表 # @type TemplateList: Array # @param Total: 列表数量 # @type Total: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TemplateList, :Total, :RequestId def initialize(templatelist=nil, total=nil, requestid=nil) @TemplateList = templatelist @Total = total @RequestId = requestid end def deserialize(params) unless params['TemplateList'].nil? @TemplateList = [] params['TemplateList'].each do |i| templatelistitem_tmp = TemplateListItem.new templatelistitem_tmp.deserialize(i) @TemplateList << templatelistitem_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end end # DescribeTemplate请求参数结构体 class DescribeTemplateRequest < TencentCloud::Common::AbstractModel # @param TemplateId: 经验库ID # @type TemplateId: Integer attr_accessor :TemplateId def initialize(templateid=nil) @TemplateId = templateid end def deserialize(params) @TemplateId = params['TemplateId'] end end # DescribeTemplate返回参数结构体 class DescribeTemplateResponse < TencentCloud::Common::AbstractModel # @param Template: 经验库详情 # @type Template: :class:`Tencentcloud::Cfg.v20210820.models.Template` # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Template, :RequestId def initialize(template=nil, requestid=nil) @Template = template @RequestId = requestid end def deserialize(params) unless params['Template'].nil? @Template = Template.new @Template.deserialize(params['Template']) end @RequestId = params['RequestId'] end end # ExecuteTaskInstance请求参数结构体 class ExecuteTaskInstanceRequest < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer # @param TaskActionId: 任务动作ID # @type TaskActionId: Integer # @param TaskInstanceIds: 任务动作实例ID # @type TaskInstanceIds: Array # @param IsOperateAll: 是否操作整个任务 # @type IsOperateAll: Boolean # @param ActionType: 操作类型:(1--启动 2--执行 3--跳过 5--重试) # @type ActionType: Integer # @param TaskGroupId: 动作组ID # @type TaskGroupId: Integer attr_accessor :TaskId, :TaskActionId, :TaskInstanceIds, :IsOperateAll, :ActionType, :TaskGroupId def initialize(taskid=nil, taskactionid=nil, taskinstanceids=nil, isoperateall=nil, actiontype=nil, taskgroupid=nil) @TaskId = taskid @TaskActionId = taskactionid @TaskInstanceIds = taskinstanceids @IsOperateAll = isoperateall @ActionType = actiontype @TaskGroupId = taskgroupid end def deserialize(params) @TaskId = params['TaskId'] @TaskActionId = params['TaskActionId'] @TaskInstanceIds = params['TaskInstanceIds'] @IsOperateAll = params['IsOperateAll'] @ActionType = params['ActionType'] @TaskGroupId = params['TaskGroupId'] end end # ExecuteTaskInstance返回参数结构体 class ExecuteTaskInstanceResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ExecuteTask请求参数结构体 class ExecuteTaskRequest < TencentCloud::Common::AbstractModel # @param TaskId: 需要执行的任务ID # @type TaskId: Integer attr_accessor :TaskId def initialize(taskid=nil) @TaskId = taskid end def deserialize(params) @TaskId = params['TaskId'] end end # ExecuteTask返回参数结构体 class ExecuteTaskResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyTaskRunStatus请求参数结构体 class ModifyTaskRunStatusRequest < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer # @param Status: 任务状态, 1001--未开始 1002--进行中(执行)1003--进行中(暂停)1004--执行结束 # @type Status: Integer # @param IsExpect: 执行结果是否符合预期(当前扭转状态为执行结束时,需要必传此字段) # @type IsExpect: Boolean # @param Summary: 演习结论(当演习状态转变为执行结束时,需要填写此字段) # @type Summary: String # @param Issue: 问题以及改进 # @type Issue: String # @param Record: 演练记录 # @type Record: String attr_accessor :TaskId, :Status, :IsExpect, :Summary, :Issue, :Record def initialize(taskid=nil, status=nil, isexpect=nil, summary=nil, issue=nil, record=nil) @TaskId = taskid @Status = status @IsExpect = isexpect @Summary = summary @Issue = issue @Record = record end def deserialize(params) @TaskId = params['TaskId'] @Status = params['Status'] @IsExpect = params['IsExpect'] @Summary = params['Summary'] @Issue = params['Issue'] @Record = params['Record'] end end # ModifyTaskRunStatus返回参数结构体 class ModifyTaskRunStatusResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 对象类型 class ObjectType < TencentCloud::Common::AbstractModel # @param ObjectTypeId: 对象类型ID # @type ObjectTypeId: Integer # @param ObjectTypeTitle: 对象类型名称 # @type ObjectTypeTitle: String # @param ObjectTypeLevelOne: 对象类型第一级 # @type ObjectTypeLevelOne: String # @param ObjectTypeParams: 对象类型参数 # @type ObjectTypeParams: :class:`Tencentcloud::Cfg.v20210820.models.ObjectTypeConfig` # @param ObjectTypeJsonParse: tke接口json解析规则,null不需要解析 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ObjectTypeJsonParse: :class:`Tencentcloud::Cfg.v20210820.models.ObjectTypeJsonParse` # @param ObjectHasNewAction: 是否包含新动作 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ObjectHasNewAction: Boolean # @param ObjectPlatformName: 对应在平台架构图中的资源类型名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ObjectPlatformName: String # @param ObjectSupportType: 1:平台支持的对象 2:应用支持的部分对象 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ObjectSupportType: Integer attr_accessor :ObjectTypeId, :ObjectTypeTitle, :ObjectTypeLevelOne, :ObjectTypeParams, :ObjectTypeJsonParse, :ObjectHasNewAction, :ObjectPlatformName, :ObjectSupportType def initialize(objecttypeid=nil, objecttypetitle=nil, objecttypelevelone=nil, objecttypeparams=nil, objecttypejsonparse=nil, objecthasnewaction=nil, objectplatformname=nil, objectsupporttype=nil) @ObjectTypeId = objecttypeid @ObjectTypeTitle = objecttypetitle @ObjectTypeLevelOne = objecttypelevelone @ObjectTypeParams = objecttypeparams @ObjectTypeJsonParse = objecttypejsonparse @ObjectHasNewAction = objecthasnewaction @ObjectPlatformName = objectplatformname @ObjectSupportType = objectsupporttype end def deserialize(params) @ObjectTypeId = params['ObjectTypeId'] @ObjectTypeTitle = params['ObjectTypeTitle'] @ObjectTypeLevelOne = params['ObjectTypeLevelOne'] unless params['ObjectTypeParams'].nil? @ObjectTypeParams = ObjectTypeConfig.new @ObjectTypeParams.deserialize(params['ObjectTypeParams']) end unless params['ObjectTypeJsonParse'].nil? @ObjectTypeJsonParse = ObjectTypeJsonParse.new @ObjectTypeJsonParse.deserialize(params['ObjectTypeJsonParse']) end @ObjectHasNewAction = params['ObjectHasNewAction'] @ObjectPlatformName = params['ObjectPlatformName'] @ObjectSupportType = params['ObjectSupportType'] end end # 对象类型配置 class ObjectTypeConfig < TencentCloud::Common::AbstractModel # @param Key: 主键 # @type Key: String # @param Fields: 对象类型配置字段列表 # @type Fields: Array attr_accessor :Key, :Fields def initialize(key=nil, fields=nil) @Key = key @Fields = fields end def deserialize(params) @Key = params['Key'] unless params['Fields'].nil? @Fields = [] params['Fields'].each do |i| objecttypeconfigfields_tmp = ObjectTypeConfigFields.new objecttypeconfigfields_tmp.deserialize(i) @Fields << objecttypeconfigfields_tmp end end end end # 对象类型字段类型 class ObjectTypeConfigFields < TencentCloud::Common::AbstractModel # @param Key: instanceId # @type Key: String # @param Header: 实例id # @type Header: String # @param Transfer: 字段值是否需要转译,当不需要转译时,此字段返回null # 注意:此字段可能返回 null,表示取不到有效值。 # @type Transfer: String # @param JsonParse: tke的pod字段信息解析 # 注意:此字段可能返回 null,表示取不到有效值。 # @type JsonParse: String attr_accessor :Key, :Header, :Transfer, :JsonParse def initialize(key=nil, header=nil, transfer=nil, jsonparse=nil) @Key = key @Header = header @Transfer = transfer @JsonParse = jsonparse end def deserialize(params) @Key = params['Key'] @Header = params['Header'] @Transfer = params['Transfer'] @JsonParse = params['JsonParse'] end end # 标准pod对象类型下拉数据的解析 class ObjectTypeJsonParse < TencentCloud::Common::AbstractModel # @param NameSpace: 命名空间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NameSpace: String # @param WorkloadName: 工作负载名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type WorkloadName: String # @param LanIP: 节点IP # 注意:此字段可能返回 null,表示取不到有效值。 # @type LanIP: String # @param InstanceId: 节点ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String attr_accessor :NameSpace, :WorkloadName, :LanIP, :InstanceId def initialize(namespace=nil, workloadname=nil, lanip=nil, instanceid=nil) @NameSpace = namespace @WorkloadName = workloadname @LanIP = lanip @InstanceId = instanceid end def deserialize(params) @NameSpace = params['NameSpace'] @WorkloadName = params['WorkloadName'] @LanIP = params['LanIP'] @InstanceId = params['InstanceId'] end end # 护栏策略触发日志 class PolicyTriggerLog < TencentCloud::Common::AbstractModel # @param TaskId: 演练ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskId: Integer # @param Name: 名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Name: String # @param TriggerType: 类型,0--触发,1--恢复 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TriggerType: Integer # @param Content: 内容 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Content: String # @param CreatTime: 触发时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CreatTime: String attr_accessor :TaskId, :Name, :TriggerType, :Content, :CreatTime def initialize(taskid=nil, name=nil, triggertype=nil, content=nil, creattime=nil) @TaskId = taskid @Name = name @TriggerType = triggertype @Content = content @CreatTime = creattime end def deserialize(params) @TaskId = params['TaskId'] @Name = params['Name'] @TriggerType = params['TriggerType'] @Content = params['Content'] @CreatTime = params['CreatTime'] end end # 资源下线 class ResourceOffline < TencentCloud::Common::AbstractModel # @param ResourceId: 资源ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceId: Integer # @param ResourceDeleteTime: 资源下线时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceDeleteTime: String # @param ResourceDeleteMessage: 资源下线提示 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceDeleteMessage: String attr_accessor :ResourceId, :ResourceDeleteTime, :ResourceDeleteMessage def initialize(resourceid=nil, resourcedeletetime=nil, resourcedeletemessage=nil) @ResourceId = resourceid @ResourceDeleteTime = resourcedeletetime @ResourceDeleteMessage = resourcedeletemessage end def deserialize(params) @ResourceId = params['ResourceId'] @ResourceDeleteTime = params['ResourceDeleteTime'] @ResourceDeleteMessage = params['ResourceDeleteMessage'] end end # 用于传入创建、编辑标签 class TagWithCreate < TencentCloud::Common::AbstractModel # @param TagKey: 标签键 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TagKey: String # @param TagValue: 标签值 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TagValue: String attr_accessor :TagKey, :TagValue def initialize(tagkey=nil, tagvalue=nil) @TagKey = tagkey @TagValue = tagvalue end def deserialize(params) @TagKey = params['TagKey'] @TagValue = params['TagValue'] end end # 展示标签列表 class TagWithDescribe < TencentCloud::Common::AbstractModel # @param TagKey: 标签键 # @type TagKey: String # @param TagValue: 标签值 # @type TagValue: String attr_accessor :TagKey, :TagValue def initialize(tagkey=nil, tagvalue=nil) @TagKey = tagkey @TagValue = tagvalue end def deserialize(params) @TagKey = params['TagKey'] @TagValue = params['TagValue'] end end # 任务 class Task < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer # @param TaskTitle: 任务标题 # @type TaskTitle: String # @param TaskDescription: 任务描述 # @type TaskDescription: String # @param TaskTag: 自定义标签 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskTag: String # @param TaskStatus: 任务状态,1001--未开始 1002--进行中(执行)1003--进行中(暂停)1004--执行结束 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskStatus: Integer # @param TaskStatusType: 任务结束状态,表明任务以何种状态结束: 0 -- 尚未结束,1 -- 成功,2-- 失败,3--终止 # @type TaskStatusType: Integer # @param TaskProtectStrategy: 保护策略 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskProtectStrategy: String # @param TaskCreateTime: 任务创建时间 # @type TaskCreateTime: String # @param TaskUpdateTime: 任务更新时间 # @type TaskUpdateTime: String # @param TaskGroups: 任务动作组 # @type TaskGroups: Array # @param TaskStartTime: 开始时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskStartTime: String # @param TaskEndTime: 结束时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskEndTime: String # @param TaskExpect: 是否符合预期。1:符合预期,2:不符合预期 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskExpect: Integer # @param TaskSummary: 演习记录 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskSummary: String # @param TaskMode: 任务模式。1:手工执行,2:自动执行 # @type TaskMode: Integer # @param TaskPauseDuration: 自动暂停时长。单位分钟 # @type TaskPauseDuration: Integer # @param TaskOwnerUin: 演练创建者Uin # @type TaskOwnerUin: String # @param TaskRegionId: 地域ID # @type TaskRegionId: Integer # @param TaskMonitors: 监控指标列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskMonitors: Array # @param TaskPolicy: 保护策略 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPolicy: :class:`Tencentcloud::Cfg.v20210820.models.DescribePolicy` # @param Tags: 标签列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Tags: Array # @param TaskPlanId: 关联的演练计划ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPlanId: Integer # @param TaskPlanTitle: 关联的演练计划名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPlanTitle: String # @param ApplicationId: 关联的应用ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ApplicationId: String # @param ApplicationName: 关联的应用名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ApplicationName: String # @param AlarmPolicy: 关联的告警指标 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AlarmPolicy: Array # @param ApmServiceList: 关联的APM服务 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ApmServiceList: Array # @param VerifyId: 关联的隐患验证项ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type VerifyId: Integer # @param PolicyDealType: 护栏处理方式,1--顺序回滚,2--演练暂停 # 注意:此字段可能返回 null,表示取不到有效值。 # @type PolicyDealType: Integer # @param TaskPlanStartTime: 计划开始时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPlanStartTime: String # @param TaskPlanEndTime: 计划结束时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPlanEndTime: String # @param TaskOrg: 人员组织 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskOrg: Array # @param TaskIssue: 问题和改进 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskIssue: String # @param TaskRegionName: region信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskRegionName: String attr_accessor :TaskId, :TaskTitle, :TaskDescription, :TaskTag, :TaskStatus, :TaskStatusType, :TaskProtectStrategy, :TaskCreateTime, :TaskUpdateTime, :TaskGroups, :TaskStartTime, :TaskEndTime, :TaskExpect, :TaskSummary, :TaskMode, :TaskPauseDuration, :TaskOwnerUin, :TaskRegionId, :TaskMonitors, :TaskPolicy, :Tags, :TaskPlanId, :TaskPlanTitle, :ApplicationId, :ApplicationName, :AlarmPolicy, :ApmServiceList, :VerifyId, :PolicyDealType, :TaskPlanStartTime, :TaskPlanEndTime, :TaskOrg, :TaskIssue, :TaskRegionName def initialize(taskid=nil, tasktitle=nil, taskdescription=nil, tasktag=nil, taskstatus=nil, taskstatustype=nil, taskprotectstrategy=nil, taskcreatetime=nil, taskupdatetime=nil, taskgroups=nil, taskstarttime=nil, taskendtime=nil, taskexpect=nil, tasksummary=nil, taskmode=nil, taskpauseduration=nil, taskowneruin=nil, taskregionid=nil, taskmonitors=nil, taskpolicy=nil, tags=nil, taskplanid=nil, taskplantitle=nil, applicationid=nil, applicationname=nil, alarmpolicy=nil, apmservicelist=nil, verifyid=nil, policydealtype=nil, taskplanstarttime=nil, taskplanendtime=nil, taskorg=nil, taskissue=nil, taskregionname=nil) @TaskId = taskid @TaskTitle = tasktitle @TaskDescription = taskdescription @TaskTag = tasktag @TaskStatus = taskstatus @TaskStatusType = taskstatustype @TaskProtectStrategy = taskprotectstrategy @TaskCreateTime = taskcreatetime @TaskUpdateTime = taskupdatetime @TaskGroups = taskgroups @TaskStartTime = taskstarttime @TaskEndTime = taskendtime @TaskExpect = taskexpect @TaskSummary = tasksummary @TaskMode = taskmode @TaskPauseDuration = taskpauseduration @TaskOwnerUin = taskowneruin @TaskRegionId = taskregionid @TaskMonitors = taskmonitors @TaskPolicy = taskpolicy @Tags = tags @TaskPlanId = taskplanid @TaskPlanTitle = taskplantitle @ApplicationId = applicationid @ApplicationName = applicationname @AlarmPolicy = alarmpolicy @ApmServiceList = apmservicelist @VerifyId = verifyid @PolicyDealType = policydealtype @TaskPlanStartTime = taskplanstarttime @TaskPlanEndTime = taskplanendtime @TaskOrg = taskorg @TaskIssue = taskissue @TaskRegionName = taskregionname end def deserialize(params) @TaskId = params['TaskId'] @TaskTitle = params['TaskTitle'] @TaskDescription = params['TaskDescription'] @TaskTag = params['TaskTag'] @TaskStatus = params['TaskStatus'] @TaskStatusType = params['TaskStatusType'] @TaskProtectStrategy = params['TaskProtectStrategy'] @TaskCreateTime = params['TaskCreateTime'] @TaskUpdateTime = params['TaskUpdateTime'] unless params['TaskGroups'].nil? @TaskGroups = [] params['TaskGroups'].each do |i| taskgroup_tmp = TaskGroup.new taskgroup_tmp.deserialize(i) @TaskGroups << taskgroup_tmp end end @TaskStartTime = params['TaskStartTime'] @TaskEndTime = params['TaskEndTime'] @TaskExpect = params['TaskExpect'] @TaskSummary = params['TaskSummary'] @TaskMode = params['TaskMode'] @TaskPauseDuration = params['TaskPauseDuration'] @TaskOwnerUin = params['TaskOwnerUin'] @TaskRegionId = params['TaskRegionId'] unless params['TaskMonitors'].nil? @TaskMonitors = [] params['TaskMonitors'].each do |i| taskmonitor_tmp = TaskMonitor.new taskmonitor_tmp.deserialize(i) @TaskMonitors << taskmonitor_tmp end end unless params['TaskPolicy'].nil? @TaskPolicy = DescribePolicy.new @TaskPolicy.deserialize(params['TaskPolicy']) end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagwithdescribe_tmp = TagWithDescribe.new tagwithdescribe_tmp.deserialize(i) @Tags << tagwithdescribe_tmp end end @TaskPlanId = params['TaskPlanId'] @TaskPlanTitle = params['TaskPlanTitle'] @ApplicationId = params['ApplicationId'] @ApplicationName = params['ApplicationName'] @AlarmPolicy = params['AlarmPolicy'] unless params['ApmServiceList'].nil? @ApmServiceList = [] params['ApmServiceList'].each do |i| apmserviceinfo_tmp = ApmServiceInfo.new apmserviceinfo_tmp.deserialize(i) @ApmServiceList << apmserviceinfo_tmp end end @VerifyId = params['VerifyId'] @PolicyDealType = params['PolicyDealType'] @TaskPlanStartTime = params['TaskPlanStartTime'] @TaskPlanEndTime = params['TaskPlanEndTime'] unless params['TaskOrg'].nil? @TaskOrg = [] params['TaskOrg'].each do |i| taskorg_tmp = TaskOrg.new taskorg_tmp.deserialize(i) @TaskOrg << taskorg_tmp end end @TaskIssue = params['TaskIssue'] @TaskRegionName = params['TaskRegionName'] end end # 从经验模板创建演练时需要配置的任务参数 class TaskConfig < TencentCloud::Common::AbstractModel # @param TaskGroupsConfig: 动作组配置,需要保证配置个数和经验中的动作组个数一致 # @type TaskGroupsConfig: Array # @param TaskTitle: 更改后的演练名称,不填则默认取经验名称 # @type TaskTitle: String # @param TaskDescription: 更改后的演练描述,不填则默认取经验描述 # @type TaskDescription: String # @param TaskMode: 演练执行模式:1----手工执行/ 2 ---自动执行,不填则默认取经验执行模式 # @type TaskMode: Integer # @param TaskPauseDuration: 演练自动暂停时间,单位分钟, 不填则默认取经验自动暂停时间 # @type TaskPauseDuration: Integer # @param Tags: 演练标签信息,不填则默认取经验标签 # @type Tags: Array # @param PolicyDealType: 护栏处理方式,1--顺序回滚,2--演练暂停 # @type PolicyDealType: Integer attr_accessor :TaskGroupsConfig, :TaskTitle, :TaskDescription, :TaskMode, :TaskPauseDuration, :Tags, :PolicyDealType def initialize(taskgroupsconfig=nil, tasktitle=nil, taskdescription=nil, taskmode=nil, taskpauseduration=nil, tags=nil, policydealtype=nil) @TaskGroupsConfig = taskgroupsconfig @TaskTitle = tasktitle @TaskDescription = taskdescription @TaskMode = taskmode @TaskPauseDuration = taskpauseduration @Tags = tags @PolicyDealType = policydealtype end def deserialize(params) unless params['TaskGroupsConfig'].nil? @TaskGroupsConfig = [] params['TaskGroupsConfig'].each do |i| taskgroupconfig_tmp = TaskGroupConfig.new taskgroupconfig_tmp.deserialize(i) @TaskGroupsConfig << taskgroupconfig_tmp end end @TaskTitle = params['TaskTitle'] @TaskDescription = params['TaskDescription'] @TaskMode = params['TaskMode'] @TaskPauseDuration = params['TaskPauseDuration'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagwithcreate_tmp = TagWithCreate.new tagwithcreate_tmp.deserialize(i) @Tags << tagwithcreate_tmp end end @PolicyDealType = params['PolicyDealType'] end end # 任务分组 class TaskGroup < TencentCloud::Common::AbstractModel # @param TaskGroupId: 任务动作ID # @type TaskGroupId: Integer # @param TaskGroupTitle: 分组标题 # @type TaskGroupTitle: String # @param TaskGroupDescription: 分组描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupDescription: String # @param TaskGroupOrder: 任务分组顺序 # @type TaskGroupOrder: Integer # @param ObjectTypeId: 对象类型ID # @type ObjectTypeId: Integer # @param TaskGroupCreateTime: 任务分组创建时间 # @type TaskGroupCreateTime: String # @param TaskGroupUpdateTime: 任务分组更新时间 # @type TaskGroupUpdateTime: String # @param TaskGroupActions: 动作分组动作列表 # @type TaskGroupActions: Array # @param TaskGroupInstanceList: 实例列表 # @type TaskGroupInstanceList: Array # @param TaskGroupMode: 执行模式。1 --- 顺序执行,2 --- 阶段执行 # @type TaskGroupMode: Integer # @param TaskGroupDiscardInstanceList: 不参演的实例列表 # @type TaskGroupDiscardInstanceList: Array # @param TaskGroupSelectedInstanceList: 参演实例列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupSelectedInstanceList: Array # @param TaskGroupInstancesExecuteRule: 机器选取规则 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstancesExecuteRule: Array attr_accessor :TaskGroupId, :TaskGroupTitle, :TaskGroupDescription, :TaskGroupOrder, :ObjectTypeId, :TaskGroupCreateTime, :TaskGroupUpdateTime, :TaskGroupActions, :TaskGroupInstanceList, :TaskGroupMode, :TaskGroupDiscardInstanceList, :TaskGroupSelectedInstanceList, :TaskGroupInstancesExecuteRule def initialize(taskgroupid=nil, taskgrouptitle=nil, taskgroupdescription=nil, taskgrouporder=nil, objecttypeid=nil, taskgroupcreatetime=nil, taskgroupupdatetime=nil, taskgroupactions=nil, taskgroupinstancelist=nil, taskgroupmode=nil, taskgroupdiscardinstancelist=nil, taskgroupselectedinstancelist=nil, taskgroupinstancesexecuterule=nil) @TaskGroupId = taskgroupid @TaskGroupTitle = taskgrouptitle @TaskGroupDescription = taskgroupdescription @TaskGroupOrder = taskgrouporder @ObjectTypeId = objecttypeid @TaskGroupCreateTime = taskgroupcreatetime @TaskGroupUpdateTime = taskgroupupdatetime @TaskGroupActions = taskgroupactions @TaskGroupInstanceList = taskgroupinstancelist @TaskGroupMode = taskgroupmode @TaskGroupDiscardInstanceList = taskgroupdiscardinstancelist @TaskGroupSelectedInstanceList = taskgroupselectedinstancelist @TaskGroupInstancesExecuteRule = taskgroupinstancesexecuterule end def deserialize(params) @TaskGroupId = params['TaskGroupId'] @TaskGroupTitle = params['TaskGroupTitle'] @TaskGroupDescription = params['TaskGroupDescription'] @TaskGroupOrder = params['TaskGroupOrder'] @ObjectTypeId = params['ObjectTypeId'] @TaskGroupCreateTime = params['TaskGroupCreateTime'] @TaskGroupUpdateTime = params['TaskGroupUpdateTime'] unless params['TaskGroupActions'].nil? @TaskGroupActions = [] params['TaskGroupActions'].each do |i| taskgroupaction_tmp = TaskGroupAction.new taskgroupaction_tmp.deserialize(i) @TaskGroupActions << taskgroupaction_tmp end end @TaskGroupInstanceList = params['TaskGroupInstanceList'] @TaskGroupMode = params['TaskGroupMode'] @TaskGroupDiscardInstanceList = params['TaskGroupDiscardInstanceList'] @TaskGroupSelectedInstanceList = params['TaskGroupSelectedInstanceList'] unless params['TaskGroupInstancesExecuteRule'].nil? @TaskGroupInstancesExecuteRule = [] params['TaskGroupInstancesExecuteRule'].each do |i| taskgroupinstancesexecuterules_tmp = TaskGroupInstancesExecuteRules.new taskgroupinstancesexecuterules_tmp.deserialize(i) @TaskGroupInstancesExecuteRule << taskgroupinstancesexecuterules_tmp end end end end # 任务分组动作 class TaskGroupAction < TencentCloud::Common::AbstractModel # @param TaskGroupActionId: 任务分组动作ID # @type TaskGroupActionId: Integer # @param TaskGroupInstances: 任务分组动作实例列表 # @type TaskGroupInstances: Array # @param ActionId: 动作ID # @type ActionId: Integer # @param TaskGroupActionOrder: 分组动作顺序 # @type TaskGroupActionOrder: Integer # @param TaskGroupActionGeneralConfiguration: 分组动作通用配置 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupActionGeneralConfiguration: String # @param TaskGroupActionCustomConfiguration: 分组动作自定义配置 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupActionCustomConfiguration: String # @param TaskGroupActionStatus: 分组动作状态 # @type TaskGroupActionStatus: Integer # @param TaskGroupActionCreateTime: 动作分组创建时间 # @type TaskGroupActionCreateTime: String # @param TaskGroupActionUpdateTime: 动作分组更新时间 # @type TaskGroupActionUpdateTime: String # @param ActionTitle: 动作名称 # @type ActionTitle: String # @param TaskGroupActionStatusType: 状态类型: 0 -- 无状态,1 -- 成功,2-- 失败,3--终止,4--跳过 # @type TaskGroupActionStatusType: Integer # @param TaskGroupActionRandomId: RandomId # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupActionRandomId: Integer # @param TaskGroupActionRecoverId: RecoverId # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupActionRecoverId: Integer # @param TaskGroupActionExecuteId: ExecuteId # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupActionExecuteId: Integer # @param ActionApiType: 调用api类型,0:tat, 1:云api # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionApiType: Integer # @param ActionAttribute: 1:故障,2:恢复 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionAttribute: Integer # @param ActionType: 动作类型:平台、自定义 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionType: String # @param IsExecuteRedo: 是否可重试 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsExecuteRedo: Boolean # @param ActionRisk: 动作风险级别 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionRisk: String # @param TaskGroupActionExecuteTime: 动作运行时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupActionExecuteTime: Integer # @param TaskGroupActionStartTime: 动作开始执行时间 # @type TaskGroupActionStartTime: String attr_accessor :TaskGroupActionId, :TaskGroupInstances, :ActionId, :TaskGroupActionOrder, :TaskGroupActionGeneralConfiguration, :TaskGroupActionCustomConfiguration, :TaskGroupActionStatus, :TaskGroupActionCreateTime, :TaskGroupActionUpdateTime, :ActionTitle, :TaskGroupActionStatusType, :TaskGroupActionRandomId, :TaskGroupActionRecoverId, :TaskGroupActionExecuteId, :ActionApiType, :ActionAttribute, :ActionType, :IsExecuteRedo, :ActionRisk, :TaskGroupActionExecuteTime, :TaskGroupActionStartTime def initialize(taskgroupactionid=nil, taskgroupinstances=nil, actionid=nil, taskgroupactionorder=nil, taskgroupactiongeneralconfiguration=nil, taskgroupactioncustomconfiguration=nil, taskgroupactionstatus=nil, taskgroupactioncreatetime=nil, taskgroupactionupdatetime=nil, actiontitle=nil, taskgroupactionstatustype=nil, taskgroupactionrandomid=nil, taskgroupactionrecoverid=nil, taskgroupactionexecuteid=nil, actionapitype=nil, actionattribute=nil, actiontype=nil, isexecuteredo=nil, actionrisk=nil, taskgroupactionexecutetime=nil, taskgroupactionstarttime=nil) @TaskGroupActionId = taskgroupactionid @TaskGroupInstances = taskgroupinstances @ActionId = actionid @TaskGroupActionOrder = taskgroupactionorder @TaskGroupActionGeneralConfiguration = taskgroupactiongeneralconfiguration @TaskGroupActionCustomConfiguration = taskgroupactioncustomconfiguration @TaskGroupActionStatus = taskgroupactionstatus @TaskGroupActionCreateTime = taskgroupactioncreatetime @TaskGroupActionUpdateTime = taskgroupactionupdatetime @ActionTitle = actiontitle @TaskGroupActionStatusType = taskgroupactionstatustype @TaskGroupActionRandomId = taskgroupactionrandomid @TaskGroupActionRecoverId = taskgroupactionrecoverid @TaskGroupActionExecuteId = taskgroupactionexecuteid @ActionApiType = actionapitype @ActionAttribute = actionattribute @ActionType = actiontype @IsExecuteRedo = isexecuteredo @ActionRisk = actionrisk @TaskGroupActionExecuteTime = taskgroupactionexecutetime @TaskGroupActionStartTime = taskgroupactionstarttime end def deserialize(params) @TaskGroupActionId = params['TaskGroupActionId'] unless params['TaskGroupInstances'].nil? @TaskGroupInstances = [] params['TaskGroupInstances'].each do |i| taskgroupinstance_tmp = TaskGroupInstance.new taskgroupinstance_tmp.deserialize(i) @TaskGroupInstances << taskgroupinstance_tmp end end @ActionId = params['ActionId'] @TaskGroupActionOrder = params['TaskGroupActionOrder'] @TaskGroupActionGeneralConfiguration = params['TaskGroupActionGeneralConfiguration'] @TaskGroupActionCustomConfiguration = params['TaskGroupActionCustomConfiguration'] @TaskGroupActionStatus = params['TaskGroupActionStatus'] @TaskGroupActionCreateTime = params['TaskGroupActionCreateTime'] @TaskGroupActionUpdateTime = params['TaskGroupActionUpdateTime'] @ActionTitle = params['ActionTitle'] @TaskGroupActionStatusType = params['TaskGroupActionStatusType'] @TaskGroupActionRandomId = params['TaskGroupActionRandomId'] @TaskGroupActionRecoverId = params['TaskGroupActionRecoverId'] @TaskGroupActionExecuteId = params['TaskGroupActionExecuteId'] @ActionApiType = params['ActionApiType'] @ActionAttribute = params['ActionAttribute'] @ActionType = params['ActionType'] @IsExecuteRedo = params['IsExecuteRedo'] @ActionRisk = params['ActionRisk'] @TaskGroupActionExecuteTime = params['TaskGroupActionExecuteTime'] @TaskGroupActionStartTime = params['TaskGroupActionStartTime'] end end # 动作组中的动作参数 class TaskGroupActionConfig < TencentCloud::Common::AbstractModel # @param TaskGroupActionOrder: 该动作在动作组中的顺序,从1开始,不填或填错将匹配不到经验中要修改参数的动作 # @type TaskGroupActionOrder: Integer # @param TaskGroupActionGeneralConfiguration: 动作通用参数,需要json序列化传入,可以从查询经验详情接口获取,不填默认使用经验中动作参数 # @type TaskGroupActionGeneralConfiguration: String # @param TaskGroupActionCustomConfiguration: 动作自定义参数,需要json序列化传入,可以从查询经验详情接口获取,不填默认使用经验中动作参数 # @type TaskGroupActionCustomConfiguration: String attr_accessor :TaskGroupActionOrder, :TaskGroupActionGeneralConfiguration, :TaskGroupActionCustomConfiguration def initialize(taskgroupactionorder=nil, taskgroupactiongeneralconfiguration=nil, taskgroupactioncustomconfiguration=nil) @TaskGroupActionOrder = taskgroupactionorder @TaskGroupActionGeneralConfiguration = taskgroupactiongeneralconfiguration @TaskGroupActionCustomConfiguration = taskgroupactioncustomconfiguration end def deserialize(params) @TaskGroupActionOrder = params['TaskGroupActionOrder'] @TaskGroupActionGeneralConfiguration = params['TaskGroupActionGeneralConfiguration'] @TaskGroupActionCustomConfiguration = params['TaskGroupActionCustomConfiguration'] end end # 动作组的配置项 class TaskGroupConfig < TencentCloud::Common::AbstractModel # @param TaskGroupInstances: 动作组所关联的实例对象 # @type TaskGroupInstances: Array # @param TaskGroupTitle: 动作组标题,不填默认取经验中的动作组名称 # @type TaskGroupTitle: String # @param TaskGroupDescription: 动作组描述,不填默认取经验中的动作组描述 # @type TaskGroupDescription: String # @param TaskGroupMode: 动作执行模式。1 --- 顺序执行,2 --- 阶段执行, 不填默认取经验中的动作组执行模式 # @type TaskGroupMode: Integer # @param TaskGroupActionsConfig: 动作组中的动作参数,不填默认使用经验中的动作参数,配置时可以只指定想要修改参数的动作 # @type TaskGroupActionsConfig: Array attr_accessor :TaskGroupInstances, :TaskGroupTitle, :TaskGroupDescription, :TaskGroupMode, :TaskGroupActionsConfig def initialize(taskgroupinstances=nil, taskgrouptitle=nil, taskgroupdescription=nil, taskgroupmode=nil, taskgroupactionsconfig=nil) @TaskGroupInstances = taskgroupinstances @TaskGroupTitle = taskgrouptitle @TaskGroupDescription = taskgroupdescription @TaskGroupMode = taskgroupmode @TaskGroupActionsConfig = taskgroupactionsconfig end def deserialize(params) @TaskGroupInstances = params['TaskGroupInstances'] @TaskGroupTitle = params['TaskGroupTitle'] @TaskGroupDescription = params['TaskGroupDescription'] @TaskGroupMode = params['TaskGroupMode'] unless params['TaskGroupActionsConfig'].nil? @TaskGroupActionsConfig = [] params['TaskGroupActionsConfig'].each do |i| taskgroupactionconfig_tmp = TaskGroupActionConfig.new taskgroupactionconfig_tmp.deserialize(i) @TaskGroupActionsConfig << taskgroupactionconfig_tmp end end end end # 任务分组动作实例 class TaskGroupInstance < TencentCloud::Common::AbstractModel # @param TaskGroupInstanceId: 实例ID # @type TaskGroupInstanceId: Integer # @param TaskGroupInstanceObjectId: 实例ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstanceObjectId: String # @param TaskGroupInstanceStatus: 实例动作执行状态 # @type TaskGroupInstanceStatus: Integer # @param TaskGroupInstanceCreateTime: 实例创建时间 # @type TaskGroupInstanceCreateTime: String # @param TaskGroupInstanceUpdateTime: 实例更新时间 # @type TaskGroupInstanceUpdateTime: String # @param TaskGroupInstanceStatusType: 状态类型: 0 -- 无状态,1 -- 成功,2-- 失败,3--终止,4--跳过 # @type TaskGroupInstanceStatusType: Integer # @param TaskGroupInstanceStartTime: 执行开始时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstanceStartTime: String # @param TaskGroupInstanceEndTime: 执行结束时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstanceEndTime: String # @param TaskGroupInstanceExecuteLog: 实例动作执行日志 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstanceExecuteLog: String # @param TaskGroupInstanceIsRedo: 实例是否可重试 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstanceIsRedo: Boolean # @param TaskGroupInstanceExecuteTime: 动作实例执行时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstanceExecuteTime: Integer attr_accessor :TaskGroupInstanceId, :TaskGroupInstanceObjectId, :TaskGroupInstanceStatus, :TaskGroupInstanceCreateTime, :TaskGroupInstanceUpdateTime, :TaskGroupInstanceStatusType, :TaskGroupInstanceStartTime, :TaskGroupInstanceEndTime, :TaskGroupInstanceExecuteLog, :TaskGroupInstanceIsRedo, :TaskGroupInstanceExecuteTime extend Gem::Deprecate deprecate :TaskGroupInstanceExecuteLog, :none, 2024, 11 deprecate :TaskGroupInstanceExecuteLog=, :none, 2024, 11 def initialize(taskgroupinstanceid=nil, taskgroupinstanceobjectid=nil, taskgroupinstancestatus=nil, taskgroupinstancecreatetime=nil, taskgroupinstanceupdatetime=nil, taskgroupinstancestatustype=nil, taskgroupinstancestarttime=nil, taskgroupinstanceendtime=nil, taskgroupinstanceexecutelog=nil, taskgroupinstanceisredo=nil, taskgroupinstanceexecutetime=nil) @TaskGroupInstanceId = taskgroupinstanceid @TaskGroupInstanceObjectId = taskgroupinstanceobjectid @TaskGroupInstanceStatus = taskgroupinstancestatus @TaskGroupInstanceCreateTime = taskgroupinstancecreatetime @TaskGroupInstanceUpdateTime = taskgroupinstanceupdatetime @TaskGroupInstanceStatusType = taskgroupinstancestatustype @TaskGroupInstanceStartTime = taskgroupinstancestarttime @TaskGroupInstanceEndTime = taskgroupinstanceendtime @TaskGroupInstanceExecuteLog = taskgroupinstanceexecutelog @TaskGroupInstanceIsRedo = taskgroupinstanceisredo @TaskGroupInstanceExecuteTime = taskgroupinstanceexecutetime end def deserialize(params) @TaskGroupInstanceId = params['TaskGroupInstanceId'] @TaskGroupInstanceObjectId = params['TaskGroupInstanceObjectId'] @TaskGroupInstanceStatus = params['TaskGroupInstanceStatus'] @TaskGroupInstanceCreateTime = params['TaskGroupInstanceCreateTime'] @TaskGroupInstanceUpdateTime = params['TaskGroupInstanceUpdateTime'] @TaskGroupInstanceStatusType = params['TaskGroupInstanceStatusType'] @TaskGroupInstanceStartTime = params['TaskGroupInstanceStartTime'] @TaskGroupInstanceEndTime = params['TaskGroupInstanceEndTime'] @TaskGroupInstanceExecuteLog = params['TaskGroupInstanceExecuteLog'] @TaskGroupInstanceIsRedo = params['TaskGroupInstanceIsRedo'] @TaskGroupInstanceExecuteTime = params['TaskGroupInstanceExecuteTime'] end end # 机器选取规则 class TaskGroupInstancesExecuteRules < TencentCloud::Common::AbstractModel # @param TaskGroupInstancesExecuteMode: 实例选取模式 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstancesExecuteMode: Integer # @param TaskGroupInstancesExecutePercent: 按比例选取模式下选取比例 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstancesExecutePercent: Integer # @param TaskGroupInstancesExecuteNum: 按数量选取模式下选取数量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskGroupInstancesExecuteNum: Integer attr_accessor :TaskGroupInstancesExecuteMode, :TaskGroupInstancesExecutePercent, :TaskGroupInstancesExecuteNum def initialize(taskgroupinstancesexecutemode=nil, taskgroupinstancesexecutepercent=nil, taskgroupinstancesexecutenum=nil) @TaskGroupInstancesExecuteMode = taskgroupinstancesexecutemode @TaskGroupInstancesExecutePercent = taskgroupinstancesexecutepercent @TaskGroupInstancesExecuteNum = taskgroupinstancesexecutenum end def deserialize(params) @TaskGroupInstancesExecuteMode = params['TaskGroupInstancesExecuteMode'] @TaskGroupInstancesExecutePercent = params['TaskGroupInstancesExecutePercent'] @TaskGroupInstancesExecuteNum = params['TaskGroupInstancesExecuteNum'] end end # 任务列表信息 class TaskListItem < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer # @param TaskTitle: 任务标题 # @type TaskTitle: String # @param TaskDescription: 任务描述 # @type TaskDescription: String # @param TaskTag: 任务标签 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskTag: String # @param TaskStatus: 任务状态(1001 -- 未开始 1002 -- 进行中 1003 -- 暂停中 1004 -- 任务结束) # @type TaskStatus: Integer # @param TaskCreateTime: 任务创建时间 # @type TaskCreateTime: String # @param TaskUpdateTime: 任务更新时间 # @type TaskUpdateTime: String # @param TaskPreCheckStatus: 0--未开始,1--进行中,2--已完成 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPreCheckStatus: Integer # @param TaskPreCheckSuccess: 环境检查是否通过 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskPreCheckSuccess: Boolean # @param TaskExpect: 演练是否符合预期 1-符合预期 2-不符合预期 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskExpect: Integer # @param ApplicationId: 关联应用ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ApplicationId: String # @param ApplicationName: 关联应用名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ApplicationName: String # @param VerifyId: 验证项ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type VerifyId: Integer # @param TaskStatusType: 状态类型: 0 -- 无状态,1 -- 成功,2-- 失败,3--终止 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskStatusType: Integer attr_accessor :TaskId, :TaskTitle, :TaskDescription, :TaskTag, :TaskStatus, :TaskCreateTime, :TaskUpdateTime, :TaskPreCheckStatus, :TaskPreCheckSuccess, :TaskExpect, :ApplicationId, :ApplicationName, :VerifyId, :TaskStatusType def initialize(taskid=nil, tasktitle=nil, taskdescription=nil, tasktag=nil, taskstatus=nil, taskcreatetime=nil, taskupdatetime=nil, taskprecheckstatus=nil, taskprechecksuccess=nil, taskexpect=nil, applicationid=nil, applicationname=nil, verifyid=nil, taskstatustype=nil) @TaskId = taskid @TaskTitle = tasktitle @TaskDescription = taskdescription @TaskTag = tasktag @TaskStatus = taskstatus @TaskCreateTime = taskcreatetime @TaskUpdateTime = taskupdatetime @TaskPreCheckStatus = taskprecheckstatus @TaskPreCheckSuccess = taskprechecksuccess @TaskExpect = taskexpect @ApplicationId = applicationid @ApplicationName = applicationname @VerifyId = verifyid @TaskStatusType = taskstatustype end def deserialize(params) @TaskId = params['TaskId'] @TaskTitle = params['TaskTitle'] @TaskDescription = params['TaskDescription'] @TaskTag = params['TaskTag'] @TaskStatus = params['TaskStatus'] @TaskCreateTime = params['TaskCreateTime'] @TaskUpdateTime = params['TaskUpdateTime'] @TaskPreCheckStatus = params['TaskPreCheckStatus'] @TaskPreCheckSuccess = params['TaskPreCheckSuccess'] @TaskExpect = params['TaskExpect'] @ApplicationId = params['ApplicationId'] @ApplicationName = params['ApplicationName'] @VerifyId = params['VerifyId'] @TaskStatusType = params['TaskStatusType'] end end # 监控指标 class TaskMonitor < TencentCloud::Common::AbstractModel # @param TaskMonitorId: 演练监控指标ID # @type TaskMonitorId: Integer # @param MetricId: 监控指标ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type MetricId: Integer # @param TaskMonitorObjectTypeId: 监控指标对象类型ID # @type TaskMonitorObjectTypeId: Integer # @param MetricName: 指标名称 # @type MetricName: String # @param InstancesIds: 实例ID列表 # @type InstancesIds: Array # @param MetricChineseName: 中文指标 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MetricChineseName: String # @param Unit: 单位 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Unit: String attr_accessor :TaskMonitorId, :MetricId, :TaskMonitorObjectTypeId, :MetricName, :InstancesIds, :MetricChineseName, :Unit def initialize(taskmonitorid=nil, metricid=nil, taskmonitorobjecttypeid=nil, metricname=nil, instancesids=nil, metricchinesename=nil, unit=nil) @TaskMonitorId = taskmonitorid @MetricId = metricid @TaskMonitorObjectTypeId = taskmonitorobjecttypeid @MetricName = metricname @InstancesIds = instancesids @MetricChineseName = metricchinesename @Unit = unit end def deserialize(params) @TaskMonitorId = params['TaskMonitorId'] @MetricId = params['MetricId'] @TaskMonitorObjectTypeId = params['TaskMonitorObjectTypeId'] @MetricName = params['MetricName'] @InstancesIds = params['InstancesIds'] @MetricChineseName = params['MetricChineseName'] @Unit = params['Unit'] end end # 演练人员组织 class TaskOrg < TencentCloud::Common::AbstractModel # @param TaskRole: 演练角色 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskRole: String # @param TaskOperator: 负责人 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TaskOperator: String attr_accessor :TaskRole, :TaskOperator def initialize(taskrole=nil, taskoperator=nil) @TaskRole = taskrole @TaskOperator = taskoperator end def deserialize(params) @TaskRole = params['TaskRole'] @TaskOperator = params['TaskOperator'] end end # 演练报告状态信息 class TaskReportInfo < TencentCloud::Common::AbstractModel # @param Stage: 0--未开始,1--正在导出,2--导出成功,3--导出失败 # @type Stage: Integer # @param CreateTime: 创建时间 # @type CreateTime: String # @param ExpirationTime: 有效期截止时间 # @type ExpirationTime: String # @param Expired: 是否有效 # @type Expired: Boolean # @param CosUrl: 演练报告cos文件地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CosUrl: String # @param Log: 演练报告导出日志 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Log: String # @param ArchiveStage: 0--未开始,1--正在归档,2--归档成功,3--归档失败 # @type ArchiveStage: Integer # @param ArchiveTime: 归档时间 # @type ArchiveTime: String # @param ArchiveUuid: 归档ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ArchiveUuid: String attr_accessor :Stage, :CreateTime, :ExpirationTime, :Expired, :CosUrl, :Log, :ArchiveStage, :ArchiveTime, :ArchiveUuid def initialize(stage=nil, createtime=nil, expirationtime=nil, expired=nil, cosurl=nil, log=nil, archivestage=nil, archivetime=nil, archiveuuid=nil) @Stage = stage @CreateTime = createtime @ExpirationTime = expirationtime @Expired = expired @CosUrl = cosurl @Log = log @ArchiveStage = archivestage @ArchiveTime = archivetime @ArchiveUuid = archiveuuid end def deserialize(params) @Stage = params['Stage'] @CreateTime = params['CreateTime'] @ExpirationTime = params['ExpirationTime'] @Expired = params['Expired'] @CosUrl = params['CosUrl'] @Log = params['Log'] @ArchiveStage = params['ArchiveStage'] @ArchiveTime = params['ArchiveTime'] @ArchiveUuid = params['ArchiveUuid'] end end # 经验库 class Template < TencentCloud::Common::AbstractModel # @param TemplateId: 经验库ID # @type TemplateId: Integer # @param TemplateTitle: 经验库标题 # @type TemplateTitle: String # @param TemplateDescription: 经验库描述 # @type TemplateDescription: String # @param TemplateTag: 自定义标签 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplateTag: String # @param TemplateIsUsed: 使用状态。1 ---- 使用中,2 --- 停用 # @type TemplateIsUsed: Integer # @param TemplateCreateTime: 经验库创建时间 # @type TemplateCreateTime: String # @param TemplateUpdateTime: 经验库更新时间 # @type TemplateUpdateTime: String # @param TemplateMode: 经验库模式。1:手工执行,2:自动执行 # @type TemplateMode: Integer # @param TemplatePauseDuration: 自动暂停时长。单位分钟 # @type TemplatePauseDuration: Integer # @param TemplateOwnerUin: 演练创建者Uin # @type TemplateOwnerUin: String # @param TemplateRegionId: 地域ID # @type TemplateRegionId: Integer # @param TemplateGroups: 动作组 # @type TemplateGroups: Array # @param TemplateMonitors: 监控指标 # @type TemplateMonitors: Array # @param TemplatePolicy: 护栏监控 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplatePolicy: :class:`Tencentcloud::Cfg.v20210820.models.TemplatePolicy` # @param Tags: 标签列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Tags: Array # @param TemplateSource: 经验来源 0-自建 1-专家推荐 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplateSource: Integer # @param ApmServiceList: apm应用信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ApmServiceList: Array # @param AlarmPolicy: 告警指标 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AlarmPolicy: Array # @param PolicyDealType: 护栏处理方式,1--顺序回滚,2--演练暂停 # 注意:此字段可能返回 null,表示取不到有效值。 # @type PolicyDealType: Integer attr_accessor :TemplateId, :TemplateTitle, :TemplateDescription, :TemplateTag, :TemplateIsUsed, :TemplateCreateTime, :TemplateUpdateTime, :TemplateMode, :TemplatePauseDuration, :TemplateOwnerUin, :TemplateRegionId, :TemplateGroups, :TemplateMonitors, :TemplatePolicy, :Tags, :TemplateSource, :ApmServiceList, :AlarmPolicy, :PolicyDealType def initialize(templateid=nil, templatetitle=nil, templatedescription=nil, templatetag=nil, templateisused=nil, templatecreatetime=nil, templateupdatetime=nil, templatemode=nil, templatepauseduration=nil, templateowneruin=nil, templateregionid=nil, templategroups=nil, templatemonitors=nil, templatepolicy=nil, tags=nil, templatesource=nil, apmservicelist=nil, alarmpolicy=nil, policydealtype=nil) @TemplateId = templateid @TemplateTitle = templatetitle @TemplateDescription = templatedescription @TemplateTag = templatetag @TemplateIsUsed = templateisused @TemplateCreateTime = templatecreatetime @TemplateUpdateTime = templateupdatetime @TemplateMode = templatemode @TemplatePauseDuration = templatepauseduration @TemplateOwnerUin = templateowneruin @TemplateRegionId = templateregionid @TemplateGroups = templategroups @TemplateMonitors = templatemonitors @TemplatePolicy = templatepolicy @Tags = tags @TemplateSource = templatesource @ApmServiceList = apmservicelist @AlarmPolicy = alarmpolicy @PolicyDealType = policydealtype end def deserialize(params) @TemplateId = params['TemplateId'] @TemplateTitle = params['TemplateTitle'] @TemplateDescription = params['TemplateDescription'] @TemplateTag = params['TemplateTag'] @TemplateIsUsed = params['TemplateIsUsed'] @TemplateCreateTime = params['TemplateCreateTime'] @TemplateUpdateTime = params['TemplateUpdateTime'] @TemplateMode = params['TemplateMode'] @TemplatePauseDuration = params['TemplatePauseDuration'] @TemplateOwnerUin = params['TemplateOwnerUin'] @TemplateRegionId = params['TemplateRegionId'] unless params['TemplateGroups'].nil? @TemplateGroups = [] params['TemplateGroups'].each do |i| templategroup_tmp = TemplateGroup.new templategroup_tmp.deserialize(i) @TemplateGroups << templategroup_tmp end end unless params['TemplateMonitors'].nil? @TemplateMonitors = [] params['TemplateMonitors'].each do |i| templatemonitor_tmp = TemplateMonitor.new templatemonitor_tmp.deserialize(i) @TemplateMonitors << templatemonitor_tmp end end unless params['TemplatePolicy'].nil? @TemplatePolicy = TemplatePolicy.new @TemplatePolicy.deserialize(params['TemplatePolicy']) end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagwithdescribe_tmp = TagWithDescribe.new tagwithdescribe_tmp.deserialize(i) @Tags << tagwithdescribe_tmp end end @TemplateSource = params['TemplateSource'] unless params['ApmServiceList'].nil? @ApmServiceList = [] params['ApmServiceList'].each do |i| apmserviceinfo_tmp = ApmServiceInfo.new apmserviceinfo_tmp.deserialize(i) @ApmServiceList << apmserviceinfo_tmp end end @AlarmPolicy = params['AlarmPolicy'] @PolicyDealType = params['PolicyDealType'] end end # 任务分组 class TemplateGroup < TencentCloud::Common::AbstractModel # @param TemplateGroupId: 经验库动作ID # @type TemplateGroupId: Integer # @param TemplateGroupActions: 经验库动作分组动作列表 # @type TemplateGroupActions: Array # @param Title: 分组标题 # @type Title: String # @param Description: 分组描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Description: String # @param Order: 分组顺序 # @type Order: Integer # @param Mode: 执行模式。1 --- 顺序执行,2 --- 阶段执行 # @type Mode: Integer # @param ObjectTypeId: 对象类型ID # @type ObjectTypeId: Integer # @param CreateTime: 分组创建时间 # @type CreateTime: String # @param UpdateTime: 分组更新时间 # @type UpdateTime: String attr_accessor :TemplateGroupId, :TemplateGroupActions, :Title, :Description, :Order, :Mode, :ObjectTypeId, :CreateTime, :UpdateTime def initialize(templategroupid=nil, templategroupactions=nil, title=nil, description=nil, order=nil, mode=nil, objecttypeid=nil, createtime=nil, updatetime=nil) @TemplateGroupId = templategroupid @TemplateGroupActions = templategroupactions @Title = title @Description = description @Order = order @Mode = mode @ObjectTypeId = objecttypeid @CreateTime = createtime @UpdateTime = updatetime end def deserialize(params) @TemplateGroupId = params['TemplateGroupId'] unless params['TemplateGroupActions'].nil? @TemplateGroupActions = [] params['TemplateGroupActions'].each do |i| templategroupaction_tmp = TemplateGroupAction.new templategroupaction_tmp.deserialize(i) @TemplateGroupActions << templategroupaction_tmp end end @Title = params['Title'] @Description = params['Description'] @Order = params['Order'] @Mode = params['Mode'] @ObjectTypeId = params['ObjectTypeId'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] end end # 任务分组动作 class TemplateGroupAction < TencentCloud::Common::AbstractModel # @param TemplateGroupActionId: 经验库分组动作ID # @type TemplateGroupActionId: Integer # @param ActionId: 动作ID # @type ActionId: Integer # @param Order: 分组动作顺序 # @type Order: Integer # @param GeneralConfiguration: 分组动作通用配置 # 注意:此字段可能返回 null,表示取不到有效值。 # @type GeneralConfiguration: String # @param CustomConfiguration: 分组动作自定义配置 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CustomConfiguration: String # @param CreateTime: 动作分组创建时间 # @type CreateTime: String # @param UpdateTime: 动作分组更新时间 # @type UpdateTime: String # @param ActionTitle: 动作名称 # @type ActionTitle: String # @param RandomId: 自身随机id # 注意:此字段可能返回 null,表示取不到有效值。 # @type RandomId: Integer # @param RecoverId: 恢复动作id # 注意:此字段可能返回 null,表示取不到有效值。 # @type RecoverId: Integer # @param ExecuteId: 执行动作id # 注意:此字段可能返回 null,表示取不到有效值。 # @type ExecuteId: Integer # @param ActionApiType: 调用api类型,0:tat, 1:云api # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionApiType: Integer # @param ActionAttribute: 1:故障,2:恢复 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionAttribute: Integer # @param ActionType: 动作类型:平台和自定义 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionType: String # @param ActionRisk: 动作风险等级,1:低风险 2:中风险 3:高风险 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActionRisk: String attr_accessor :TemplateGroupActionId, :ActionId, :Order, :GeneralConfiguration, :CustomConfiguration, :CreateTime, :UpdateTime, :ActionTitle, :RandomId, :RecoverId, :ExecuteId, :ActionApiType, :ActionAttribute, :ActionType, :ActionRisk def initialize(templategroupactionid=nil, actionid=nil, order=nil, generalconfiguration=nil, customconfiguration=nil, createtime=nil, updatetime=nil, actiontitle=nil, randomid=nil, recoverid=nil, executeid=nil, actionapitype=nil, actionattribute=nil, actiontype=nil, actionrisk=nil) @TemplateGroupActionId = templategroupactionid @ActionId = actionid @Order = order @GeneralConfiguration = generalconfiguration @CustomConfiguration = customconfiguration @CreateTime = createtime @UpdateTime = updatetime @ActionTitle = actiontitle @RandomId = randomid @RecoverId = recoverid @ExecuteId = executeid @ActionApiType = actionapitype @ActionAttribute = actionattribute @ActionType = actiontype @ActionRisk = actionrisk end def deserialize(params) @TemplateGroupActionId = params['TemplateGroupActionId'] @ActionId = params['ActionId'] @Order = params['Order'] @GeneralConfiguration = params['GeneralConfiguration'] @CustomConfiguration = params['CustomConfiguration'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @ActionTitle = params['ActionTitle'] @RandomId = params['RandomId'] @RecoverId = params['RecoverId'] @ExecuteId = params['ExecuteId'] @ActionApiType = params['ActionApiType'] @ActionAttribute = params['ActionAttribute'] @ActionType = params['ActionType'] @ActionRisk = params['ActionRisk'] end end # 经验库列表信息 class TemplateListItem < TencentCloud::Common::AbstractModel # @param TemplateId: 经验库ID # @type TemplateId: Integer # @param TemplateTitle: 经验库标题 # @type TemplateTitle: String # @param TemplateDescription: 经验库描述 # @type TemplateDescription: String # @param TemplateTag: 经验库标签 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplateTag: String # @param TemplateIsUsed: 经验库状态。1 -- 使用中,2 -- 停用 # @type TemplateIsUsed: Integer # @param TemplateCreateTime: 经验库创建时间 # @type TemplateCreateTime: String # @param TemplateUpdateTime: 经验库更新时间 # @type TemplateUpdateTime: String # @param TemplateUsedNum: 经验库关联的任务数量 # @type TemplateUsedNum: Integer # @param TemplateSource: 经验库来源 0-自建经验 1-专家推荐 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplateSource: Integer attr_accessor :TemplateId, :TemplateTitle, :TemplateDescription, :TemplateTag, :TemplateIsUsed, :TemplateCreateTime, :TemplateUpdateTime, :TemplateUsedNum, :TemplateSource def initialize(templateid=nil, templatetitle=nil, templatedescription=nil, templatetag=nil, templateisused=nil, templatecreatetime=nil, templateupdatetime=nil, templateusednum=nil, templatesource=nil) @TemplateId = templateid @TemplateTitle = templatetitle @TemplateDescription = templatedescription @TemplateTag = templatetag @TemplateIsUsed = templateisused @TemplateCreateTime = templatecreatetime @TemplateUpdateTime = templateupdatetime @TemplateUsedNum = templateusednum @TemplateSource = templatesource end def deserialize(params) @TemplateId = params['TemplateId'] @TemplateTitle = params['TemplateTitle'] @TemplateDescription = params['TemplateDescription'] @TemplateTag = params['TemplateTag'] @TemplateIsUsed = params['TemplateIsUsed'] @TemplateCreateTime = params['TemplateCreateTime'] @TemplateUpdateTime = params['TemplateUpdateTime'] @TemplateUsedNum = params['TemplateUsedNum'] @TemplateSource = params['TemplateSource'] end end # 监控指标 class TemplateMonitor < TencentCloud::Common::AbstractModel # @param MonitorId: pk # @type MonitorId: Integer # @param MetricId: 监控指标ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type MetricId: Integer # @param ObjectTypeId: 监控指标对象类型ID # @type ObjectTypeId: Integer # @param MetricName: 指标名称 # @type MetricName: String # @param MetricChineseName: 中文指标 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MetricChineseName: String attr_accessor :MonitorId, :MetricId, :ObjectTypeId, :MetricName, :MetricChineseName def initialize(monitorid=nil, metricid=nil, objecttypeid=nil, metricname=nil, metricchinesename=nil) @MonitorId = monitorid @MetricId = metricid @ObjectTypeId = objecttypeid @MetricName = metricname @MetricChineseName = metricchinesename end def deserialize(params) @MonitorId = params['MonitorId'] @MetricId = params['MetricId'] @ObjectTypeId = params['ObjectTypeId'] @MetricName = params['MetricName'] @MetricChineseName = params['MetricChineseName'] end end # 保护策略 class TemplatePolicy < TencentCloud::Common::AbstractModel # @param TemplatePolicyIdList: 保护策略ID列表 # @type TemplatePolicyIdList: Array # @param TemplatePolicyRule: 策略规则 # @type TemplatePolicyRule: String # @param TemplatePolicyDealType: 护栏策略生效处理策略 1:顺序执行,2:暂停 # @type TemplatePolicyDealType: Integer attr_accessor :TemplatePolicyIdList, :TemplatePolicyRule, :TemplatePolicyDealType def initialize(templatepolicyidlist=nil, templatepolicyrule=nil, templatepolicydealtype=nil) @TemplatePolicyIdList = templatepolicyidlist @TemplatePolicyRule = templatepolicyrule @TemplatePolicyDealType = templatepolicydealtype end def deserialize(params) @TemplatePolicyIdList = params['TemplatePolicyIdList'] @TemplatePolicyRule = params['TemplatePolicyRule'] @TemplatePolicyDealType = params['TemplatePolicyDealType'] end end # TriggerPolicy请求参数结构体 class TriggerPolicyRequest < TencentCloud::Common::AbstractModel # @param TaskId: 混沌演练ID # @type TaskId: Integer # @param Name: 名称 # @type Name: String # @param Content: 触发内容 # @type Content: String # @param TriggerType: 触发类型,0--触发;1--恢复 # @type TriggerType: Integer attr_accessor :TaskId, :Name, :Content, :TriggerType def initialize(taskid=nil, name=nil, content=nil, triggertype=nil) @TaskId = taskid @Name = name @Content = content @TriggerType = triggertype end def deserialize(params) @TaskId = params['TaskId'] @Name = params['Name'] @Content = params['Content'] @TriggerType = params['TriggerType'] end end # TriggerPolicy返回参数结构体 class TriggerPolicyResponse < TencentCloud::Common::AbstractModel # @param TaskId: 演练ID # @type TaskId: Integer # @param Success: 是否触发成功 # @type Success: Boolean # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TaskId, :Success, :RequestId def initialize(taskid=nil, success=nil, requestid=nil) @TaskId = taskid @Success = success @RequestId = requestid end def deserialize(params) @TaskId = params['TaskId'] @Success = params['Success'] @RequestId = params['RequestId'] end end end end end