util

package
v1.27.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusFailure for api failure
	StatusFailure = "failure"
	// StatusSuccess for api success
	StatusSuccess = "success"
)
View Source
const (
	// BkBcsMesosWatch for bcs-mesos-watch module metrics prefix
	BkBcsMesosWatch = "bkbcs_mesoswatch"
)

Variables

This section is empty.

Functions

func GetHashId

func GetHashId(s string, maxInt int) int

GetHashId get ID for dispatch channel

func ReportHandlerDiscardEvents

func ReportHandlerDiscardEvents(clusterID, handler string)

ReportHandlerDiscardEvents report handler discard events num

func ReportHandlerQueueLength

func ReportHandlerQueueLength(clusterID, handler string, len float64)

ReportHandlerQueueLength report handler queue len

func ReportHandlerQueueLengthDec

func ReportHandlerQueueLengthDec(clusterID, handler string)

ReportHandlerQueueLengthDec dec queue len

func ReportHandlerQueueLengthInc

func ReportHandlerQueueLengthInc(clusterID, handler string)

ReportHandlerQueueLengthInc inc queue len

func ReportStorageMetrics

func ReportStorageMetrics(clusterID, datatype, action, handler, status string, started time.Time)

ReportStorageMetrics report bcs-storage metrics

func ReportSyncTotal

func ReportSyncTotal(clusterID, datatype, action, status string)

ReportSyncTotal report sync event counter

Types

This section is empty.

Jump to

Keyboard shortcuts

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