refactor(pkg): rename plugin status constants
This commit is contained in:
parent
ebdb99be8b
commit
b3aa7dfcad
4 changed files with 26 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue