Class: TencentCloud::Tke::V20180525::DescribePrometheusConfigResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusConfigResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusConfig返回参数结构体
Instance Attribute Summary collapse
- #Config ⇒ Object
- #PodMonitors ⇒ Object
- #Probes ⇒ Object
- #RawJobs ⇒ Object
- #RequestId ⇒ Object
- #ServiceMonitors ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(config = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil, requestid = nil) ⇒ DescribePrometheusConfigResponse
constructor
A new instance of DescribePrometheusConfigResponse.
Constructor Details
#initialize(config = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil, requestid = nil) ⇒ DescribePrometheusConfigResponse
Returns a new instance of DescribePrometheusConfigResponse.
8909 8910 8911 8912 8913 8914 8915 8916 |
# File 'lib/v20180525/models.rb', line 8909 def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil, requestid=nil) @Config = config @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs @Probes = probes @RequestId = requestid end |
Instance Attribute Details
#Config ⇒ Object
8907 8908 8909 |
# File 'lib/v20180525/models.rb', line 8907 def Config @Config end |
#PodMonitors ⇒ Object
8907 8908 8909 |
# File 'lib/v20180525/models.rb', line 8907 def PodMonitors @PodMonitors end |
#Probes ⇒ Object
8907 8908 8909 |
# File 'lib/v20180525/models.rb', line 8907 def Probes @Probes end |
#RawJobs ⇒ Object
8907 8908 8909 |
# File 'lib/v20180525/models.rb', line 8907 def RawJobs @RawJobs end |
#RequestId ⇒ Object
8907 8908 8909 |
# File 'lib/v20180525/models.rb', line 8907 def RequestId @RequestId end |
#ServiceMonitors ⇒ Object
8907 8908 8909 |
# File 'lib/v20180525/models.rb', line 8907 def ServiceMonitors @ServiceMonitors end |
Instance Method Details
#deserialize(params) ⇒ Object
8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 |
# File 'lib/v20180525/models.rb', line 8918 def deserialize(params) @Config = params['Config'] 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 @RequestId = params['RequestId'] end |