Ui/pricing metrics page setup (#10049)

* 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
This commit is contained in:
Chelsea Shaw
2020-10-01 14:37:33 -05:00
committed by GitHub
parent d7e7db8c96
commit 79a982ee47
16 changed files with 221 additions and 74 deletions

View File

@@ -15,10 +15,7 @@ Router.map(function() {
this.route('logout');
this.mount('open-api-explorer', { path: '/api-explorer' });
this.route('license');
this.route('metrics', function() {
this.route('index', { path: '/' });
this.route('http-requests');
});
this.route('metrics');
this.route('storage', { path: '/storage/raft' });
this.route('storage-restore', { path: '/storage/raft/restore' });
this.route('settings', function() {
@@ -137,6 +134,7 @@ Router.map(function() {
}
this.route('not-found', { path: '/*path' });
this.route('metrics-config');
});
this.route('not-found', { path: '/*path' });
});