Application component history monitoring

Basic Information

This interface is mainly used to obtain monitoring data of the component prometheus under an application for a period of time

请求路径

  1. GET /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/monitor/query_range

request parameters

nameLocationtyperequiredChinese nameillustrate
team_idpathstringYesTeam ID, name
region_namepathstringYesdata center name
app_idpathintegerYesapp id
startpathnumberYesstart timestamp
endpathnumberYesend timestamp
steppathnumberYesstep size (default 60)
is_outerquerystringnoWhether to get only external component monitoring

return result

status codeStatus code meaningillustratedata model
200OKsuccessInline

return data structure

nametyperequiredconstraintChinese nameillustrate
anonymous[ComponentMonitorSerializers]falsenonenone
» monitors[ComponentMonitorItemsSerializers]¦nullfalsenonenone
»» dataDatafalsenoneDatanone
»»» resultTypestringfalsenoneResulttypereturn type
»»» result[MonitorDataSerializers]truenonenone
»»»» value[string]truenonenone
»» monitor_itemstringtruenoneMonitor itemMonitoring item
»» statusstringfalsenoneStatusmonitor status
» service_idstringtruenoneService idcomponent id
» service_cnamestringtruenoneService cnamecomponent name
» service_aliasstringtruenoneService aliascomponent nickname

响应示例

  1. [
  2. {
  3. "monitors": [
  4. {
  5. "data": {
  6. "resultType": "string",
  7. "result": [
  8. {
  9. "value": [
  10. "string"
  11. ]
  12. }
  13. ]
  14. },
  15. "monitor_item": "string",
  16. "status": "string"
  17. }
  18. ],
  19. "service_id": "string",
  20. "service_cname": "string",
  21. "service_alias": "string "
  22. }
  23. ]

Model

ComponentMonitorSerializers

  1. {
  2. "monitors": [
  3. {
  4. "data": {
  5. "resultType": "string",
  6. "result": [
  7. {
  8. "value": null
  9. }
  10. ]
  11. },
  12. "monitor_item": "string",
  13. "status": "string"
  14. }
  15. ],
  16. "service_id": "string",
  17. "service_cname": "string",
  18. "service_alias": "string"
  19. }

Attributes

nametyperequiredconstraintChinese nameillustrate
monitors[ComponentMonitorItemsSerializers]¦nullfalsenonenone
service_idstringtruenoneService idcomponent id
service_cnamestringtruenoneService cnamecomponent name
service_aliasstringtruenoneService aliascomponent nickname

ComponentMonitorItemsSerializers

  1. {
  2. "data": {
  3. "resultType": "string",
  4. "result": [
  5. {
  6. "value": [
  7. "string"
  8. ]
  9. }
  10. ]
  11. },
  12. "monitor_item": "string ",
  13. "status": "string"
  14. }

Attributes

nametyperequiredconstraintChinese nameillustrate
dataDatafalsenonenone
monitor_itemstringtruenoneMonitor itemMonitoring item
statusstringfalsenoneStatusmonitor status

Data

  1. {
  2. "resultType": "string",
  3. "result": [
  4. {
  5. "value": [
  6. "string"
  7. ]
  8. }
  9. ]
  10. }

Attributes

nametyperequiredconstraintChinese nameillustrate
resultTypestringfalsenoneResulttypereturn type
result[MonitorDataSerializers]truenonenone

MonitorDataSerializers

  1. {
  2. "value": [
  3. "string"
  4. ]
  5. }

Attributes

nametyperequiredconstraintChinese nameillustrate
value[string]truenonenone