Discover Packages
github.com/flanksource/karina-ui
pkg
api
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Sep 25, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Alert struct {
Level string `json:"level,omitempty"`
Since time .Time `json:"since,omitempty"`
Message string `json:"message,omitempty"`
}
type Canarydata struct {
ServerName string `json:"server_name,omitempty"`
Checks []Chek `json:"checks,omitempty"`
}
type Chek struct {
Key string `json:"key,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Uptime string `json:"uptime,omitempty"`
Latency string `json:"latency,omitempty"`
CheckStatuses []ChekStatus `json:"checkStatuses,omitempty"`
}
type Cluster struct {
Name string `json:"name,omitempty"`
Properties []Property `json:"properties,omitempty"`
CanaryChecks []Chek `json:"canary_checks,omitempty"`
Nodes []Node `json:"nodes,omitempty"`
Alerts []Alert `json:"alerts,omitempty"`
}
type ClusterConfiguration struct {
CanaryChecker string `yaml:"canaryChecker,omitempty"`
Prometheus string `yaml:"prometheus,omitempty"`
AlertManager string `yaml:"alertmanager,omitempty"`
Kubeconfig string `yaml:"kubeconfig,omitempty"`
}
type Node struct {
Name string `json:"name,omitempty"`
IP string `json:"ip,omitempty"`
Alerts []Alert `json:"alerts,omitempty"`
}
type Property struct {
Name string `json:"name,omitempty"`
Value string `json:"label,omitempty"`
Type string `json:"type,omitempty"`
Icon string `json:"icon,omitempty"`
Alerts []Alert `json:"alerts,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.