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.
3457 3458 3459 3460 3461 3462 3463 3464 3465 |
# File 'lib/v20180525/models.rb', line 3457 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
3455 3456 3457 |
# File 'lib/v20180525/models.rb', line 3455 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
3455 3456 3457 |
# File 'lib/v20180525/models.rb', line 3455 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
3455 3456 3457 |
# File 'lib/v20180525/models.rb', line 3455 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
3455 3456 3457 |
# File 'lib/v20180525/models.rb', line 3455 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
3455 3456 3457 |
# File 'lib/v20180525/models.rb', line 3455 def Probes @Probes end |
#RawJobs ⇒ Object
3455 3456 3457 |
# File 'lib/v20180525/models.rb', line 3455 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
3455 3456 3457 |
# File 'lib/v20180525/models.rb', line 3455 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 |
# File 'lib/v20180525/models.rb', line 3467 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 |