ListIntegrationPolicyServiceMonitors - 获取接入中心策略的ServiceMonitor信息

获取接入中心策略的ServiceMonitor信息

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /integration-policies/{policyId}/service-monitors HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

policyId

string

接入中心策略 ID。

policy-ac38a7cb02d14ff48bc9f97d0a75063e

请求参数

名称

类型

必填

描述

示例值

addonReleaseName

string

Addon Release 名称。

release-12345678

namespace

string

命名空间。

arms-prom

encryptYaml

boolean

是否加密 Yaml。

true

返回参数

名称

类型

描述

示例值

object

Schema of Response

clusterId

string

集群 ID.

ea119prod-ea119blinkcptssd1

policyId

string

策略 ID。

policy-ac38a7cb02d14ff48bc9f97d0a75063e

serviceMonitors

array<object>

ServiceMonitor 列表

array<object>

addonName

string

Addon 名称。

cloud-acs-ecs

addonReleaseName

string

AddonRelease 名称

release-1234567

addonVersion

string

Addon 版本

0.0.1

configYaml

string

配置 yaml

apiVersion: xxxxx

enableStatus

string

启用状态

run

encryptYaml

boolean

加密 yaml

YXBpVmVyc2lvbjogeHh4eHgK

endpoints

array<object>

Endpoint 列表。

object

Endpoint 列表

interval

string

采集时间

30s

matchedTargetCount

integer

匹配的 target 数量

65

path

string

采集路径

/metrics

port

string

采集端口

9100

targetPort

string

目标端口

http

matchedServiceCount

integer

匹配 service 的数量

50

name

string

ServiceMonitor 名称。

62a526c5-f6ca-4cfb-b5a4-b76974cffe51

namespace

string

项目空间名称。

arms-prom

requestId

string

请求 ID。

CD8BA7D6-995D-578D-9941-78B0FECD14B5

示例

正常返回示例

JSON格式

{
  "clusterId": "ea119prod-ea119blinkcptssd1",
  "policyId": "policy-ac38a7cb02d14ff48bc9f97d0a75063e",
  "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"
    }
  ],
  "requestId": "CD8BA7D6-995D-578D-9941-78B0FECD14B5"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情