Skip to main content

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

请求路径
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
响应示例
[
{
"monitors": [
{
"data": {
"resultType": "string",
"result": [
{
"value": [
"string"
]
}
]
},
"monitor_item": "string",
"status": "string"
}
],
"service_id": "string",
"service_cname": "string",
"service_alias": "string "
}
]

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