claire bontempo d14ee7d867
UI/Current month view (#13788)
* add timestamp to attribution

* create usage stat component

* updates stat text boxes

* remove flex-header css

* remove comment

* add empty state if no data

* update monthly serializer

* remove empty state - unnecessary
2022-01-27 10:59:08 -08:00

23 lines
605 B
JavaScript

import Component from '@glimmer/component';
export default class Current extends Component {
chartLegend = [
{ key: 'entity_clients', label: 'entity clients' },
{ key: 'non_entity_clients', label: 'non-entity clients' },
];
// data for horizontal bar chart in attribution component
get topTenNamespaces() {
return this.args.model.monthly?.byNamespace;
}
// top level TOTAL client counts from response for given month
get runningTotals() {
return this.args.model.monthly?.total;
}
get responseTimestamp() {
return this.args.model.monthly?.responseTimestamp;
}
}