mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	 79a982ee47
			
		
	
	79a982ee47
	
	
	
		
			
			* 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';
 | |
|   },
 | |
| });
 |