Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func (*Collector) HandleMetric ¶
func (*Collector) HasSeenMetric ¶
type Envelope ¶
type Envelope struct {
Type string `json:"type"`
Data interface{} `json:"data"`
Metric string `json:"metric,omitempty"`
}
func WrapMetric ¶
func WrapSample ¶
type JSONSample ¶
type JSONSample struct {
Time time.Time `json:"time"`
Value float64 `json:"value"`
Tags map[string]string `json:"tags"`
}
func NewJSONSample ¶
func NewJSONSample(sample *stats.Sample) *JSONSample
Click to show internal directories.
Click to hide internal directories.