1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<template>
<b-container fluid="xl">
<page-title :description="$t('appPageTitle.dynamicInformation')" />
<chart
type="memory"
:data="filteredSensors"
:warning="temperatureWarning"
:non-normal="temperatureNonNormal"
:critical-start="temperatureCriticalStart"
></chart>
</b-container>
</template>
<script>
import PageTitle from '@/components/_sila/Global/PageTitle';
import Chart from '@/components/_sila/Global/Chart';
import DataFormatterMixin from '@/components/_sila/Mixins/DataFormatterMixin';
import LoadingBarMixin from '@/components/_sila/Mixins/LoadingBarMixin';
import TableFilterMixin from '@/components/_sila/Mixins/TableFilterMixin';
export default {
components: { PageTitle, Chart },
mixins: [DataFormatterMixin, LoadingBarMixin, TableFilterMixin],
data() {
return {
activeFilters: [],
temperatureWarning: 72,
temperatureNonNormal: 44,
temperatureCriticalStart: 55,
};
},
computed: {
allSensors() {
let sensors = this.$store.getters['memory/dimms'];
return sensors;
},
filteredSensors() {
return this.getFilteredTableData(this.allSensors, this.activeFilters);
},
},
created() {
this.startLoader();
this.$store.dispatch('memory/getMemoryDynamic').finally(() => {
this.endLoader();
});
},
};
</script>
|