agent

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChoriaPlugin

func ChoriaPlugin() plugin.Pluggable

func New

func New(mgr server.AgentManager) (agents.Agent, error)

Types

type CheckState

type CheckState struct {
	Name    string                           `json:"name"`
	State   string                           `json:"state"`
	Version string                           `json:"version"`
	Started int64                            `json:"start_time"`
	Status  *nagioswatcher.StateNotification `json:"status"`
}

type ChecksRequest

type ChecksRequest struct{}

type ChecksResponse added in v0.17.0

type ChecksResponse struct {
	Checks []*CheckState `json:"checks"`
}

type GossValidateRequest

type GossValidateRequest struct {
	Rules    string `json:"yaml_rules"`
	File     string `json:"file"`
	Vars     string `json:"vars"`
	VarsData string `json:"yaml_vars"`
}

type GossValidateResponse

type GossValidateResponse struct {
	Failures int                                `json:"failures"`
	Results  []gossoutputs.StructuredTestResult `json:"results"`
	Runtime  float64                            `json:"runtime"`
	Success  int                                `json:"success"`
	Skipped  int                                `json:"skipped"`
	Summary  string                             `json:"summary"`
	Tests    int                                `json:"tests"`
}

type MaintenanceReply

type MaintenanceReply struct {
	TransitionedChecks []string `json:"transitioned"`
	FailedChecks       []string `json:"failed"`
	SkippedChecks      []string `json:"skipped"`
}

type MaintenanceRequest

type MaintenanceRequest struct {
	Checks []string `json:"checks"`
}

type ResumeReply

type ResumeReply struct {
	TransitionedChecks []string `json:"transitioned"`
	FailedChecks       []string `json:"failed"`
	SkippedChecks      []string `json:"skipped"`
}

type ResumeRequest

type ResumeRequest struct {
	Checks []string `json:"checks"`
}

type TriggerReply

type TriggerReply struct {
	TransitionedChecks []string `json:"transitioned"`
	FailedChecks       []string `json:"failed"`
	SkippedChecks      []string `json:"skipped"`
}

type TriggerRequest

type TriggerRequest struct {
	Checks []string `json:"checks"`
}

Jump to

Keyboard shortcuts

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