Class: TencentCloud::Tke::V20180525::CreatePrometheusConfigRequest

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

Overview

CreatePrometheusConfig请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil) ⇒ CreatePrometheusConfigRequest

Returns a new instance of CreatePrometheusConfigRequest.



3390
3391
3392
3393
3394
3395
3396
3397
3398
# File 'lib/v20180525/models.rb', line 3390

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

#ClusterIdObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probe 配置



3388
3389
3390
# File 'lib/v20180525/models.rb', line 3388

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probe 配置



3388
3389
3390
# File 'lib/v20180525/models.rb', line 3388

def ClusterType
  @ClusterType
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probe 配置



3388
3389
3390
# File 'lib/v20180525/models.rb', line 3388

def InstanceId
  @InstanceId
end

#PodMonitorsObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probe 配置



3388
3389
3390
# File 'lib/v20180525/models.rb', line 3388

def PodMonitors
  @PodMonitors
end

#ProbesObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probe 配置



3388
3389
3390
# File 'lib/v20180525/models.rb', line 3388

def Probes
  @Probes
end

#RawJobsObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probe 配置



3388
3389
3390
# File 'lib/v20180525/models.rb', line 3388

def RawJobs
  @RawJobs
end

#ServiceMonitorsObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probe 配置



3388
3389
3390
# File 'lib/v20180525/models.rb', line 3388

def ServiceMonitors
  @ServiceMonitors
end

Instance Method Details

#deserialize(params) ⇒ Object



3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
# File 'lib/v20180525/models.rb', line 3400

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