metric

package
v0.0.0-...-7cd67e0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LongTimer          = 21600 * time.Second
	INVITETimer        = 36 * time.Second
	RINGTimer          = 180 * time.Second
	OnlineTimer        = 43200 * time.Second
	SIPRegSessionTimer = 1800 * time.Second
	SIPRegTryTimer     = 180 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	H    MetricHandler
	Chan chan *decoder.HEP
	// contains filtered or unexported fields
}

func New

func New(name string) *Metric

func (*Metric) End

func (m *Metric) End()

func (*Metric) Run

func (m *Metric) Run() error

type MetricHandler

type MetricHandler interface {
	// contains filtered or unexported methods
}

type Prometheus

type Prometheus struct {
	TargetEmpty bool
	TargetIP    []string
	TargetName  []string
	TargetMap   map[string]string
	TargetConf  *sync.RWMutex

	DataMap map[string][]string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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