public class UpdatePrometheusScrapeJobRequest extends AbstractModel
Constructor and Description |
---|
UpdatePrometheusScrapeJobRequest() |
UpdatePrometheusScrapeJobRequest(UpdatePrometheusScrapeJobRequest 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 such as “agent-abcd1234”, which can be obtained on the **Agent Management** page in the console
|
String |
getConfig()
Get Scrape task ID in the format of “job_name:xx”
|
String |
getInstanceId()
Get TMP instance ID, such as “prom-abcd1234”.
|
String |
getJobId()
Get Scrape task ID such as “job-abcd1234”.
|
void |
setAgentId(String AgentId)
Set Agent ID such as “agent-abcd1234”, which can be obtained on the **Agent Management** page in the console
|
void |
setConfig(String Config)
Set Scrape task ID in the format of “job_name:xx”
|
void |
setInstanceId(String InstanceId)
Set TMP instance ID, such as “prom-abcd1234”.
|
void |
setJobId(String JobId)
Set Scrape task ID such as “job-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 UpdatePrometheusScrapeJobRequest()
public UpdatePrometheusScrapeJobRequest(UpdatePrometheusScrapeJobRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- TMP instance ID, such as “prom-abcd1234”.public String getAgentId()
public void setAgentId(String AgentId)
AgentId
- Agent ID such as “agent-abcd1234”, which can be obtained on the **Agent Management** page in the consolepublic String getJobId()
public void setJobId(String JobId)
JobId
- Scrape task ID such as “job-abcd1234”. You can go to the **Agent Management** page and obtain the ID in the pop-up **Create Scrape Task** window.public String getConfig()
public void setConfig(String Config)
Config
- Scrape task ID in the format of “job_name:xx”Copyright © 2023. All rights reserved.