fleet/frontend/kolide/status.js
billcobbler a83a26b279 Add ability to disable live queries (#2167)
- Add toggle to disable live queries in advanced settings
- Add new live query status endpoint (checks for disabled via config and Redis health)
- Update QueryPage UI to use new live query status endpoint

Implements #2140
2020-01-13 16:53:04 -08:00

19 lines
469 B
JavaScript

import endpoints from 'kolide/endpoints';
export default (client) => {
return {
result_store: () => {
const { STATUS_RESULT_STORE } = endpoints;
const endpoint = client.baseURL + STATUS_RESULT_STORE;
return client.authenticatedGet(endpoint);
},
live_query: () => {
const { STATUS_LIVE_QUERY } = endpoints;
const endpoint = client.baseURL + STATUS_LIVE_QUERY;
return client.authenticatedGet(endpoint);
},
};
};