metrics

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncDeltasSentTotal

func IncDeltasSentTotal()

func IncScansTotal

func IncScansTotal(scanType ScanType, err error)

func ObserveScanDuration

func ObserveScanDuration(scanType ScanType, start time.Time)

func SetPendingImagesCount

func SetPendingImagesCount(v int)

func SetTotalImagesCount

func SetTotalImagesCount(v int)

Types

type ScanStatus

type ScanStatus string
const (
	ScanStatusOK    ScanStatus = "ok"
	ScanStatusError ScanStatus = "error"
)

type ScanType

type ScanType string
const (
	ScanTypeImage     ScanType = "image"
	ScanTypeKubeBench ScanType = "kube-bench"
	ScanTypeLinter    ScanType = "linter"
	ScanTypeCloud     ScanType = "cloud"
)

Jump to

Keyboard shortcuts

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