sd

package
v0.0.0-...-47c7cf5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 10 Imported by: 0

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

func CPUCheck(c *gin.Context)

@Summary CPU 使用量 @Description CPU 使用量 DiskCheck checks the disk usage. @Accept text/html @Produce text/html @Success 200 {string} string "" @Router /sd/cpu [get] @BasePath

func DiskCheck

func DiskCheck(c *gin.Context)

@Summary 服务器硬盘使用量 @Description 服务器硬盘使用量 DiskCheck checks the disk usage. @Accept text/html @Produce text/html @Success 200 {string} string "OK - Free space: 16321MB (15GB) / 51200MB (50GB) | Used: 31%" @Failure 500 {string} string "CRITICAL" @Failure 429 {string} string "WARNING" @Router /sd/disk [get] @BasePath

func HealthCheck

func HealthCheck(c *gin.Context)

健康状况 @Summary 健康状况 HealthCheck shows OK as the ping-pong result. @Description 健康状况 @Accept text/html @Produce text/html @Success 200 {string} string "OK" @Router /sd/health [get] @BasePath

func OSCheck

func OSCheck(c *gin.Context)

@Summary OS @Description Os @Accept text/html @Produce text/html @Success 200 {string} string "" @Router /sd/os [get] @BasePath

func RAMCheck

func RAMCheck(c *gin.Context)

@Summary 内存使用量 @Description 内存使用量 RAMCheck checks the disk usage. @Accept text/html @Produce text/html @Success 200 {string} string "" @Router /sd/ram [get] @BasePath

Types

This section is empty.

Jump to

Keyboard shortcuts

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