metrics

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(c Count, delta int)

func AddResult added in v0.47.0

func AddResult(s severity.Severity)

func CountSeverity added in v0.47.0

func CountSeverity(sev severity.Severity) int

func CountSummary

func CountSummary() map[Count]int

func TimerSummary

func TimerSummary() map[Operation]time.Duration

Types

type Count

type Count string
const (
	ModuleLoadCount    Count = "modules"
	BlocksLoaded       Count = "blocks"
	ModuleBlocksLoaded Count = "module blocks"
	BlocksEvaluated    Count = "evaluated blocks"
	FilesLoaded        Count = "files loaded"
	IgnoredChecks      Count = "ignored checks"
)

type Operation

type Operation string
const (
	DiskIO     Operation = "disk i/o"
	HCLParse   Operation = "parsing HCL"
	Evaluation Operation = "evaluating values"
	Check      Operation = "running checks"
)

type Timer

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

func Start

func Start(op Operation) *Timer

func (*Timer) Stop

func (t *Timer) Stop()

Jump to

Keyboard shortcuts

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