refactor(pkg): rename plugin status constants

This commit is contained in:
Emmanuel BENOîT 2024-07-19 23:24:52 +02:00
parent ebdb99be8b
commit b3aa7dfcad
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
4 changed files with 26 additions and 26 deletions

View file

@ -26,7 +26,7 @@ type Plugin struct {
func New(name string) *Plugin {
p := new(Plugin)
p.name = name
p.status = UNKNOWN
p.status = StatusUnknown
p.message = "no status set"
p.perfData = make(map[string]*perfdata.PerfData)
return p

View file

@ -7,10 +7,10 @@ type Status int
// Plugin exit statuses.
const (
OK Status = iota
WARNING
CRITICAL
UNKNOWN
StatusOK Status = iota
StatusWarning
StatusCritical
StatusUnknown
)
// String representations of the plugin statuses.