Documentation ¶
Index ¶
Constants ¶
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func CPUCheck ¶
@Summary Checks the cpu usage @Description Checks the cpu usage @Tags monitor @Accept json @Produce json @Success 200 {string} plain "CRITICAL - Load average: 1.78, 1.99, 2.02 | Cores: 2" @Router /monitor/cpu [get]
func DiskCheck ¶
@Summary Checks the disk usage @Description Checks the disk usage @Tags monitor @Accept json @Produce json @Success 200 {string} plain "OK - Free space: 17233MB (16GB) / 51200MB (50GB) | Used: 33%" @Router /monitor/disk [get]
func HealthCheck ¶
@Summary Shows OK as the ping-pong result @Description Shows OK as the ping-pong result @Tags monitor @Accept json @Produce json @Success 200 {string} plain "OK" @Router /monitor/health [get]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.