mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-19 13:41:10 +02:00
* 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
23 lines
605 B
JavaScript
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;
|
|
}
|
|
}
|