metrics

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

Metrics manages the metrics for KMS.

func Get

func Get() *Metrics

Get returns an KMS metrics provider.

func (*Metrics) AWSSecretLockDecryptTime

func (m *Metrics) AWSSecretLockDecryptTime(value time.Duration)

AWSSecretLockDecryptTime records the time it takes to decrypt key from a key store.

func (*Metrics) AWSSecretLockEncryptTime

func (m *Metrics) AWSSecretLockEncryptTime(value time.Duration)

AWSSecretLockEncryptTime records the time it takes to encrypt key from a key store.

func (*Metrics) CryptoSignTime

func (m *Metrics) CryptoSignTime(value time.Duration)

CryptoSignTime records the time it takes make sign ops.

func (*Metrics) DBBatchTime

func (m *Metrics) DBBatchTime(dbType string, value time.Duration)

DBBatchTime records the time it takes to batch in db.

func (*Metrics) DBDeleteTime

func (m *Metrics) DBDeleteTime(dbType string, value time.Duration)

DBDeleteTime records the time it takes to delete in db.

func (*Metrics) DBGetBulkTime

func (m *Metrics) DBGetBulkTime(dbType string, value time.Duration)

DBGetBulkTime records the time it takes to get bulk in db.

func (*Metrics) DBGetTagsTime

func (m *Metrics) DBGetTagsTime(dbType string, value time.Duration)

DBGetTagsTime records the time it takes to get tags in db.

func (*Metrics) DBGetTime

func (m *Metrics) DBGetTime(dbType string, value time.Duration)

DBGetTime records the time it takes to get data in db.

func (*Metrics) DBPutTime

func (m *Metrics) DBPutTime(dbType string, value time.Duration)

DBPutTime records the time it takes to store data in db.

func (*Metrics) DBQueryTime

func (m *Metrics) DBQueryTime(dbType string, value time.Duration)

DBQueryTime records the time it takes to query in db.

func (*Metrics) KeySecretLockDecryptTime

func (m *Metrics) KeySecretLockDecryptTime(value time.Duration)

KeySecretLockDecryptTime records the time it takes to decrypt key from a key store.

func (*Metrics) KeySecretLockEncryptTime

func (m *Metrics) KeySecretLockEncryptTime(value time.Duration)

KeySecretLockEncryptTime records the time it takes to encrypt key from a key store.

func (*Metrics) KeyStoreGetKeyTime

func (m *Metrics) KeyStoreGetKeyTime(value time.Duration)

KeyStoreGetKeyTime records the time it takes to get key from a key store.

func (*Metrics) KeyStoreResolveTime

func (m *Metrics) KeyStoreResolveTime(value time.Duration)

KeyStoreResolveTime records the time it takes to resolve a key store.

func (*Metrics) ZCAPLDCapabilityResolveTime

func (m *Metrics) ZCAPLDCapabilityResolveTime(value time.Duration)

ZCAPLDCapabilityResolveTime records the time it takes to resolve zcapld capability.

func (*Metrics) ZCAPLDLoadDocumentTime

func (m *Metrics) ZCAPLDLoadDocumentTime(value time.Duration)

ZCAPLDLoadDocumentTime records the time it takes to load zcapld document.

func (*Metrics) ZCAPLDTime

func (m *Metrics) ZCAPLDTime(value time.Duration)

ZCAPLDTime records the time it takes to run zcapld middleware.

func (*Metrics) ZCAPLDVDRResolveTime

func (m *Metrics) ZCAPLDVDRResolveTime(value time.Duration)

ZCAPLDVDRResolveTime records the time it takes to resolve zcapld vdr.

Jump to

Keyboard shortcuts

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