Class: TencentCloud::Monitor::V20180724::CreatePrometheusConfigRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::CreatePrometheusConfigRequest
- Defined in:
- lib/v20180724/models.rb
Overview
CreatePrometheusConfig请求参数结构体
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #ClusterType ⇒ Object
- #InstanceId ⇒ Object
- #PodMonitors ⇒ 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) ⇒ CreatePrometheusConfigRequest
constructor
A new instance of CreatePrometheusConfigRequest.
Constructor Details
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil) ⇒ CreatePrometheusConfigRequest
Returns a new instance of CreatePrometheusConfigRequest.
2756 2757 2758 2759 2760 2761 2762 2763 |
# File 'lib/v20180724/models.rb', line 2756 def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil) @InstanceId = instanceid @ClusterType = clustertype @ClusterId = clusterid @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs end |
Instance Attribute Details
#ClusterId ⇒ Object
2754 2755 2756 |
# File 'lib/v20180724/models.rb', line 2754 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
2754 2755 2756 |
# File 'lib/v20180724/models.rb', line 2754 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
2754 2755 2756 |
# File 'lib/v20180724/models.rb', line 2754 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
2754 2755 2756 |
# File 'lib/v20180724/models.rb', line 2754 def PodMonitors @PodMonitors end |
#RawJobs ⇒ Object
2754 2755 2756 |
# File 'lib/v20180724/models.rb', line 2754 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
2754 2755 2756 |
# File 'lib/v20180724/models.rb', line 2754 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 |
# File 'lib/v20180724/models.rb', line 2765 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 end |