opmon

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

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

Operation is the type of operation to be monitored

func StartOperation

func StartOperation(operationName string) *Operation

StartOperation creates a new operation

func (*Operation) Finish

func (op *Operation) Finish(warnThreshold time.Duration)

Finish finishes the operation and records the duration of operation

Jump to

Keyboard shortcuts

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