eventlog

package
v0.0.0-...-3651c1b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type AlarmAddedEvent

type AlarmAddedEvent struct {
	Alarm model.Alarm `json:"alarm"`
}

AlarmAddedEvent will be sent when an alarm has been added

type AlarmRemovedEvent

type AlarmRemovedEvent struct {
	Alarm model.Alarm `json:"alarm"`
}

AlarmRemovedEvent will be sent when an alarm has been manually removed. It will not be sent if an alarm has been removed by the configuration as loaded on startup

type AlarmStateChangedEvent

type AlarmStateChangedEvent struct {
	Alarm    model.Alarm `json:"alarm"`
	Previous string      `json:"previous"`
	Current  string      `json:"current"`
}

AlarmStateChangedEvent will be sent when an alarm has changed state

type Event

type Event struct {
	Ts   int64  `json:"ts"`
	Type string `json:"type"`

	ServiceAddedEvent        *ServiceAddedEvent        `json:"service_added,omitempty"`
	ServiceStateChangedEvent *ServiceStateChangedEvent `json:"service_state_changed,omitempty"`
	ServiceRemovedEvent      *ServiceRemovedEvent      `json:"service_removed,omitempty"`

	AlarmAddedEvent   *AlarmAddedEvent        `json:"alarm_added,omitempty"`
	AlarmStateChanged *AlarmStateChangedEvent `json:"alarm_state_changed,omitempty"`
	AlarmRemovedEvent *AlarmRemovedEvent      `json:"alarm_removed,omitempty"`
}

type ServiceAddedEvent

type ServiceAddedEvent struct {
	Service model.Service `json:"service"`
}

ServiceAddedEvent will be sent when a service has been added

type ServiceRemovedEvent

type ServiceRemovedEvent struct {
	Service model.Service `json:"service"`
}

ServiceRemovedEvent will be sent when a service has been removed

type ServiceStateChangedEvent

type ServiceStateChangedEvent struct {
	Service  model.Service `json:"service"`
	Previous string        `json:"previous"`
	Current  string        `json:"current"`
}

ServiceStateChangedEvent will be sent when a service has changed state

type UpdateEvent

type UpdateEvent struct {
	Update *model.Update `json:"update"`
}

Jump to

Keyboard shortcuts

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