ListIntegrationPolicyCustomScrapeJobRules
Retrieves the custom service discovery rules for an integration center policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListIntegrationPolicyCustomScrapeJobRules |
none |
*IntegrationPolicy
|
None | None |
Request syntax
GET /integration-policies/{policyId}/custom-scrape-job-rules HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| policyId |
string |
Yes |
The ID of the integration center policy. |
policy-d95435164593aece55f9999ce45c |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| addonReleaseName |
string |
No |
The name of the add-on release. |
release12345678 |
| encryptYaml |
boolean |
No |
Specifies whether to encrypt the YAML content. |
true |
| namespace |
string |
No |
The namespace. |
arms-prom |
| collectorReleaseName |
string |
No |
The collector identifier. If a release exists, pass the release name. Otherwise, pass the component name. |
collector:metric-agent:policy:policy-bfd3d455fd6f4bc8 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| clusterId |
string |
The cluster ID. |
et15prod-et15storage |
| customScrapeJobRules |
array<object> |
The custom scrape job rules. |
|
|
array<object> |
The custom service discovery rules. |
||
| addonName |
string |
The add-on name. |
cloud-ecs |
| addonReleaseName |
string |
The add-on release name. |
release-12345678 |
| addonVersion |
string |
The add-on version. |
0.0.1 |
| configYaml |
string |
The YAML configuration. |
scrape_cofnigs: - jobxxxxxx |
| enableStatus |
string |
The enabling status. |
mini |
| encryptYaml |
boolean |
The encrypted YAML. |
true |
| matchedPodCount |
integer |
The number of matched pods. |
1 |
| message |
string |
The detailed information. |
ok |
| name |
string |
The service name. |
dlab1 |
| namespace |
string |
The namespace. |
prod-data |
| scrapeConfigs |
array<object> |
The custom configurations. |
|
|
object |
The custom configurations. |
||
| jobName |
string |
The scrape job name. |
mysql-exporter |
| message |
string |
The detailed information. |
successful |
| metricsPath |
string |
The metrics path. |
/metrics |
| scheme |
string |
The scheme. |
http |
| scrapeInterval |
string |
The scrape interval. |
30s |
| scrapeTimeout |
string |
The scrape timeout period. |
60s |
| serviceDiscoveryConfigs |
array |
The service discovery configurations. |
|
|
string |
The service discovery configurations. |
{} |
|
| policyId |
string |
The policy ID. |
policy-15abcc24c06f4797832b5954198e1ed1 |
| requestId |
string |
Id of the request |
0CEC5375-C554-562B-A65F-9A629907C1F0 |
Examples
Success response
JSON format
{
"clusterId": "et15prod-et15storage",
"customScrapeJobRules": [
{
"addonName": "cloud-ecs",
"addonReleaseName": "release-12345678",
"addonVersion": "0.0.1",
"configYaml": "scrape_cofnigs:\n- jobxxxxxx",
"enableStatus": "mini",
"encryptYaml": true,
"matchedPodCount": 1,
"message": "ok",
"name": "dlab1",
"namespace": "prod-data",
"scrapeConfigs": [
{
"jobName": "mysql-exporter",
"message": "successful",
"metricsPath": "/metrics",
"scheme": "http",
"scrapeInterval": "30s",
"scrapeTimeout": "60s",
"serviceDiscoveryConfigs": [
"{}"
]
}
]
}
],
"policyId": "policy-15abcc24c06f4797832b5954198e1ed1",
"requestId": "0CEC5375-C554-562B-A65F-9A629907C1F0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.