应用运维管理 AOM-查询指标:请求示例

时间:2023-11-24 09:53:28

请求示例

  • 通过namespace+appName+clusterName查询指标列表。

    https://{Endpoint}/v1/{project_id}/ams/metrics
    
    {
      "metricItems" : [ {
        "namespace" : "PAAS.CONTAINER",
        "dimensions" : [ {
          "name" : "appName",
          "value" : "aomApp"
        }, {
          "name" : "clusterName",
          "value" : "aomCluster"
        } ]
      } ]
    }
  • 通过inventoryId查询指标列表。

    https://{Endpoint}/v1/{project_id}/ams/metrics?type=inventory
    
    {
      "inventoryId" : "application_xxxxxxxx-xxxx-xxxx-xxxx-xxxxx3fee10"
    }
support.huaweicloud.com/api-aom/ListMetricItems.html