Class: TencentCloud::Monitor::V20180724::ModifyPrometheusConfigRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::ModifyPrometheusConfigRequest
- Defined in:
- lib/v20180724/models.rb
Overview
ModifyPrometheusConfig请求参数结构体
Instance Attribute Summary collapse
-
#ClusterId ⇒ Object
1: 不更新实例组件镜像版本.
-
#ClusterType ⇒ Object
1: 不更新实例组件镜像版本.
-
#InstanceId ⇒ Object
1: 不更新实例组件镜像版本.
-
#PodMonitors ⇒ Object
1: 不更新实例组件镜像版本.
-
#RawJobs ⇒ Object
1: 不更新实例组件镜像版本.
-
#ServiceMonitors ⇒ Object
1: 不更新实例组件镜像版本.
-
#UpdateImage ⇒ Object
1: 不更新实例组件镜像版本.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, updateimage = nil) ⇒ ModifyPrometheusConfigRequest
constructor
A new instance of ModifyPrometheusConfigRequest.
Constructor Details
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, updateimage = nil) ⇒ ModifyPrometheusConfigRequest
Returns a new instance of ModifyPrometheusConfigRequest.
12109 12110 12111 12112 12113 12114 12115 12116 12117 |
# File 'lib/v20180724/models.rb', line 12109 def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, updateimage=nil) @InstanceId = instanceid @ClusterType = clustertype @ClusterId = clusterid @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs @UpdateImage = updateimage end |
Instance Attribute Details
#ClusterId ⇒ Object
1: 不更新实例组件镜像版本
12107 12108 12109 |
# File 'lib/v20180724/models.rb', line 12107 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
1: 不更新实例组件镜像版本
12107 12108 12109 |
# File 'lib/v20180724/models.rb', line 12107 def ClusterType @ClusterType end |
#InstanceId ⇒ Object
1: 不更新实例组件镜像版本
12107 12108 12109 |
# File 'lib/v20180724/models.rb', line 12107 def InstanceId @InstanceId end |
#PodMonitors ⇒ Object
1: 不更新实例组件镜像版本
12107 12108 12109 |
# File 'lib/v20180724/models.rb', line 12107 def PodMonitors @PodMonitors end |
#RawJobs ⇒ Object
1: 不更新实例组件镜像版本
12107 12108 12109 |
# File 'lib/v20180724/models.rb', line 12107 def RawJobs @RawJobs end |
#ServiceMonitors ⇒ Object
1: 不更新实例组件镜像版本
12107 12108 12109 |
# File 'lib/v20180724/models.rb', line 12107 def ServiceMonitors @ServiceMonitors end |
#UpdateImage ⇒ Object
1: 不更新实例组件镜像版本
12107 12108 12109 |
# File 'lib/v20180724/models.rb', line 12107 def UpdateImage @UpdateImage end |
Instance Method Details
#deserialize(params) ⇒ Object
12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 |
# File 'lib/v20180724/models.rb', line 12119 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 @UpdateImage = params['UpdateImage'] end |