Skip to main content

Real-time monitoring of components under the application

Basic Information

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

请求路径
GET /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/monitor/query

request parameters

nameLocationtyperequiredChinese nameillustrate
app_idpathintegerYesapp id
team_idpathstringYesnone
region_namepathstringYesnone
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
响应示例
[
{
"monitors": [
{
"data": {
"resultType": "vector",
"result": [
{
"value": [
"1655531430.126",
"0"
]
}
]
},
"monitor_item": "request_client",
"status": "success"
}
],
"service_id": "8377bede3b344e3daa96563a55516625",
"service_cname": "Mysql5.5 (single machine) )",
"service_alias": "gr516625"
}
]

Model

ComponentMonitorSerializers

{
"monitors": [
{
"data": {
"resultType": "string",
"result": [
{
"value": null
}
]
},
"monitor_item": "string",
"status": "string"
}
],
"service_id": "string",
"service_cname": "string",
"service_alias": "string"
}

Attributes

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

ComponentMonitorItemsSerializers

{
"data": {
"resultType": "string",
"result": [
{
"value": [
"string"
]
}
]
},
"monitor_item": "string ",
"status": "string"
}

Attributes

nametyperequiredconstraintChinese nameillustrate
dataDatafalsenonenone
monitor_itemstringtruenoneMonitor itemMonitoring item
statusstringfalsenoneStatusmonitor status

Data

{
"resultType": "string",
"result": [
{
"value": [
"string"
]
}
]
}

Attributes

nametyperequiredconstraintChinese nameillustrate
resultTypestringfalsenoneResulttypereturn type
result[MonitorDataSerializers]truenonenone

MonitorDataSerializers

{
"value": [
"string"
]
}

Attributes

nametyperequiredconstraintChinese nameillustrate
value[string]truenonenone