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.
14614 14615 14616 14617 14618 14619 14620 14621 14622 |
# File 'lib/v20180525/models.rb', line 14614 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
14612 14613 14614 |
# File 'lib/v20180525/models.rb', line 14612 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
14612 14613 14614 |
# File 'lib/v20180525/models.rb', line 14612 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
14612 14613 14614 |
# File 'lib/v20180525/models.rb', line 14612 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
14612 14613 14614 |
# File 'lib/v20180525/models.rb', line 14612 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
14612 14613 14614 |
# File 'lib/v20180525/models.rb', line 14612 def Probes @Probes end |
#RawJobs ⇒ Object
14612 14613 14614 |
# File 'lib/v20180525/models.rb', line 14612 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
14612 14613 14614 |
# File 'lib/v20180525/models.rb', line 14612 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 |
# File 'lib/v20180525/models.rb', line 14624 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 |