metrics

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: UPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconcileSuccess = "oci_service_operator_reconcile_success"
	ReconcileFault   = "oci_service_operator_reconcile_fault"
	CRDeleteSuccess  = "oci_service_operator_cr_delete_success"
	CRDeleteFault    = "oci_service_operator_cr_delete_fault"
	CRSuccess        = "oci_service_operator_cr_success"
	CRFault          = "oci_service_operator_cr_fault"
	CRCount          = "oci_service_operator_cr_count"
	SecretCount      = "oci_service_operator_secret_count"
	CRLatency        = "oci_service_operator_cr_latency"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Name        string
	ServiceName string
	Logger      loggerutil.OSOKLogger
}

func Init

func Init(serviceName string, log loggerutil.OSOKLogger) *Metrics

func (*Metrics) AddCRCountMetrics

func (m *Metrics) AddCRCountMetrics(component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRDeleteFaultMetrics

func (m *Metrics) AddCRDeleteFaultMetrics(component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRDeleteSuccessMetrics

func (m *Metrics) AddCRDeleteSuccessMetrics(component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRFaultMetrics

func (m *Metrics) AddCRFaultMetrics(component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRSuccessMetrics

func (m *Metrics) AddCRSuccessMetrics(component string, msg string, resourceName string, namespace string)

func (*Metrics) AddReconcileFaultMetrics

func (m *Metrics) AddReconcileFaultMetrics(component string, msg string, resourceName string, namespace string)

func (*Metrics) AddReconcileSuccessMetrics

func (m *Metrics) AddReconcileSuccessMetrics(component string, msg string, resourceName string, namespace string)

func (*Metrics) AddSecretCountMetrics

func (m *Metrics) AddSecretCountMetrics(component string, msg string, resourceName string, namespace string)

Jump to

Keyboard shortcuts

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