ListIntegrationPolicyServiceMonitors
Retrieves the ServiceMonitor information of an Integration Center policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListIntegrationPolicyServiceMonitors |
none |
*IntegrationPolicy
|
None | None |
Request syntax
GET /integration-policies/{policyId}/service-monitors HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| policyId |
string |
Yes |
The ID of the Integration Center policy. |
policy-ac38a7cb02d14ff48bc9f97d0a75063e |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| addonReleaseName |
string |
No |
The name of the add-on release. |
release-12345678 |
| namespace |
string |
No |
The namespace. |
arms-prom |
| encryptYaml |
boolean |
No |
Specifies whether to encrypt the YAML content. |
true |
| 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. |
ea119prod-ea119blinkcptssd1 |
| policyId |
string |
The policy ID. |
policy-ac38a7cb02d14ff48bc9f97d0a75063e |
| requestId |
string |
The request ID. |
CD8BA7D6-995D-578D-9941-78B0FECD14B5 |
| serviceMonitors |
array<object> |
The list of ServiceMonitors. |
|
|
array<object> |
|||
| addonName |
string |
The name of the add-on. |
cloud-acs-ecs |
| addonReleaseName |
string |
The name of the add-on release. |
release-1234567 |
| addonVersion |
string |
The version of the add-on. |
0.0.1 |
| configYaml |
string |
The YAML configuration. |
apiVersion: xxxxx |
| enableStatus |
string |
The enabled status. |
run |
| encryptYaml |
boolean |
The encrypted YAML. |
true |
| endpoints |
array<object> |
The list of endpoints. |
|
|
object |
The endpoint. |
||
| interval |
string |
The collection interval. |
30s |
| matchedTargetCount |
integer |
The number of matched targets. |
65 |
| path |
string |
The collection path. |
/metrics |
| port |
string |
The collection port. |
9100 |
| targetPort |
string |
The target port. |
http |
| matchedServiceCount |
integer |
The number of matched services. |
50 |
| name |
string |
The name of the ServiceMonitor. |
62a526c5-f6ca-4cfb-b5a4-b76974cffe51 |
| namespace |
string |
The name of the project workspace. |
arms-prom |
Examples
Success response
JSON format
{
"clusterId": "ea119prod-ea119blinkcptssd1",
"policyId": "policy-ac38a7cb02d14ff48bc9f97d0a75063e",
"requestId": "CD8BA7D6-995D-578D-9941-78B0FECD14B5",
"serviceMonitors": [
{
"addonName": "cloud-acs-ecs",
"addonReleaseName": "release-1234567",
"addonVersion": "0.0.1",
"configYaml": "apiVersion: xxxxx",
"enableStatus": "run",
"encryptYaml": true,
"endpoints": [
{
"interval": "30s",
"matchedTargetCount": 65,
"path": "/metrics",
"port": "9100",
"targetPort": "http"
}
],
"matchedServiceCount": 50,
"name": "62a526c5-f6ca-4cfb-b5a4-b76974cffe51",
"namespace": "arms-prom"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.