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.
3390 3391 3392 3393 3394 3395 3396 3397 3398 |
# File 'lib/v20180525/models.rb', line 3390 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
3388 3389 3390 |
# File 'lib/v20180525/models.rb', line 3388 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
3388 3389 3390 |
# File 'lib/v20180525/models.rb', line 3388 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
3388 3389 3390 |
# File 'lib/v20180525/models.rb', line 3388 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
3388 3389 3390 |
# File 'lib/v20180525/models.rb', line 3388 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
3388 3389 3390 |
# File 'lib/v20180525/models.rb', line 3388 def Probes @Probes end |
#RawJobs ⇒ Object
3388 3389 3390 |
# File 'lib/v20180525/models.rb', line 3388 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
3388 3389 3390 |
# File 'lib/v20180525/models.rb', line 3388 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 |
# File 'lib/v20180525/models.rb', line 3400 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 |