statsd

package
v5.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package statsd implements the modified statsd protocol documented at https://genevamondocs.azurewebsites.net/collect/references/statsdref.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float

type Float struct {
	Metric    string
	Account   string
	Namespace string
	Dims      map[string]string
	TS        time.Time
	Value     float64
}

Float represents a statsd floating point number

func (*Float) Marshal

func (f *Float) Marshal() ([]byte, error)

Marshal a Float into its statsd format. Call this instead of MarshalJSON().

func (*Float) MarshalJSON

func (f *Float) MarshalJSON() ([]byte, error)

MarshalJSON marshals a Float into JSON format. You should probably call Marshal() instead.

Jump to

Keyboard shortcuts

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