types

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFilter

func ApplyFilter(data []byte, filter []string, endpoint string) []byte

Types

type CPUS added in v1.0.1

type CPUS struct {
	TimesStat cpu.TimesStat `json:"timesStat"`
	Usage     float64       `json:"usage"`
}

type Check

type Check struct {
	Output        string
	InMemoryValue string
	ExitCode      int
}

Check displays a nagios compliant check as a struct

type Disks

type Disks struct {
	Usage   *disk.UsageStat    `json:"usage"`
	Details disk.PartitionStat `json:"details"`
}

type File

type File struct {
	Path    string
	IsDir   bool
	ModTime int64
	Mode    string
	Name    string
	Size    int64
	Content string
}

type FilterEntryOperator

type FilterEntryOperator string
const (
	FILTER_ENTRY_EXACT        FilterEntryOperator = ":"
	FILTER_ENTRY_REGEX        FilterEntryOperator = ":*"
	FILTER_ENTRY_NEGATE_REGEX FilterEntryOperator = ":#"
	FILTER_ENTRY_NOT          FilterEntryOperator = ":!"
)

type Procs

type Procs struct {
	Name          string   `json:"name"`
	MemoryPercent float32  `json:"memoryPercent"`
	CPUPercent    float64  `json:"cpuPercent"`
	Exe           string   `json:"exe"`
	Status        []string `json:"status"`
}

type TimeSync

type TimeSync struct {
	Timestamp int64  `json:"timestamp"`
	Formatted string `json:"formatted"`
}

type Version added in v1.0.2

type Version struct {
	Version string `json:"version"`
	Commit  string `json:"commit"`
	Date    string `json:"date"`
}

Jump to

Keyboard shortcuts

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