mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
a83a26b279
- 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
19 lines
469 B
JavaScript
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);
|
|
},
|
|
};
|
|
};
|