public class CreatePrometheusScrapeJobRequest extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getAgentId()
Get Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取
|
String |
getConfig()
Get 抓取任务配置,格式:job_name:xx
|
String |
getInstanceId()
Get Prometheus 实例 ID,例如:prom-abcd1234
|
void |
setAgentId(String AgentId)
Set Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取
|
void |
setConfig(String Config)
Set 抓取任务配置,格式:job_name:xx
|
void |
setInstanceId(String InstanceId)
Set Prometheus 实例 ID,例如:prom-abcd1234
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreatePrometheusScrapeJobRequest()
public CreatePrometheusScrapeJobRequest(CreatePrometheusScrapeJobRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Prometheus 实例 ID,例如:prom-abcd1234public String getAgentId()
public void setAgentId(String AgentId)
AgentId
- Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取public String getConfig()
public void setConfig(String Config)
Config
- 抓取任务配置,格式:job_name:xxCopyright © 2022. All rights reserved.