kuberhealthy icon indicating copy to clipboard operation
kuberhealthy copied to clipboard

Additional filters to json status page

Open isaaguilar opened this issue 4 years ago • 1 comments

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": [],
      ...
    },
  }
}

isaaguilar avatar Feb 05 '21 19:02 isaaguilar

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.

integrii avatar Feb 10 '21 17:02 integrii

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.

github-actions[bot] avatar Feb 01 '24 00:02 github-actions[bot]

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.

github-actions[bot] avatar Feb 23 '24 00:02 github-actions[bot]