Class: TencentCloud::Monitor::V20180724::CreateServiceDiscoveryRequest

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

Overview

CreateServiceDiscovery请求参数结构体

Instance Attribute Summary collapse

  • #KubeClusterId ⇒ Object
  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • .
  • #KubeType ⇒ Object
  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • .
  • #Type ⇒ Object
  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • .
  • #Yaml ⇒ Object
  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(instanceid = nil, kubeclusterid = nil, kubetype = nil, type = nil, yaml = nil) ⇒ CreateServiceDiscoveryRequest

    Returns a new instance of CreateServiceDiscoveryRequest.

    
    
    3173
    3174
    3175
    3176
    3177
    3178
    3179
    # File 'lib/v20180724/models.rb', line 3173
    
    def initialize(instanceid=nil, kubeclusterid=nil, kubetype=nil, type=nil, yaml=nil)
      @InstanceId = instanceid
      @KubeClusterId = kubeclusterid
      @KubeType = kubetype
      @Type = type
      @Yaml = yaml
    end

    Instance Attribute Details

    #InstanceIdObject

  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • KubeClusterId: (li)

      类型为TKE:对应集成的腾讯云容器服务集群 ID

  • KubeType:

    用户 Kubernetes 集群类型:

  • Type:

    服务发现类型,取值如下:

  • Yaml:

    服务发现配置信息,YAML 格式,具体YAML参数内容请参考

  • 
    
    3171
    3172
    3173
    # File 'lib/v20180724/models.rb', line 3171
    
    def InstanceId
      @InstanceId
    end

    #KubeClusterIdObject

  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • Parameters:

  • KubeType:

    用户 Kubernetes 集群类型:

  • Type:

    服务发现类型,取值如下:

  • Yaml:

    服务发现配置信息,YAML 格式,具体YAML参数内容请参考

  • 
    
    3171
    3172
    3173
    # File 'lib/v20180724/models.rb', line 3171
    
    def KubeClusterId
      @KubeClusterId
    end

    #KubeTypeObject

  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • Parameters:

  • KubeType:

    用户 Kubernetes 集群类型:

  • Type:

    服务发现类型,取值如下:

  • Yaml:

    服务发现配置信息,YAML 格式,具体YAML参数内容请参考

  • 
    
    3171
    3172
    3173
    # File 'lib/v20180724/models.rb', line 3171
    
    def KubeType
      @KubeType
    end

    #TypeObject

  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • Parameters:

  • KubeType:

    用户 Kubernetes 集群类型:

  • Type:

    服务发现类型,取值如下:

  • Yaml:

    服务发现配置信息,YAML 格式,具体YAML参数内容请参考

  • 
    
    3171
    3172
    3173
    # File 'lib/v20180724/models.rb', line 3171
    
    def Type
      @Type
    end

    #YamlObject

  • 1 = 容器服务集群(TKE)
  • 1 = ServiceMonitor
  • 2 = PodMonitor
  • 3 = JobMonitor
  • Parameters:

  • KubeType:

    用户 Kubernetes 集群类型:

  • Type:

    服务发现类型,取值如下:

  • Yaml:

    服务发现配置信息,YAML 格式,具体YAML参数内容请参考

  • 
    
    3171
    3172
    3173
    # File 'lib/v20180724/models.rb', line 3171
    
    def Yaml
      @Yaml
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    3181
    3182
    3183
    3184
    3185
    3186
    3187
    # File 'lib/v20180724/models.rb', line 3181
    
    def deserialize(params)
      @InstanceId = params['InstanceId']
      @KubeClusterId = params['KubeClusterId']
      @KubeType = params['KubeType']
      @Type = params['Type']
      @Yaml = params['Yaml']
    end