mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-14 07:11:11 +01:00
* Create model and adapter for metrics/activity * Query activity and return fake data on adapterError * Add stub of pricing metrics cards and search form elements to metrics template * Metrics page has pricing metrics rather than all-time tokens and requests * update metrics config model * Add metrics-config route and page * Remove metrics/http-requests route and template * remove log * Add alert banner for when tracking disabled, and add result dates * Small edits
15 lines
313 B
JavaScript
15 lines
313 B
JavaScript
import Application from '../application';
|
|
|
|
export default Application.extend({
|
|
queryRecord() {
|
|
return this.ajax(this.urlForQuery(), 'GET').then(resp => {
|
|
resp.id = resp.request_id;
|
|
return resp;
|
|
});
|
|
},
|
|
|
|
urlForQuery() {
|
|
return this.buildURL() + '/internal/counters/activity';
|
|
},
|
|
});
|