Class: TencentCloud::Cls::V20201016::ModifyHostMetricConfigRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::ModifyHostMetricConfigRequest
- Defined in:
- lib/v20201016/models.rb
Overview
ModifyHostMetricConfig请求参数结构体
Instance Attribute Summary collapse
-
#ConfigId ⇒ Object
- 长度不超过 64字符。 - cpu:CPU - mem:内存 - net:网络 - disk:磁盘 - system:系统.
-
#HostMetricItems ⇒ Object
- 长度不超过 64字符。 - cpu:CPU - mem:内存 - net:网络 - disk:磁盘 - system:系统.
-
#Interval ⇒ Object
- 长度不超过 64字符。 - cpu:CPU - mem:内存 - net:网络 - disk:磁盘 - system:系统.
-
#MachineGroupIds ⇒ Object
- 长度不超过 64字符。 - cpu:CPU - mem:内存 - net:网络 - disk:磁盘 - system:系统.
-
#Name ⇒ Object
- 长度不超过 64字符。 - cpu:CPU - mem:内存 - net:网络 - disk:磁盘 - system:系统.
-
#TopicId ⇒ Object
- 长度不超过 64字符。 - cpu:CPU - mem:内存 - net:网络 - disk:磁盘 - system:系统.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topicid = nil, configid = nil, name = nil, machinegroupids = nil, interval = nil, hostmetricitems = nil) ⇒ ModifyHostMetricConfigRequest
constructor
A new instance of ModifyHostMetricConfigRequest.
Constructor Details
#initialize(topicid = nil, configid = nil, name = nil, machinegroupids = nil, interval = nil, hostmetricitems = nil) ⇒ ModifyHostMetricConfigRequest
Returns a new instance of ModifyHostMetricConfigRequest.
14388 14389 14390 14391 14392 14393 14394 14395 |
# File 'lib/v20201016/models.rb', line 14388 def initialize(topicid=nil, configid=nil, name=nil, machinegroupids=nil, interval=nil, hostmetricitems=nil) @TopicId = topicid @ConfigId = configid @Name = name @MachineGroupIds = machinegroupids @Interval = interval @HostMetricItems = hostmetricitems end |
Instance Attribute Details
#ConfigId ⇒ Object
- 长度不超过 64字符。
- cpu:CPU
- mem:内存
- net:网络
- disk:磁盘
- system:系统
14386 14387 14388 |
# File 'lib/v20201016/models.rb', line 14386 def ConfigId @ConfigId end |
#HostMetricItems ⇒ Object
- 长度不超过 64字符。
- cpu:CPU
- mem:内存
- net:网络
- disk:磁盘
- system:系统
14386 14387 14388 |
# File 'lib/v20201016/models.rb', line 14386 def HostMetricItems @HostMetricItems end |
#Interval ⇒ Object
- 长度不超过 64字符。
- cpu:CPU
- mem:内存
- net:网络
- disk:磁盘
- system:系统
14386 14387 14388 |
# File 'lib/v20201016/models.rb', line 14386 def Interval @Interval end |
#MachineGroupIds ⇒ Object
- 长度不超过 64字符。
- cpu:CPU
- mem:内存
- net:网络
- disk:磁盘
- system:系统
14386 14387 14388 |
# File 'lib/v20201016/models.rb', line 14386 def MachineGroupIds @MachineGroupIds end |
#Name ⇒ Object
- 长度不超过 64字符。
- cpu:CPU
- mem:内存
- net:网络
- disk:磁盘
- system:系统
14386 14387 14388 |
# File 'lib/v20201016/models.rb', line 14386 def Name @Name end |
#TopicId ⇒ Object
- 长度不超过 64字符。
- cpu:CPU
- mem:内存
- net:网络
- disk:磁盘
- system:系统
14386 14387 14388 |
# File 'lib/v20201016/models.rb', line 14386 def TopicId @TopicId end |
Instance Method Details
#deserialize(params) ⇒ Object
14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 |
# File 'lib/v20201016/models.rb', line 14397 def deserialize(params) @TopicId = params['TopicId'] @ConfigId = params['ConfigId'] @Name = params['Name'] @MachineGroupIds = params['MachineGroupIds'] @Interval = params['Interval'] unless params['HostMetricItems'].nil? @HostMetricItems = [] params['HostMetricItems'].each do |i| hostmetricitem_tmp = HostMetricItem.new hostmetricitem_tmp.deserialize(i) @HostMetricItems << hostmetricitem_tmp end end end |