statse

package
v0.0.0-...-bd03ed3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package statse implements the Statse protocol

Index

Constants

View Source
const (
	// MaxTagsPerEvent limits the number of event tags.
	MaxTagsPerEvent = 5

	// MaxKeys is the count of available Keys.
	MaxKeys = len(keyText)
)
View Source
const ListenAddr = "tcp://127.0.0.1:14444/"

ListenAddr is the listen address of Statse sink service.

Variables

View Source
var Debug *log.Logger

Functions

This section is empty.

Types

type Decoder

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

func NewDecoder

func NewDecoder(r Reader) *Decoder

func (*Decoder) Decode

func (dec *Decoder) Decode(ev *Event) error

type Event

type Event struct {
	Time       time.Time
	Metric     string
	Tags       string
	Error      bool
	Statistics []Statistic
	// contains filtered or unexported fields
}

Event represents performance measurements for an application-specific event.

func (*Event) String

func (e *Event) String() string

type Key

type Key int
const (
	Time Key = iota
	TTFB
	Size
)

Defined statistics.

func (Key) String

func (k Key) String() string

type Reader

type Reader interface {
	ReadParts() [2][]byte
}

Reader represents source of undecoded header, body pairs.

func Listen

func Listen(addr string) (Reader, error)

type Statistic

type Statistic struct {
	Key   Key
	Value float32
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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