heart

package
v0.0.0-...-7652ffb Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Topic = "heartbeat"
)

Variables

View Source
var (
	MetricsRegistry = metrics.NewRegistry()
)

Functions

func Metrics

func Metrics() (map[string]interface{}, error)

Types

type Heart

type Heart struct {
	ProcessName string
	StopChan    chan bool
	// contains filtered or unexported fields
}

func NewHeart

func NewHeart(nsqdHost string, name string) (*Heart, error)

func (*Heart) Beat

func (this *Heart) Beat() chan error

type HeartBeat

type HeartBeat struct {
	Process    string                 `json:"process_name"`
	Timestamp  int64                  `json:"timestamp"`
	Metrics    map[string]interface{} `json:"metrics"`
	CustomerId string                 `json:"customer_id"`
	BastionId  string                 `json:"bastion_id"`
}

Jump to

Keyboard shortcuts

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