sensu

package
v0.0.0-...-54d14c8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Commands []util.Command `json:"commands"`
}

Config - XXX

type Metric

type Metric struct {
	Plugin string `json:"plugin"`
	Gauge  string `json:"gauge"`
	Value  string `json:"value"`
}

Metric - XXX

func (Metric) String

func (m Metric) String() string

type ParsedLine

type ParsedLine struct {
	Plugin   string
	Elements []string
	Value    string
}

ParsedLine - XXX

type Sensu

type Sensu struct {
	Config Config
}

Sensu - XXX

func (*Sensu) Collect

func (s *Sensu) Collect() (interface{}, error)

Collect - XXX This should return the following: sensu.plugin_name: {"gauges": {}}, sensu.another_plugin :{"gauges":{}}

func (*Sensu) Description

func (s *Sensu) Description() string

Description - XXX

func (*Sensu) ParseLine

func (s *Sensu) ParseLine(lineToParse string) (Metric, error)

ParseLine - XXX

func (*Sensu) SampleConfig

func (s *Sensu) SampleConfig() string

SampleConfig - XXX

func (*Sensu) SetConfigDefaults

func (s *Sensu) SetConfigDefaults() error

SetConfigDefaults - XXX

func (*Sensu) Start

func (s *Sensu) Start() error

Start - XXX

func (*Sensu) Stop

func (s *Sensu) Stop()

Stop - XXX

Jump to

Keyboard shortcuts

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