Documentation
¶
Index ¶
- Constants
- func EnableBusinessMetrics()
- func FormatStatus(statusCode int) string
- func GetCounterVecValue(counterName string, counter *prometheus.CounterVec, labels prometheus.Labels) (float64, error)
- func GetStatus(metricStatusSuccess *bool) string
- func IsBusinessMetricsEnabled() bool
- func ReadStringPtr(strPtr *string) string
- type MetricTypeEnabled
Constants ¶
View Source
const ( SuccessMetric = "successful" FailureMetric = "failure" )
Variables ¶
This section is empty.
Functions ¶
func EnableBusinessMetrics ¶
func EnableBusinessMetrics()
func FormatStatus ¶
func GetCounterVecValue ¶
func GetCounterVecValue(counterName string, counter *prometheus.CounterVec, labels prometheus.Labels) (float64, error)
func IsBusinessMetricsEnabled ¶
func IsBusinessMetricsEnabled() bool
func ReadStringPtr ¶
readStringPtr return the value of the string pointer if non-nil. Returns an empty string otherwise
Types ¶
type MetricTypeEnabled ¶
type MetricTypeEnabled string
const ( SBI MetricTypeEnabled = "sbi" NAS MetricTypeEnabled = "nas" NGAP MetricTypeEnabled = "ngap" )
Click to show internal directories.
Click to hide internal directories.