hostsvc

package
v0.0.0-...-c0686e8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 14 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,
	drainer drainer.Drainer,
	hostPoolManager hostpool_mgr.HostPoolManager,
	hostMover hostmover.HostMover)

InitServiceHandler initializes the HostService

Types

type Metrics

type Metrics struct {
	StartMaintenanceAPI     tally.Counter
	StartMaintenanceSuccess tally.Counter
	StartMaintenanceFail    tally.Counter

	CompleteMaintenanceAPI     tally.Counter
	CompleteMaintenanceSuccess tally.Counter
	CompleteMaintenanceFail    tally.Counter

	QueryHostsAPI     tally.Counter
	QueryHostsSuccess tally.Counter
	QueryHostsFail    tally.Counter
}

Metrics is a placeholder for all metrics in host.svc

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

NewMetrics returns a new instance of host.svc.Metrics

Jump to

Keyboard shortcuts

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