falcon

package
v0.0.0-...-4a8772d Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collector

func Collector()

Collector collect metrics

func GetCurrentStatsDB

func GetCurrentStatsDB() *g.StatsDB

GetCurrentStatsDB get current stats management database

Types

type MetaData

type MetaData struct {
	Endpoint    string      `json:"endpoint"`
	Metric      string      `json:"metric"`
	Value       interface{} `json:"value"`
	CounterType string      `json:"counterType"`
	Tags        string      `json:"tags"`
	Timestamp   int64       `json:"timestamp"`
	Step        int64       `json:"step"`
}

MetaData meta data

func NewMetric

func NewMetric(name string, value interface{}, tags string) *MetaData

NewMetric create an new metric

func (*MetaData) SetValue

func (m *MetaData) SetValue(v interface{})

SetValue value setter

func (*MetaData) String

func (m *MetaData) String() string

Jump to

Keyboard shortcuts

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