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.
14859 14860 14861 14862 14863 14864 14865 14866 14867 |
# File 'lib/v20180525/models.rb', line 14859 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
14857 14858 14859 |
# File 'lib/v20180525/models.rb', line 14857 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
14857 14858 14859 |
# File 'lib/v20180525/models.rb', line 14857 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
14857 14858 14859 |
# File 'lib/v20180525/models.rb', line 14857 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
14857 14858 14859 |
# File 'lib/v20180525/models.rb', line 14857 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
14857 14858 14859 |
# File 'lib/v20180525/models.rb', line 14857 def Probes @Probes end |
#RawJobs ⇒ Object
14857 14858 14859 |
# File 'lib/v20180525/models.rb', line 14857 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
14857 14858 14859 |
# File 'lib/v20180525/models.rb', line 14857 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 |
# File 'lib/v20180525/models.rb', line 14869 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 |