add service metrics to overview endpoint (#74, #80)

This commit is contained in:
Michael Quigley
2022-10-19 13:06:05 -04:00
parent 40252f7a10
commit c1f481e416
5 changed files with 107 additions and 13 deletions

View File

@@ -520,9 +520,6 @@ func init() {
"service": {
"type": "object",
"properties": {
"active": {
"type": "boolean"
},
"backend": {
"type": "string"
},
@@ -532,6 +529,9 @@ func init() {
"frontend": {
"type": "string"
},
"metrics": {
"$ref": "#/definitions/serviceMetrics"
},
"name": {
"type": "string"
},
@@ -543,6 +543,12 @@ func init() {
}
}
},
"serviceMetrics": {
"type": "array",
"items": {
"type": "integer"
}
},
"services": {
"type": "array",
"items": {
@@ -1122,9 +1128,6 @@ func init() {
"service": {
"type": "object",
"properties": {
"active": {
"type": "boolean"
},
"backend": {
"type": "string"
},
@@ -1134,6 +1137,9 @@ func init() {
"frontend": {
"type": "string"
},
"metrics": {
"$ref": "#/definitions/serviceMetrics"
},
"name": {
"type": "string"
},
@@ -1145,6 +1151,12 @@ func init() {
}
}
},
"serviceMetrics": {
"type": "array",
"items": {
"type": "integer"
}
},
"services": {
"type": "array",
"items": {