Class: TencentCloud::Tke::V20220501::HealthCheckTemplateRule

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20220501/models.rb

Overview

健康检测模板规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, description = nil, repairaction = nil, repaireffect = nil, shouldenable = nil, shouldrepair = nil, severity = nil) ⇒ HealthCheckTemplateRule

Returns a new instance of HealthCheckTemplateRule.



1064
1065
1066
1067
1068
1069
1070
1071
1072
# File 'lib/v20220501/models.rb', line 1064

def initialize(name=nil, description=nil, repairaction=nil, repaireffect=nil, shouldenable=nil, shouldrepair=nil, severity=nil)
  @Name = name
  @Description = description
  @RepairAction = repairaction
  @RepairEffect = repaireffect
  @ShouldEnable = shouldenable
  @ShouldRepair = shouldrepair
  @Severity = severity
end

Instance Attribute Details

#DescriptionObject

Parameters:

  • Name:

    健康检测项目名称

  • Description:

    健康检测规则描述

  • RepairAction:

    修复动作

  • RepairEffect:

    修复影响

  • ShouldEnable:

    是否建议开启检测

  • ShouldRepair:

    是否建议修复

  • Severity:

    问题严重程度



1062
1063
1064
# File 'lib/v20220501/models.rb', line 1062

def Description
  @Description
end

#NameObject

Parameters:

  • Name:

    健康检测项目名称

  • Description:

    健康检测规则描述

  • RepairAction:

    修复动作

  • RepairEffect:

    修复影响

  • ShouldEnable:

    是否建议开启检测

  • ShouldRepair:

    是否建议修复

  • Severity:

    问题严重程度



1062
1063
1064
# File 'lib/v20220501/models.rb', line 1062

def Name
  @Name
end

#RepairActionObject

Parameters:

  • Name:

    健康检测项目名称

  • Description:

    健康检测规则描述

  • RepairAction:

    修复动作

  • RepairEffect:

    修复影响

  • ShouldEnable:

    是否建议开启检测

  • ShouldRepair:

    是否建议修复

  • Severity:

    问题严重程度



1062
1063
1064
# File 'lib/v20220501/models.rb', line 1062

def RepairAction
  @RepairAction
end

#RepairEffectObject

Parameters:

  • Name:

    健康检测项目名称

  • Description:

    健康检测规则描述

  • RepairAction:

    修复动作

  • RepairEffect:

    修复影响

  • ShouldEnable:

    是否建议开启检测

  • ShouldRepair:

    是否建议修复

  • Severity:

    问题严重程度



1062
1063
1064
# File 'lib/v20220501/models.rb', line 1062

def RepairEffect
  @RepairEffect
end

#SeverityObject

Parameters:

  • Name:

    健康检测项目名称

  • Description:

    健康检测规则描述

  • RepairAction:

    修复动作

  • RepairEffect:

    修复影响

  • ShouldEnable:

    是否建议开启检测

  • ShouldRepair:

    是否建议修复

  • Severity:

    问题严重程度



1062
1063
1064
# File 'lib/v20220501/models.rb', line 1062

def Severity
  @Severity
end

#ShouldEnableObject

Parameters:

  • Name:

    健康检测项目名称

  • Description:

    健康检测规则描述

  • RepairAction:

    修复动作

  • RepairEffect:

    修复影响

  • ShouldEnable:

    是否建议开启检测

  • ShouldRepair:

    是否建议修复

  • Severity:

    问题严重程度



1062
1063
1064
# File 'lib/v20220501/models.rb', line 1062

def ShouldEnable
  @ShouldEnable
end

#ShouldRepairObject

Parameters:

  • Name:

    健康检测项目名称

  • Description:

    健康检测规则描述

  • RepairAction:

    修复动作

  • RepairEffect:

    修复影响

  • ShouldEnable:

    是否建议开启检测

  • ShouldRepair:

    是否建议修复

  • Severity:

    问题严重程度



1062
1063
1064
# File 'lib/v20220501/models.rb', line 1062

def ShouldRepair
  @ShouldRepair
end

Instance Method Details

#deserialize(params) ⇒ Object



1074
1075
1076
1077
1078
1079
1080
1081
1082
# File 'lib/v20220501/models.rb', line 1074

def deserialize(params)
  @Name = params['Name']
  @Description = params['Description']
  @RepairAction = params['RepairAction']
  @RepairEffect = params['RepairEffect']
  @ShouldEnable = params['ShouldEnable']
  @ShouldRepair = params['ShouldRepair']
  @Severity = params['Severity']
end