Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckCPU ¶
type CheckCPU struct { Status string `json:"status"` Data struct { ResultType string `json:"resulttype"` Result []struct { Metric struct { Instance string `json:"instance"` } `json:"metric"` Value []interface{} `json:"value"` } `json:"result"` } `json:"data"` }
CheckCPU - data structure obtained from prometheus on CPU usage on hosts
type CheckHDD ¶
type CheckHDD struct { Status string `json:"status"` Data struct { ResultType string `json:"resultType"` Result []struct { Metric struct { Device string `json:"device"` Fstype string `json:"fstype"` Instance string `json:"instance"` Job string `json:"job"` Mountpoint string `json:"mountpoint"` } `json:"metric"` Value []interface{} `json:"value"` } `json:"result"` } `json:"data"` }
CheckHDD - The structure of the building is data obtained from the use of hard disks, on all monitored hosts, in terms of mount points.
type CheckMemory ¶
type CheckMemory struct { Status string `json:"status"` Data struct { ResultType string `json:"resultType"` Result []struct { Metric struct { Instance string `json:"instance"` Job string `json:"job"` } `json:"metric"` Value []interface{} `json:"value"` } `json:"result"` } `json:"data"` }
CheckMemory - data structure obtained from prometheus on memory usage on hosts
type Host ¶
type Host struct { Host string `json:"host"` CPU string `json:"CPU"` HDD string `json:"HDD"` Memory string `json:"Memory"` }
Host - struct for host info, contains host(IP addr),CPU value,HDD value,Memory value
type Monitoring ¶
type Monitoring struct { ID int64 `json:"id"` Name string `json:"name,omitempty"` Host string `json:"host,omitempty"` Status bool `json:"status,omitempty"` }
Monitoring - struct for Monitoring info, contains name,host(IP addr) and launch status
type Result ¶
type Result struct { sync.RWMutex ServiceRS []ServerRS `json:"services"` //Monitoring []Monitoring `json:"Monitoring"` Hosts struct { PrometheusState bool `json:"prometheusstate"` Нost []Host `json:"hosts,omitempty"` } `json:"hosts"` }
Result - result structure, contains the stend status, slice monitoring services/host slice and their status.
Click to show internal directories.
Click to hide internal directories.