-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(xo-web): add alarms to xo6 dashboard
- Loading branch information
Showing
2 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
@xen-orchestra/web/src/components/pool/dashboard/DashboardAlarms.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<UiCard> | ||
<CardTitle> | ||
{{ $t('alarms') | ||
}}<template #info> | ||
<UiCounter color="error" :value="alarms.length" size="medium" /> | ||
</template> | ||
</CardTitle> | ||
<table> | ||
<!-- <AlarmLine></AlarmLine> --> | ||
</table> | ||
</UiCard> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import CardTitle from '@core/components/card/CardTitle.vue' | ||
import UiCard from '@core/components/UiCard.vue' | ||
import UiCounter from '@core/components/UiCounter.vue' | ||
const alarms = [ | ||
{ | ||
level: 1, | ||
triggerLevel: 2, | ||
type: 'cpu_usage', | ||
}, | ||
{ | ||
level: 4, | ||
triggerLevel: 3, | ||
type: 'network_usage', | ||
}, | ||
{ | ||
level: 0, | ||
triggerLevel: 6, | ||
type: 'disk_usage', | ||
}, | ||
{ | ||
level: 1, | ||
triggerLevel: 3, | ||
type: 'fs_usage', | ||
}, | ||
{ | ||
level: 2, | ||
triggerLevel: 4, | ||
type: 'log_fs_usage', | ||
}, | ||
{ | ||
level: 1, | ||
triggerLevel: 1, | ||
type: 'mem_usage', | ||
}, | ||
{ | ||
level: 6, | ||
triggerLevel: 2, | ||
type: 'physical_utilisation', | ||
}, | ||
] | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<template> | ||
<!-- eslint-disable @intlify/vue-i18n/no-raw-text --> | ||
Welcome to XO 6 | ||
<!-- eslint-enable @intlify/vue-i18n/no-raw-text --> | ||
<DashboardAlarms /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import DashboardAlarms from '@/components/pool/dashboard/DashboardAlarms.vue' | ||
</script> |