From d15bd591095e9cd25b5e1e2a5d4fba89e4eb426d Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 12 Mar 2019 21:53:36 +0900 Subject: [PATCH] Fix queue charts (#4482) --- src/client/app/admin/views/queue.vue | 46 ++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/src/client/app/admin/views/queue.vue b/src/client/app/admin/views/queue.vue index 12110b48f..59e29d321 100644 --- a/src/client/app/admin/views/queue.vue +++ b/src/client/app/admin/views/queue.vue @@ -5,14 +5,21 @@
Deliver
- - Waiting - - - Delayed + + Process + Active + + + + Waiting + + + + Delayed +
@@ -20,14 +27,21 @@
Inbox
- - Waiting - - - Delayed + + Process + Active + + + + Waiting + + + + Delayed +
@@ -68,8 +82,11 @@ export default Vue.extend({ watch: { stats(stats) { this.inboxChart.updateSeries([{ - name: 'Active', + name: 'Process', data: stats.map((x, i) => ({ x: i, y: x.inbox.activeSincePrevTick })) + }, { + name: 'Active', + data: stats.map((x, i) => ({ x: i, y: x.inbox.active })) }, { name: 'Waiting', data: stats.map((x, i) => ({ x: i, y: x.inbox.waiting })) @@ -78,8 +95,11 @@ export default Vue.extend({ data: stats.map((x, i) => ({ x: i, y: x.inbox.delayed })) }]); this.deliverChart.updateSeries([{ - name: 'Active', + name: 'Process', data: stats.map((x, i) => ({ x: i, y: x.deliver.activeSincePrevTick })) + }, { + name: 'Active', + data: stats.map((x, i) => ({ x: i, y: x.deliver.active })) }, { name: 'Waiting', data: stats.map((x, i) => ({ x: i, y: x.deliver.waiting })) @@ -127,7 +147,7 @@ export default Vue.extend({ }, }, series: [] as any, - colors: ['#00BCD4', '#FFEB3B', '#e53935'], + colors: ['#00E396', '#00BCD4', '#FFEB3B', '#e53935'], xaxis: { type: 'numeric', labels: {