应用性能管理 APM-查询监控项配置信息:响应示例

时间:2024-05-20 19:52:42

响应示例

状态码: 200

OK,请求响应成功。

{
  "title" : "Url",
  "collector_name" : "Url",
  "view_row_list" : [ {
    "view_list" : [ {
      "latest" : null,
      "span" : true,
      "collector_name" : "Url",
      "metric_set" : "url",
      "title" : "接口维度汇总",
      "table_direction" : null,
      "group_by" : "url,method",
      "filter" : "",
      "field_item_list" : [ {
        "trace" : null,
        "function" : "SUM(invokeCount)",
        "as" : "调用次数",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "SUM(totalTime)/SUM(invokeCount)",
        "as" : "平均响应时间(ms)",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "SUM(errorCount)",
        "as" : "错误数",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "MAX(concurrentMax)",
        "as" : "最大并发",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "MAX(maxTime)",
        "as" : "最慢调用(ms)",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "SUM(range1)",
        "as" : "0ms-10ms",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : false
      }, {
        "trace" : null,
        "function" : "SUM(range2)",
        "as" : "10ms-100ms",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : false
      }, {
        "trace" : null,
        "function" : "SUM(range3)",
        "as" : "100ms-500ms",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : false
      }, {
        "trace" : null,
        "function" : "SUM(range4)",
        "as" : "500ms-1s",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : false
      }, {
        "trace" : null,
        "function" : "SUM(range5)",
        "as" : "1s-10s",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : false
      }, {
        "trace" : null,
        "function" : "SUM(range6)",
        "as" : "10s-n",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : false
      } ],
      "span_field" : "source",
      "order_by" : null,
      "view_type" : "sumtable"
    } ],
    "title" : ""
  }, {
    "view_list" : [ {
      "latest" : null,
      "span" : true,
      "collector_name" : "Url",
      "metric_set" : "statuscode",
      "title" : "状态码维度汇总",
      "table_direction" : null,
      "group_by" : "code",
      "filter" : "",
      "field_item_list" : [ {
        "trace" : null,
        "function" : "SUM(count)",
        "as" : "个数",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "LAST(url)",
        "as" : "最近url",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      } ],
      "span_field" : "code",
      "order_by" : null,
      "view_type" : "sumtable"
    } ],
    "title" : ""
  }, {
    "view_list" : [ {
      "latest" : null,
      "span" : null,
      "collector_name" : "Url",
      "metric_set" : "user",
      "title" : "集群维度汇总",
      "table_direction" : null,
      "group_by" : "clusterId",
      "filter" : "",
      "field_item_list" : [ {
        "trace" : null,
        "function" : "SUM(invokeCount)",
        "as" : "调用次数",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "SUM(totalTime)/SUM(invokeCount)",
        "as" : "平均响应时间(ms)",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "SUM(errorCount)",
        "as" : "错误数",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      } ],
      "span_field" : null,
      "order_by" : null,
      "view_type" : "sumtable"
    } ],
    "title" : ""
  }, {
    "view_list" : [ {
      "latest" : null,
      "span" : null,
      "collector_name" : "Url",
      "metric_set" : "total",
      "title" : "总览",
      "table_direction" : null,
      "group_by" : "",
      "filter" : "",
      "field_item_list" : [ {
        "trace" : null,
        "function" : "SUM(invokeCount)",
        "as" : "总请求数",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "SUM(totalTime)/SUM(invokeCount)",
        "as" : "平均响应时间(ms)",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      }, {
        "trace" : null,
        "function" : "SUM(errorCount)",
        "as" : "错误次数",
        "default_value" : null,
        "precision" : null,
        "unit" : null,
        "visible" : true
      } ],
      "span_field" : null,
      "order_by" : null,
      "view_type" : "trend"
    } ],
    "title" : ""
  } ],
  "style" : "tab"
}
support.huaweicloud.com/api-apm/ShowMonitorItemViewConfig.html