应用管理与运维平台 SERVICESTAGE-创建上报服务指标:请求示例

时间:2023-11-22 09:46:25

请求示例

POST https://{endpoint}/v2/{project_id}/csemonitor/metric

{
  "name" : "test",
  "appId" : "default",
  "version" : "1.0.0",
  "instance" : "hostNameTest",
  "thread" : 0,
  "cpu" : 0,
  "memory" : {
      "1":"1"
  },
  "interfaces" : [
      {
        "time" : 0,
        "name" : "test",
        "qps" : 0,
        "latency" : 0,
        "rate" : 0,
        "total" : 0,
        "isCircuitBreakerOpen" : true,
        "failure" : 0,
        "shortCircuited" : 0,
        "semaphoreRejected" : 0,
        "threadPoolRejected" : 0,
        "countTimeout" : 0,
        "l995" : 0,
        "l99" : 0,
        "l90" : 0,
        "l75" : 0,
        "l50" : 0,
        "l25" : 0,
        "l5" : 0
      }
    ]
}
support.huaweicloud.com/api-servicestage/servicestage_06_0128.html