open-vault/ui/app/models/metrics/config.js
Chelsea Shaw 27f6988c3f
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
2020-10-01 14:37:33 -05:00

11 lines
227 B
JavaScript

import DS from 'ember-data';
const { attr } = DS;
export default DS.Model.extend({
queriesAvailable: attr('boolean'),
defaultReportMonths: attr('number'),
retentionMonths: attr('number'),
enabled: attr('string'),
});