Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitCodeSuccess = iota ExitCodeWarning ExitCodeFailure )
Standard Sensu return codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { Command string `json:"command"` Subscribers []string `json:"subscribers"` Interval int `json:"interval"` Timeout int `json:"timeout"` TTL int `json:"ttl"` TTLStatus int `json:"ttl_status"` Occurrences int `json:"occurrences"` Refresh int `json:"refresh"` Handlers []string `json:"handlers"` Dependencies []string `json:"dependencies"` }
Check holds data for single Sensu check to be scheduled
type Executor ¶
type Executor struct { ClientName string TmpBaseDir string ShellPath string // contains filtered or unexported fields }
Executor executes checks based on incoming requests
func NewExecutor ¶
NewExecutor creates and initialize executor struct
func (*Executor) Execute ¶
func (self *Executor) Execute(request connector.CheckRequest) (connector.CheckResult, error)
Execute prepares script for single check based on given the request and then executes it
type Scheduler ¶
Scheduler holds data for scheduling standaline checks
func NewScheduler ¶
NewScheduler creates Sensu standalone check scheduler according to configuration
Click to show internal directories.
Click to hide internal directories.