metrics

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_METRICS_POLLING time.Duration = 5 * time.Second
View Source
const DEFAULT_MF_CHAN_SIZE int = 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMeta

type AppMeta struct {
	Title string
	Id    string
}

type JSONFloat

type JSONFloat float64

func (*JSONFloat) UnmarshalJSON

func (j *JSONFloat) UnmarshalJSON(data []byte) error

type Manager

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

func NewManager

func NewManager(metricUrl string, metricTypeFilter []string, polling time.Duration, metricIDMap map[string]*AppMeta) *Manager

func (*Manager) Launch

func (m *Manager) Launch() *Manager

func (*Manager) Subscribe

func (m *Manager) Subscribe(appID string) *subscription

func (*Manager) Unsubscribe

func (m *Manager) Unsubscribe(appID string, sub *subscription)

Jump to

Keyboard shortcuts

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