aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/message.go
diff options
context:
space:
mode:
authorKurkó Mihály <kurkomisi@users.noreply.github.com>2018-03-08 16:22:21 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-03-08 16:22:21 +0800
commit704840a8ad9e75d4a00e734f901cac21c51b7eb5 (patch)
treee2b012c052986bb40053f09394aefb5c23474a5a /dashboard/message.go
parent3ec1b9a92dc09ff33f6fae2e8daa7862d4c51bb1 (diff)
downloadgo-tangerine-704840a8ad9e75d4a00e734f901cac21c51b7eb5.tar
go-tangerine-704840a8ad9e75d4a00e734f901cac21c51b7eb5.tar.gz
go-tangerine-704840a8ad9e75d4a00e734f901cac21c51b7eb5.tar.bz2
go-tangerine-704840a8ad9e75d4a00e734f901cac21c51b7eb5.tar.lz
go-tangerine-704840a8ad9e75d4a00e734f901cac21c51b7eb5.tar.xz
go-tangerine-704840a8ad9e75d4a00e734f901cac21c51b7eb5.tar.zst
go-tangerine-704840a8ad9e75d4a00e734f901cac21c51b7eb5.zip
cmd, dashboard: use webpack dev server, remove custom assets (#16263)
* cmd, dashboard: remove custom assets, webpack dev server * dashboard: yarn commands, small fixes
Diffstat (limited to 'dashboard/message.go')
-rw-r--r--dashboard/message.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/dashboard/message.go b/dashboard/message.go
index f0d4280e8..84b8d7443 100644
--- a/dashboard/message.go
+++ b/dashboard/message.go
@@ -28,27 +28,20 @@ type Message struct {
Logs *LogsMessage `json:"logs,omitempty"`
}
+type ChartEntries []*ChartEntry
+
+type ChartEntry struct {
+ Time time.Time `json:"time,omitempty"`
+ Value float64 `json:"value,omitempty"`
+}
+
type GeneralMessage struct {
Version string `json:"version,omitempty"`
Commit string `json:"commit,omitempty"`
}
type HomeMessage struct {
- ActiveMemory ChartEntries `json:"activeMemory,omitempty"`
- VirtualMemory ChartEntries `json:"virtualMemory,omitempty"`
- NetworkIngress ChartEntries `json:"networkIngress,omitempty"`
- NetworkEgress ChartEntries `json:"networkEgress,omitempty"`
- ProcessCPU ChartEntries `json:"processCPU,omitempty"`
- SystemCPU ChartEntries `json:"systemCPU,omitempty"`
- DiskRead ChartEntries `json:"diskRead,omitempty"`
- DiskWrite ChartEntries `json:"diskWrite,omitempty"`
-}
-
-type ChartEntries []*ChartEntry
-
-type ChartEntry struct {
- Time time.Time `json:"time,omitempty"`
- Value float64 `json:"value,omitempty"`
+ /* TODO (kurkomisi) */
}
type ChainMessage struct {
@@ -64,7 +57,14 @@ type NetworkMessage struct {
}
type SystemMessage struct {
- /* TODO (kurkomisi) */
+ ActiveMemory ChartEntries `json:"activeMemory,omitempty"`
+ VirtualMemory ChartEntries `json:"virtualMemory,omitempty"`
+ NetworkIngress ChartEntries `json:"networkIngress,omitempty"`
+ NetworkEgress ChartEntries `json:"networkEgress,omitempty"`
+ ProcessCPU ChartEntries `json:"processCPU,omitempty"`
+ SystemCPU ChartEntries `json:"systemCPU,omitempty"`
+ DiskRead ChartEntries `json:"diskRead,omitempty"`
+ DiskWrite ChartEntries `json:"diskWrite,omitempty"`
}
type LogsMessage struct {