This commit is contained in:
2020-06-03 22:05:36 +00:00
parent 2cf4303b23
commit 27cb582fb6

View File

@@ -15,9 +15,9 @@
<v-tabs v-model="tab" color="primary" grow @change="tabChanged"> <v-tabs v-model="tab" color="primary" grow @change="tabChanged">
<v-tabs-slider></v-tabs-slider> <v-tabs-slider></v-tabs-slider>
<v-tab>??cpu memory</v-tab> <v-tab>{{ $ay.t("MetricCPUMemory") }}</v-tab>
<v-tab>??Database</v-tab> <v-tab>{{ $ay.t("Database") }}</v-tab>
<v-tab>??file storage</v-tab> <v-tab>{{ $ay.t("MetricFileStorage") }}</v-tab>
<v-tabs-items v-model="tab"> <v-tabs-items v-model="tab">
<v-tab-item> <v-tab-item>
@@ -294,7 +294,7 @@ export default {
return { return {
datasets: [ datasets: [
{ {
label: "??CPU %", label: "CPU %",
borderColor: CHART_PALETTE.teal, borderColor: CHART_PALETTE.teal,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -309,7 +309,7 @@ export default {
return { return {
datasets: [ datasets: [
{ {
label: "??DB Size (MB)", label: this.$ay.t("MetricDBSize"),
borderColor: CHART_PALETTE.blue, borderColor: CHART_PALETTE.blue,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -328,7 +328,7 @@ export default {
labels: window.$gz._.map(this.db.topTables, "name"), labels: window.$gz._.map(this.db.topTables, "name"),
datasets: [ datasets: [
{ {
label: "??Top tables (KB)", label: this.$ay.t("MetricTopTablesSize"),
data: window.$gz._.map(this.db.topTables, "value"), data: window.$gz._.map(this.db.topTables, "value"),
backgroundColor: getPalette( backgroundColor: getPalette(
this.db.topTables ? this.db.topTables.length : 3 this.db.topTables ? this.db.topTables.length : 3
@@ -375,7 +375,7 @@ export default {
return { return {
datasets: [ datasets: [
{ {
label: "??Allocated (MB)", label: this.$ay.t("MetricAllocatedMemory"),
borderColor: CHART_PALETTE.purple, borderColor: CHART_PALETTE.purple,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -384,7 +384,7 @@ export default {
data: this.memcpu.allocated data: this.memcpu.allocated
}, },
{ {
label: "??Working set (MB)", label: this.$ay.t("MetricWorkingSet"),
borderColor: CHART_PALETTE.green, borderColor: CHART_PALETTE.green,
//borderWidth:4, //borderWidth:4,
// pointStyle: "rectRot", // pointStyle: "rectRot",
@@ -396,7 +396,7 @@ export default {
data: this.memcpu.workingSet data: this.memcpu.workingSet
}, },
{ {
label: "??Private bytes (MB)", label: this.$ay.t("MetricPrivateBytes"),
borderColor: CHART_PALETTE.orange, borderColor: CHART_PALETTE.orange,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -411,7 +411,7 @@ export default {
return { return {
datasets: [ datasets: [
{ {
label: "??Attachments (MB)", label: this.$ay.t("MetricAttachmentsMB"),
borderColor: CHART_PALETTE.purple, borderColor: CHART_PALETTE.purple,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -420,7 +420,7 @@ export default {
data: this.storage.attachmentFileSize data: this.storage.attachmentFileSize
}, },
{ {
label: "??Backup (MB)", label: this.$ay.t("MetricBackupMB"),
borderColor: CHART_PALETTE.orange, borderColor: CHART_PALETTE.orange,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -429,7 +429,7 @@ export default {
data: this.storage.utilityFileSize data: this.storage.utilityFileSize
}, },
{ {
label: "??Available space (MB)", label: this.$ay.t("MetricAvailableDiskSpace"),
borderColor: CHART_PALETTE.green, borderColor: CHART_PALETTE.green,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -444,7 +444,7 @@ export default {
return { return {
datasets: [ datasets: [
{ {
label: "??Attachment files", label: this.$ay.t("MetricAttachmentsCount"),
borderColor: CHART_PALETTE.blue, borderColor: CHART_PALETTE.blue,
fill: false, fill: false,
radius: 0, radius: 0,
@@ -587,7 +587,19 @@ function fetchTranslatedText(vm) {
"DateRangePast7Days", "DateRangePast7Days",
"DateRangePast30Days", "DateRangePast30Days",
"DateRangeInTheLastSixMonths", "DateRangeInTheLastSixMonths",
"DateRangePastYear" "DateRangePastYear",
"MetricFileStorage",
"MetricAttachmentsMB",
"MetricBackupMB",
"MetricAvailableDiskSpace",
"MetricAttachmentsCount",
"Database",
"MetricDBSize",
"MetricTopTablesSize",
"MetricCPUMemory",
"MetricAllocatedMemory",
"MetricWorkingSet",
"MetricPrivateBytes"
]; ];
return window.$gz.translation.fetch(tKeysRequired); return window.$gz.translation.fetch(tKeysRequired);