updatesvc

package
v0.0.0-...-d2b1cdf Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitServiceHandler

func InitServiceHandler(
	d *yarpc.Dispatcher,
	parent tally.Scope,
	ormStore *ormobjects.Store,
	updateStore storage.UpdateStore,
	goalStateDriver goalstate.Driver,
	jobFactory cached.JobFactory,
)

InitServiceHandler initalizes the update service.

Types

type Metrics

type Metrics struct {
	UpdateAPICreate  tally.Counter
	UpdateCreate     tally.Counter
	UpdateCreateFail tally.Counter

	UpdateAPIGet  tally.Counter
	UpdateGet     tally.Counter
	UpdateGetFail tally.Counter

	UpdateAPIList  tally.Counter
	UpdateList     tally.Counter
	UpdateListFail tally.Counter

	UpdateAPIGetCache  tally.Counter
	UpdateGetCache     tally.Counter
	UpdateGetCacheFail tally.Counter

	UpdateAPIAbort  tally.Counter
	UpdateAbort     tally.Counter
	UpdateAbortFail tally.Counter

	UpdateAPIPause  tally.Counter
	UpdatePause     tally.Counter
	UpdatePauseFail tally.Counter

	UpdateAPIResume  tally.Counter
	UpdateResume     tally.Counter
	UpdateResumeFail tally.Counter
}

Metrics is the struct containing all the counters that track internal state of the update service

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

NewMetrics returns a new Metrics struct, with all metrics initialized and rooted at the given tally.Scope

Jump to

Keyboard shortcuts

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