public class CreatePrometheusScrapeJobRequest extends AbstractModel
header, skipSign| 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, such as “agent-abcd1234”. 
 | 
String | 
getConfig()
Get Scrape task ID in the format of “job_name:xx” 
 | 
String | 
getInstanceId()
Get TMP instance ID, such as “prom-abcd1234”. 
 | 
void | 
setAgentId(String AgentId)
Set Agent ID, such as “agent-abcd1234”. 
 | 
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 | 
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 CreatePrometheusScrapeJobRequest()
public CreatePrometheusScrapeJobRequest(CreatePrometheusScrapeJobRequest 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”. It can be obtained on the **Agent Management** page in the console.public String getConfig()
public void setConfig(String Config)
Config - Scrape task ID in the format of “job_name:xx”Copyright © 2025. All rights reserved.