|
|
|
@ -347,7 +347,7 @@ export default {
|
|
|
|
|
let result = {};
|
|
|
|
|
|
|
|
|
|
let unknown = {
|
|
|
|
|
text: "Unknown",
|
|
|
|
|
text: this.$t("Unknown"),
|
|
|
|
|
color: "secondary",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -358,17 +358,17 @@ export default {
|
|
|
|
|
result[monitorID] = unknown;
|
|
|
|
|
} else if (lastHeartBeat.status === 1) {
|
|
|
|
|
result[monitorID] = {
|
|
|
|
|
text: "Up",
|
|
|
|
|
text: this.$t("Up"),
|
|
|
|
|
color: "primary",
|
|
|
|
|
};
|
|
|
|
|
} else if (lastHeartBeat.status === 0) {
|
|
|
|
|
result[monitorID] = {
|
|
|
|
|
text: "Down",
|
|
|
|
|
text: this.$t("Down"),
|
|
|
|
|
color: "danger",
|
|
|
|
|
};
|
|
|
|
|
} else if (lastHeartBeat.status === 2) {
|
|
|
|
|
result[monitorID] = {
|
|
|
|
|
text: "Pending",
|
|
|
|
|
text: this.$t("Pending"),
|
|
|
|
|
color: "warning",
|
|
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|