dashboard

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dashport string, rvaddr string) *server

Types

type Dashboard

type Dashboard struct {
	HealthyServersPanel LineChart `json:"healthyServersPanel"`
}

type Dataset

type Dataset struct {
	Label           string  `json:"label"`
	BorderColor     string  `json:"borderColor,omitempty"`
	BackgroundColor string  `json:"backgroundColor,omitempty"`
	Data            []int   `json:"data"`
	Fill            bool    `json:"fill"`
	Tension         float64 `json:"tension"`
}

type InstantMetricData

type InstantMetricData struct {
	Timestamp             time.Time
	HealthyServersCount   int
	UnHealthyServersCount int
}

type LineChart

type LineChart struct {
	Labels   []string  `json:"labels"`
	Datasets []Dataset `json:"datasets"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL