Documentation ¶
Overview ¶
调用API巡检包
Index ¶
- Variables
- func APITriggerReportFailed(apiName string, msg string)
- func APITriggerReportOk(apiName string)
- func APITriggerReportWithError(apiName string, err error)
- func AsyncTicker(interval int, function func())
- func BusinessTriggerReportFailed(businessName string, msg string)
- func BusinessTriggerReportOk(businessName string)
- func BusinessTriggerReportWithError(businessName string, err error)
- func CounterReport(counterEname, counterName string, count int64)
- func Init(metric string) error
- func Init1(servicName, metric string) error
- func ReloadCfgTriggerReportWithError(err error)
- func TaskQueueLengthReport(taskQueueEname, taskQueueName string, length int64)
- func TaskTriggerReportFailed(taskEname, taskName string, msg string)
- func TaskTriggerReportOk(taskEname, taskName string)
- func TaskTriggerReportWithError(taskEname, taskName string, err error)
- func Ticker(interval int, function func())
- func TickerAfterDone(interval int, function func())
- func TickerDelayed(interval int, function func())
- func TriggerReport(tags, fields string)
- func TriggerReportSpecifiedTime(tags, fields string, timestamp int64)
- func TriggerReportWithError(tags string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInitParamMustBeProvided = errors.New("sorry, metric or serviceName must be provided")
Functions ¶
func APITriggerReportFailed ¶
APITriggerReportFailed 上报API失败调用
func APITriggerReportWithError ¶
APITriggerReportWithError if err is nil, report ok
func AsyncTicker ¶
func AsyncTicker(interval int, function func())
func BusinessTriggerReportFailed ¶
BusinessTriggerReportFailed 上报业务失败
func BusinessTriggerReportOk ¶
func BusinessTriggerReportOk(businessName string)
BusinessTriggerReportOk 上报业务成功
func BusinessTriggerReportWithError ¶
BusinessTriggerReportWithError if err is nil, report ok
func CounterReport ¶
CounterReport 计数器指标上报
func ReloadCfgTriggerReportWithError ¶
func ReloadCfgTriggerReportWithError(err error)
func TaskQueueLengthReport ¶
TaskQueueLengthReport 任务队列长度上报
func TaskTriggerReportFailed ¶
TaskTriggerReportFailed 上报业务失败
func TaskTriggerReportOk ¶
func TaskTriggerReportOk(taskEname, taskName string)
TaskTriggerReportOk 上报业务成功
func TaskTriggerReportWithError ¶
TaskTriggerReportWithError if err is nil, report ok
func TickerAfterDone ¶
func TickerAfterDone(interval int, function func())
func TickerDelayed ¶
func TickerDelayed(interval int, function func())
func TriggerReport ¶
func TriggerReport(tags, fields string)
TriggerReport is a function of report to monitor agent
func TriggerReportSpecifiedTime ¶
TriggerReportSpecifiedTime is a function of report to monitor agent
func TriggerReportWithError ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.