daemon

package
v0.0.0-...-f83c003 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: MIT Imports: 11 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 DatacenterFetcher

type DatacenterFetcher struct {
	// contains filtered or unexported fields
}

DatacenterFetcher is used to manage the fetching of data from a datacenter

func (*DatacenterFetcher) Fetch

func (f *DatacenterFetcher) Fetch()

Fetch retrieves all data for a given datacenter

type DatacenterSnapshot

type DatacenterSnapshot struct {
	Aggregates []interface{}
	Checks     []interface{}
	Clients    []interface{}
	Events     []interface{}
	Info       *structs.Info
	Silenced   []interface{}
	Stashes    []interface{}
}

DatacenterSnapshot is used to store a snapshot of a datacenter's data

type DatacenterSnapshotFetcher

type DatacenterSnapshotFetcher struct {
	// contains filtered or unexported fields
}

DatacenterSnapshotFetcher is used to manage the fetching of data from a datacenter API endpoint

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