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.
16192 16193 16194 16195 16196 16197 16198 16199 16200 |
# File 'lib/v20180525/models.rb', line 16192 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
16190 16191 16192 |
# File 'lib/v20180525/models.rb', line 16190 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
16190 16191 16192 |
# File 'lib/v20180525/models.rb', line 16190 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
16190 16191 16192 |
# File 'lib/v20180525/models.rb', line 16190 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
16190 16191 16192 |
# File 'lib/v20180525/models.rb', line 16190 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
16190 16191 16192 |
# File 'lib/v20180525/models.rb', line 16190 def Probes @Probes end |
#RawJobs ⇒ Object
16190 16191 16192 |
# File 'lib/v20180525/models.rb', line 16190 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
16190 16191 16192 |
# File 'lib/v20180525/models.rb', line 16190 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 |
# File 'lib/v20180525/models.rb', line 16202 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 |