Documentation ¶
Overview ¶
Package util xxx
Index ¶
- Constants
- func GetHashId(s string, maxInt int) int
- func ReportHandlerDiscardEvents(clusterID, handler string)
- func ReportHandlerQueueLength(clusterID, handler string, len float64)
- func ReportHandlerQueueLengthDec(clusterID, handler string)
- func ReportHandlerQueueLengthInc(clusterID, handler string)
- func ReportStorageMetrics(clusterID, datatype, action, handler, status string, started time.Time)
- func ReportSyncTotal(clusterID, datatype, action, status string)
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 ReportHandlerDiscardEvents ¶
func ReportHandlerDiscardEvents(clusterID, handler string)
ReportHandlerDiscardEvents report handler discard events num
func ReportHandlerQueueLength ¶
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 ¶
ReportStorageMetrics report bcs-storage metrics
func ReportSyncTotal ¶
func ReportSyncTotal(clusterID, datatype, action, status string)
ReportSyncTotal report sync event counter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.