Class CreatePrometheusScrapeJobRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.monitor.v20180724.models.CreatePrometheusScrapeJobRequest
-
public class CreatePrometheusScrapeJobRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreatePrometheusScrapeJobRequest()CreatePrometheusScrapeJobRequest(CreatePrometheusScrapeJobRequest 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAgentId()Get Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取StringgetConfig()Get 抓取任务配置,格式:job_name:xxStringgetInstanceId()Get Prometheus 实例 ID,例如:prom-abcd1234voidsetAgentId(String AgentId)Set Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取voidsetConfig(String Config)Set 抓取任务配置,格式:job_name:xxvoidsetInstanceId(String InstanceId)Set Prometheus 实例 ID,例如:prom-abcd1234voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreatePrometheusScrapeJobRequest
public CreatePrometheusScrapeJobRequest()
-
CreatePrometheusScrapeJobRequest
public CreatePrometheusScrapeJobRequest(CreatePrometheusScrapeJobRequest 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.
-
-
Method Detail
-
getInstanceId
public String getInstanceId()
Get Prometheus 实例 ID,例如:prom-abcd1234- Returns:
- InstanceId Prometheus 实例 ID,例如:prom-abcd1234
-
setInstanceId
public void setInstanceId(String InstanceId)
Set Prometheus 实例 ID,例如:prom-abcd1234- Parameters:
InstanceId- Prometheus 实例 ID,例如:prom-abcd1234
-
getAgentId
public String getAgentId()
Get Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取- Returns:
- AgentId Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取
-
setAgentId
public void setAgentId(String AgentId)
Set Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取- Parameters:
AgentId- Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取
-
getConfig
public String getConfig()
Get 抓取任务配置,格式:job_name:xx- Returns:
- Config 抓取任务配置,格式:job_name:xx
-
setConfig
public void setConfig(String Config)
Set 抓取任务配置,格式:job_name:xx- Parameters:
Config- 抓取任务配置,格式:job_name:xx
-
-