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.
3690 3691 3692 3693 3694 3695 3696 3697 3698 |
# File 'lib/v20180525/models.rb', line 3690 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
3688 3689 3690 |
# File 'lib/v20180525/models.rb', line 3688 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
3688 3689 3690 |
# File 'lib/v20180525/models.rb', line 3688 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
3688 3689 3690 |
# File 'lib/v20180525/models.rb', line 3688 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
3688 3689 3690 |
# File 'lib/v20180525/models.rb', line 3688 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
3688 3689 3690 |
# File 'lib/v20180525/models.rb', line 3688 def Probes @Probes end |
#RawJobs ⇒ Object
3688 3689 3690 |
# File 'lib/v20180525/models.rb', line 3688 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
3688 3689 3690 |
# File 'lib/v20180525/models.rb', line 3688 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 |
# File 'lib/v20180525/models.rb', line 3700 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 |