Class: TencentCloud::Monitor::V20180724::ModifyPrometheusConfigRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180724/models.rb

Overview

ModifyPrometheusConfig请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ClusterIdObject

1: 不更新实例组件镜像版本

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • UpdateImage:

    0: 更新实例组件镜像版本;



12107
12108
12109
# File 'lib/v20180724/models.rb', line 12107

def ClusterId
  @ClusterId
end

#ClusterTypeObject

1: 不更新实例组件镜像版本

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • UpdateImage:

    0: 更新实例组件镜像版本;



12107
12108
12109
# File 'lib/v20180724/models.rb', line 12107

def ClusterType
  @ClusterType
end

#InstanceIdObject

1: 不更新实例组件镜像版本

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • UpdateImage:

    0: 更新实例组件镜像版本;



12107
12108
12109
# File 'lib/v20180724/models.rb', line 12107

def InstanceId
  @InstanceId
end

#PodMonitorsObject

1: 不更新实例组件镜像版本

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • UpdateImage:

    0: 更新实例组件镜像版本;



12107
12108
12109
# File 'lib/v20180724/models.rb', line 12107

def PodMonitors
  @PodMonitors
end

#RawJobsObject

1: 不更新实例组件镜像版本

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • UpdateImage:

    0: 更新实例组件镜像版本;



12107
12108
12109
# File 'lib/v20180724/models.rb', line 12107

def RawJobs
  @RawJobs
end

#ServiceMonitorsObject

1: 不更新实例组件镜像版本

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • UpdateImage:

    0: 更新实例组件镜像版本;



12107
12108
12109
# File 'lib/v20180724/models.rb', line 12107

def ServiceMonitors
  @ServiceMonitors
end

#UpdateImageObject

1: 不更新实例组件镜像版本

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • UpdateImage:

    0: 更新实例组件镜像版本;



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