util

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 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"
)

Variables

This section is empty.

Functions

func GetHashId

func GetHashId(s string, maxInt int) int

GetHashId get ID for dispatch channel

func ReportHandlerDiscardEvents added in v0.20.13

func ReportHandlerDiscardEvents(clusterID, handler string)

ReportHandlerDiscardEvents report handler discard events num

func ReportHandlerQueueLength added in v0.20.13

func ReportHandlerQueueLength(clusterID, handler string, len float64)

ReportHandlerQueueLength report handler queue len

func ReportHandlerQueueLengthDec added in v0.20.13

func ReportHandlerQueueLengthDec(clusterID, handler string)

ReportHandlerQueueLengthDec dec queue len

func ReportHandlerQueueLengthInc added in v0.20.13

func ReportHandlerQueueLengthInc(clusterID, handler string)

ReportHandlerQueueLengthInc inc queue len

func ReportStorageMetrics added in v0.20.13

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

ReportStorageMetrics report bcs-storage metrics

func ReportSyncTotal added in v0.20.13

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