daemon

package
v0.0.0-...-07dfffa Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDcFromInterface

func FindDcFromInterface(data interface{}, datacenters *[]sensu.Sensu) (*sensu.Sensu, map[string]interface{}, error)

FindDcFromInterface ...

Types

type Daemon

type Daemon struct {
	Data        *structs.Data
	Datacenters *[]sensu.Sensu
	Enterprise  bool
}

Daemon structure is used to manage the Uchiwa daemon

func (*Daemon) BuildSubscriptions

func (d *Daemon) BuildSubscriptions()

BuildSubscriptions builds a slice of every client subscriptions

func (*Daemon) Start

func (d *Daemon) Start(interval int, data chan *structs.Data)

Start method fetches and builds Sensu data from each datacenter every Refresh seconds

type SensuDatacenter

type SensuDatacenter interface {
	GetName() string
	Metric(string) (*structs.SERawMetric, error)
}

SensuDatacenter represents the sensu.Sensu struct

Jump to

Keyboard shortcuts

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