slack

package
v0.0.0-...-e198a75 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTags

func GetTags(object interface{}, rootprefix, sep string) (map[string]string, error)

GetTags return all the fields of an object in a single map of tags. - rootprefix is the name of the object. - sep is the string separator between 2 layers of deepness (e.g. "test-myfloatarray-1").

func GetTagsRec

func GetTagsRec(obj reflect.Value, tags map[string]string, prefix, sep string) error

func Meta

func Meta() *plugin.PluginMeta

Meta returns meta data for testing

Types

type MetricElt

type MetricElt struct {
	Metric plugin.MetricType
	// contains filtered or unexported fields
}

type Slack

type Slack struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewSlackCollector

func NewSlackCollector() *Slack

func (*Slack) CollectMetrics

func (s *Slack) CollectMetrics(metrics []plugin.MetricType) ([]plugin.MetricType, error)

CollectMetrics returns metrics from Slack

func (*Slack) GetConfigPolicy

func (s *Slack) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns a ConfigPolicy

func (*Slack) GetMetricTypes

func (s *Slack) GetMetricTypes(config plugin.ConfigType) (metricTypes []plugin.MetricType, err error)

GetMetricTypes returns the metric types exposed by gopsutil

Jump to

Keyboard shortcuts

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