Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ServiceState type #80

Closed
atc0005 opened this issue Sep 4, 2021 · 0 comments · Fixed by #84
Closed

Add ServiceState type #80

atc0005 opened this issue Sep 4, 2021 · 0 comments · Fixed by #84
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Sep 4, 2021

Currently used by the atc0005/check-cert project:

// ServiceState represents the status label and exit code for a service check.
type ServiceState struct {

	// Label maps directly to one of the supported Nagios state labels.
	Label string

	// ExitCode is the exit or exit status code associated with a Nagios
	// service check.
	ExitCode int
}
@atc0005 atc0005 added the enhancement New feature or request label Sep 4, 2021
@atc0005 atc0005 added this to the Next Release milestone Sep 4, 2021
@atc0005 atc0005 self-assigned this Sep 4, 2021
atc0005 added a commit that referenced this issue Sep 7, 2021
This type provides a state Label and ExitCode.

Port this type from the atc0005/check-cert project to allow
broader use.

refs GH-80
atc0005 added a commit to atc0005/check-cert that referenced this issue Sep 13, 2021
Use upstream dependency's copy of type.

refs atc0005/go-nagios#80
refs GH-225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant