health
health copied to clipboard
JSON output too verbose
I've noticed when using the endpoint for JSON output that it includes all the config information for that health panel as well as the result. This isn't shown in the documentation though. Have I therefore missed a bit of configuration which minimises the amount of data returned?
What I'm expecting to see: https://github.com/antonioribeiro/health/blob/master/docs/images/json.png
What I actually see:
{
"AppKey": {
"id": "0b515870-3c13-4c78-8f6c-728a5fbc1952",
"name": "App Key",
"slug": "app-key",
"abbreviation": "appkey",
"isGlobal": false,
"errorMessage": "There is no app key defined",
"style": {
"columnSize": 3,
"buttonLines": "multi",
"multiplier": 0.4,
"opacity": {
"healthy": "0.4",
"failing": "1"
}
},
"notify": true,
"targets": [{
"id": "acb69856-4952-4ff6-ac8c-f840180b5da7",
"name": "default",
"display": "default",
"resource": {
"id": "0b515870-3c13-4c78-8f6c-728a5fbc1952",
"name": "App Key",
"slug": "app-key",
"abbreviation": "appkey",
"isGlobal": false,
"errorMessage": "There is no app key defined",
"style": {
"columnSize": 3,
"buttonLines": "multi",
"multiplier": 0.4,
"opacity": {
"healthy": "0.4",
"failing": "1"
}
},
"notify": true,
"targets": [{
"id": "acb69856-4952-4ff6-ac8c-f840180b5da7",
"name": "default",
"display": "default",
"resource": null,
"result": null,
"value": null,
"checks": null,
"expressionValue": "config('app.key') !== null",
"shouldReturn": true
}],
"checker": [],
"resources": null,
"notified": null,
"currentAction": "check",
"graphEnabled": false,
"columnSize": 3
},
"result": {
"healthy": true,
"elapsedTime": 0.0004050731658935547,
"value": null,
"valueHuman": null,
"errorMessage": null,
"checks": null
},
"value": null,
"checks": null,
"expressionValue": "config('app.key') !== null",
"shouldReturn": true
}],
"checker": [],
"resources": null,
"notified": null,
"currentAction": "check",
"graphEnabled": false,
"columnSize": 3
}
}