springboot admin的applications这个接口具体返回的有哪些数据?请给出示例
Spring Boot Admin的/applications接口返回的数据包括以下内容:
- name:应用名称
- instances:应用实例列表,包括实例ID、状态、health url等信息
- healthUrl:应用健康检查URL
- managementUrl:应用管理URL
- serviceUrl:应用服务URL
- metadata:应用元数据,包括版本、描述等信息
示例:
[
{
"name": "my-application",
"instances": [
{
"instanceId": "instance-1",
"status": "UP",
"healthUrl": "http://localhost:8080/actuator/health",
"managementUrl": "http://localhost:8080/actuator",
"serviceUrl": "http://localhost:8080",
"metadata": {
"version": "1.0.0",
"description": "My Application"
}
},
{
"instanceId": "instance-2",
"status": "DOWN",
"healthUrl": "http://localhost:8081/actuator/health",
"managementUrl": "http://localhost:8081/actuator",
"serviceUrl": "http://localhost:8081",
"metadata": {
"version": "1.0.0",
"description": "My Application"
}
}
]
}
]
原文地址: https://www.cveoy.top/t/topic/EUq 著作权归作者所有。请勿转载和采集!