kuberhealthy
kuberhealthy copied to clipboard
Additional filters to json status page
Describe the feature you would like and why you want it
It'd be nice to have additional filter to the status page for "name" of the check. So ?namespace=default&name=mycheck
returns only the single check:
{
"OK": true,
"Errors": [],
...
"CheckDetails": {
"default/mycheck": {
"OK": true,
"Errors": [],
...
}
}
}
and/or a query like ?name=mycheck
could return the range of checks matching that name in all the namespaces.
{
"OK": true,
"Errors": [],
...
"CheckDetails": {
"default/mycheck": {
"OK": true,
"Errors": [],
...
},
"myns/mycheck": {
"OK": true,
"Errors": [],
...
},
}
}
This seems like a helpful idea, but we have some thinking to do about how this behaves when khjob
states are returned.
Also, if we are only going to return one item from CheckDetails
, we might as well change the returned JSON to only show the details from one check. However, if we are doing that we would probably want to create a different endpoint so that we don't change the returned json structure depending on the parameters that are passed in.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment on the issue or this will be closed in 15 days.
This issue was closed because it has been stalled for 15 days with no activity. Please reopen and comment on the issue if you believe it should stay open.