application

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// InfoView display application information
	InfoView = &view.View{
		Name: mApplicationInfo.Name(), Description: mApplicationInfo.Description(),
		Measure:     mApplicationInfo,
		Aggregation: view.LastValue(),
		TagKeys:     []tag.Key{tagApplicationName, tagApplicationID, tagApplicationVersion, tagApplicationRevision},
	}
)

Functions

func New

func New(cfg Config) (metrics.Collector, error)

New returns an application metric collector instance

Types

type Config

type Config struct {
	Name     string
	ID       string
	Version  string
	Revision string
}

Config defines application metric collector configuration

func (*Config) Validate

func (c *Config) Validate() error

Validate configuration

Jump to

Keyboard shortcuts

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