mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-14 15:21:11 +01:00
metrics route takes start and end params and passes to the date display field, as well as the route's API call
16 lines
408 B
JavaScript
16 lines
408 B
JavaScript
import Application from '../application';
|
|
|
|
export default Application.extend({
|
|
pathForType() {
|
|
return 'internal/counters/activity';
|
|
},
|
|
queryRecord(store, type, query) {
|
|
const url = this.urlForQuery(null, type);
|
|
// API accepts start and end as query params
|
|
return this.ajax(url, 'GET', { data: query }).then(resp => {
|
|
resp.id = resp.request_id;
|
|
return resp;
|
|
});
|
|
},
|
|
});
|