Class: TencentCloud::Tke::V20180525::CreatePrometheusConfigRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreatePrometheusConfigRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreatePrometheusConfig请求参数结构体
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) ⇒ CreatePrometheusConfigRequest
constructor
A new instance of CreatePrometheusConfigRequest.
Constructor Details
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil) ⇒ CreatePrometheusConfigRequest
Returns a new instance of CreatePrometheusConfigRequest.
3670 3671 3672 3673 3674 3675 3676 3677 3678 |
# File 'lib/v20180525/models.rb', line 3670 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
3668 3669 3670 |
# File 'lib/v20180525/models.rb', line 3668 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
3668 3669 3670 |
# File 'lib/v20180525/models.rb', line 3668 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
3668 3669 3670 |
# File 'lib/v20180525/models.rb', line 3668 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
3668 3669 3670 |
# File 'lib/v20180525/models.rb', line 3668 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
3668 3669 3670 |
# File 'lib/v20180525/models.rb', line 3668 def Probes @Probes end |
#RawJobs ⇒ Object
3668 3669 3670 |
# File 'lib/v20180525/models.rb', line 3668 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
3668 3669 3670 |
# File 'lib/v20180525/models.rb', line 3668 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 |
# File 'lib/v20180525/models.rb', line 3680 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 |