monitor

package
v0.0.0-...-0f8ae5d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvocationTime = prometheus.NewSummaryVec(prometheus.SummaryOpts{
		Namespace: "invocation",
		Subsystem: "monitor",
		Name:      "time",
		Help:      "Duration of an invocation in various states.",
		Objectives: map[float64]float64{
			0:    0.0001,
			0.01: 0.0001,
			0.1:  0.0001,
			0.25: 0.0001,
			0.5:  0.0001,
			0.75: 0.0001,
			0.9:  0.0001,
			1:    0.0001,
		},
	}, []string{"type"})
)

Functions

This section is empty.

Types

type InvocationMonitor

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

func NewInvocationMonitor

func NewInvocationMonitor() *InvocationMonitor

func (*InvocationMonitor) ActiveCount

func (m *InvocationMonitor) ActiveCount() int

func (*InvocationMonitor) AddQueued

func (m *InvocationMonitor) AddQueued(invID string)

func (*InvocationMonitor) QueuedCount

func (m *InvocationMonitor) QueuedCount() int

func (*InvocationMonitor) Remove

func (m *InvocationMonitor) Remove(invID string)

func (*InvocationMonitor) RunQueued

func (m *InvocationMonitor) RunQueued(invID string)

Jump to

Keyboard shortcuts

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