probe

package
v0.0.0-...-3dc5271 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProbe

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

func (*DefaultProbe) Row

func (p *DefaultProbe) Row(metric *model.Metric, args map[string]string) (*model.Sample, error)

func (*DefaultProbe) Table

func (p *DefaultProbe) Table(metric *model.Metric, args map[string]string) ([]*model.Sample, error)

Table return table data

type Probe

type Probe interface {
	Table(metric *model.Metric, args map[string]string) ([]*model.Sample, error)
	Row(metric *model.Metric, args map[string]string) (*model.Sample, error)
}

Probe collects the data of metrics

func NewProbe

func NewProbe(cfg *env.Properties) Probe

func NewShellProbe

func NewShellProbe(cfg *env.Properties) Probe

type ShellProbe

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

func (*ShellProbe) Row

func (p *ShellProbe) Row(metric *model.Metric, args map[string]string) (*model.Sample, error)

func (*ShellProbe) Table

func (p *ShellProbe) Table(metric *model.Metric, args map[string]string) ([]*model.Sample, error)

Jump to

Keyboard shortcuts

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