sensu

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckData

type CheckData struct {
	Name        string
	Command     string
	Subscribers []string
	Interval    int
	Issued      int64
	Executed    int64
	Output      string
	Status      int
	Duration    float32
	History     []string
}

type Data

type Data struct {
	Host string
	Port int

	Instances []Instance
	AllEvents []Event
}

func (*Data) CheckRemoveClient

func (d *Data) CheckRemoveClient(name string) bool

func (*Data) GetAllClients

func (d *Data) GetAllClients()

func (*Data) GetAllEvents

func (d *Data) GetAllEvents(event []byte)

type Event

type Event struct {
	Id         string
	Client     Instance
	Check      CheckData
	Occurences int
	Action     string
}

type Instance

type Instance struct {
	Name          string
	Address       string
	Subscriptions []string
	Timestamp     int64
}

Jump to

Keyboard shortcuts

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