Class: TencentCloud::Tke::V20180525::ModifyPrometheusConfigRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::ModifyPrometheusConfigRequest
- Defined in:
- lib/v20180525/models.rb
Overview
ModifyPrometheusConfig请求参数结构体
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #ClusterType ⇒ Object
- #InstanceId ⇒ Object
- #PodMonitors ⇒ Object
- #Probes ⇒ Object
- #RawJobs ⇒ Object
- #ServiceMonitors ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil) ⇒ ModifyPrometheusConfigRequest
constructor
A new instance of ModifyPrometheusConfigRequest.
Constructor Details
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil) ⇒ ModifyPrometheusConfigRequest
Returns a new instance of ModifyPrometheusConfigRequest.
14563 14564 14565 14566 14567 14568 14569 14570 14571 |
# File 'lib/v20180525/models.rb', line 14563 def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil) @InstanceId = instanceid @ClusterType = clustertype @ClusterId = clusterid @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs @Probes = probes end |
Instance Attribute Details
#ClusterId ⇒ Object
14561 14562 14563 |
# File 'lib/v20180525/models.rb', line 14561 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
14561 14562 14563 |
# File 'lib/v20180525/models.rb', line 14561 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
14561 14562 14563 |
# File 'lib/v20180525/models.rb', line 14561 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
14561 14562 14563 |
# File 'lib/v20180525/models.rb', line 14561 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
14561 14562 14563 |
# File 'lib/v20180525/models.rb', line 14561 def Probes @Probes end |
#RawJobs ⇒ Object
14561 14562 14563 |
# File 'lib/v20180525/models.rb', line 14561 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
14561 14562 14563 |
# File 'lib/v20180525/models.rb', line 14561 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 |
# File 'lib/v20180525/models.rb', line 14573 def deserialize(params) @InstanceId = params['InstanceId'] @ClusterType = params['ClusterType'] @ClusterId = params['ClusterId'] unless params['ServiceMonitors'].nil? @ServiceMonitors = [] params['ServiceMonitors'].each do |i| prometheusconfigitem_tmp = PrometheusConfigItem.new prometheusconfigitem_tmp.deserialize(i) @ServiceMonitors << prometheusconfigitem_tmp end end unless params['PodMonitors'].nil? @PodMonitors = [] params['PodMonitors'].each do |i| prometheusconfigitem_tmp = PrometheusConfigItem.new prometheusconfigitem_tmp.deserialize(i) @PodMonitors << prometheusconfigitem_tmp end end unless params['RawJobs'].nil? @RawJobs = [] params['RawJobs'].each do |i| prometheusconfigitem_tmp = PrometheusConfigItem.new prometheusconfigitem_tmp.deserialize(i) @RawJobs << prometheusconfigitem_tmp end end unless params['Probes'].nil? @Probes = [] params['Probes'].each do |i| prometheusconfigitem_tmp = PrometheusConfigItem.new prometheusconfigitem_tmp.deserialize(i) @Probes << prometheusconfigitem_tmp end end end |