script

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	core.CheckBase
	// contains filtered or unexported fields
}

Check doesn't need additional fields

func (*Check) Configure

func (c *Check) Configure(rawInstance integration.Data, rawInitConfig integration.Data, source string) error

Configure the Prom check

func (*Check) Run

func (c *Check) Run() error

Run executes the check

type InitConfig

type InitConfig struct {
	Root    string `json:"root"`
	Env     string `json:"env"`
	Timeout int    `json:"timeout"`
}

type InstanceConfig

type InstanceConfig struct {
	FilePath string `json:"filePath"`
	Root     string `json:"root"`
	Params   string `json:"params"`
	Env      string `json:"env"`
	Stdin    string `json:"stdin"`
	Timeout  int    `json:"timeout"`
}

type MetricValue

type MetricValue struct {
	Metric      string  `json:"metric"`
	Endpoint    string  `json:"endpoint"`
	Value       float64 `json:"value"`
	CounterType string  `json:"counterType"` // GAUGE | COUNTER | SUBTRACT | DERIVE
	Tags        string  `json:"tags"`        // a=1,b=2,c=3
}

from github.com/didi/nightingale/src/common/dataobj

Jump to

Keyboard shortcuts

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