forensiq

package module
v0.0.0-...-cd67d9b Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

README

Forensiq

Build Status GoDoc Go Report Card License

Small tool for collecting forensic stats and storing them in Redis.

Documentation

Overview

Package forensiq allows us to emit minutely/hourly stats to redis. Useful for forensic debugging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is responsible for accummulating and flushing data to redis

func New

func New(namespace string, uc redis.UniversalClient, flushInterval, ttl time.Duration) *Client

New inits a new Client

func (*Client) Add

func (c *Client) Add(t time.Time, metric string, delta float64)

Add increments a metric by delta

func (*Client) Close

func (c *Client) Close() error

Close closes the writer

Jump to

Keyboard shortcuts

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