ListIntegrationPolicyPodMonitors
Retrieves the PodMonitor resources of an Integration Center policy.
Operation description
This topic provides an example of querying alert templates. The response indicates that the alert template list contains two alert templates: ECS_Template1 and ECS_Template2.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListIntegrationPolicyPodMonitors |
none |
*IntegrationPolicy
|
None | None |
Request syntax
GET /integration-policies/{policyId}/pod-monitors HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| policyId |
string |
Yes |
The Integration Center policy ID. |
policy-1d4634924c8ba599822c601fcee3 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| addonReleaseName |
string |
No |
The addon release name. |
release-123456789 |
| namespace |
string |
No |
The namespace. |
default |
| encryptYaml |
boolean |
No |
Specifies whether to encrypt the YAML content. |
true |
| collectorReleaseName |
string |
No |
The collector identifier. If a release is available, specify the release name. Otherwise, specify 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 |
| podMonitors |
array<object> |
The PodMonitor list. |
|
|
array<object> |
The PodMonitor list. |
||
| addonName |
string |
The addon name. |
cloud-ecs |
| addonReleaseName |
string |
The addon release name. |
release-2345678 |
| addonVersion |
string |
The addon version. |
0.0.1 |
| configYaml |
string |
The YAML configuration. |
apiVersion: xxxxx |
| enableStatus |
string |
The enabling status. |
run |
| encryptYaml |
boolean |
The encrypted YAML. |
YXBpVmVyc2lvbjogeHh4eHgK |
| endpoints |
array<object> |
The endpoints of the instance. |
|
|
object |
The endpoint details. |
||
| interval |
string |
The collection interval. |
30s |
| matchedTargetCount |
integer |
The number of matched targets. |
1 |
| path |
string |
The metric collection path. |
/metrics |
| port |
string |
The port number. |
9100 |
| targetPort |
string |
The target port. |
https |
| matchedPodCount |
integer |
The number of matched pods. |
3 |
| name |
string |
The collection name. |
znzmo_entity_test |
| namespace |
string |
The namespace. |
sla-ns-d5aeb2b4f91b47 |
| policyId |
string |
The policy ID. |
policy-c9efed2b99c348d49e589c5f780fc074 |
| requestId |
string |
Id of the request |
CD8BA7D6-995D-578D-9941-78B0FECD14B5 |
Examples
Success response
JSON format
{
"clusterId": "et15prod-et15storage",
"podMonitors": [
{
"addonName": "cloud-ecs",
"addonReleaseName": "release-2345678",
"addonVersion": "0.0.1",
"configYaml": "apiVersion: xxxxx",
"enableStatus": "run",
"encryptYaml": true,
"endpoints": [
{
"interval": "30s",
"matchedTargetCount": 1,
"path": "/metrics",
"port": "9100",
"targetPort": "https"
}
],
"matchedPodCount": 3,
"name": "znzmo_entity_test",
"namespace": "sla-ns-d5aeb2b4f91b47"
}
],
"policyId": "policy-c9efed2b99c348d49e589c5f780fc074",
"requestId": "CD8BA7D6-995D-578D-9941-78B0FECD14B5"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.