public class CreateServiceDiscoveryRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateServiceDiscoveryRequest() | 
| CreateServiceDiscoveryRequest(CreateServiceDiscoveryRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getInstanceId()Get Prometheus 实例 ID | 
| String | getKubeClusterId()Get 类型为TKE:对应集成的腾讯云容器服务集群 ID | 
| Long | getKubeType()Get 用户 Kubernetes 集群类型:
 1 = 容器服务集群(TKE)  | 
| Long | getType()Get 服务发现类型,取值如下:
 1 = ServiceMonitor
 2 = PodMonitor
 3 = JobMonitor | 
| String | getYaml()Get 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor) | 
| void | setInstanceId(String InstanceId)Set Prometheus 实例 ID | 
| void | setKubeClusterId(String KubeClusterId)Set 类型为TKE:对应集成的腾讯云容器服务集群 ID | 
| void | setKubeType(Long KubeType)Set 用户 Kubernetes 集群类型:
 1 = 容器服务集群(TKE)  | 
| void | setType(Long Type)Set 服务发现类型,取值如下:
 1 = ServiceMonitor
 2 = PodMonitor
 3 = JobMonitor | 
| void | setYaml(String Yaml)Set 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor) | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateServiceDiscoveryRequest()
public CreateServiceDiscoveryRequest(CreateServiceDiscoveryRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - Prometheus 实例 IDpublic String getKubeClusterId()
public void setKubeClusterId(String KubeClusterId)
KubeClusterId - public Long getKubeType()
public void setKubeType(Long KubeType)
KubeType - 用户 Kubernetes 集群类型:
public Long getType()
public void setType(Long Type)
Type - 服务发现类型,取值如下:
public String getYaml()
public void setYaml(String Yaml)
Yaml - 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor)Copyright © 2025. All rights reserved.