metrix

package
v0.0.0-...-78a648b Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAMESPACE = "CommonRule"
	INVOKE    = "INVOKE"
	BLOCK     = "BLOCK"
)

namespace

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

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

Stat as

func NewStat

func NewStat(ruleConfig *model.RuleConfig) *Stat

NewStat new

func (*Stat) AddCounter

func (s *Stat) AddCounter(name string) *Stat

AddCounter add counter = name in Stats.counters

func (*Stat) Counter

func (s *Stat) Counter(name string) metrics.Counter

Counter return s.counters[name]

func (*Stat) SetCounter

func (s *Stat) SetCounter(name string, counter metrics.Counter)

SetCounter set gauges = name, Stats.counters = counter

func (*Stat) Start

func (s *Stat) Start()

Start ticker

func (*Stat) Stop

func (s *Stat) Stop()

Stop ticker

func (*Stat) String

func (s *Stat) String() string

Jump to

Keyboard shortcuts

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