inspect

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

调用API巡检包

Index

Constants

This section is empty.

Variables

View Source
var ErrInitParamMustBeProvided = errors.New("sorry, metric or serviceName must be provided")

Functions

func APITriggerReportFailed

func APITriggerReportFailed(apiName string, msg string)

APITriggerReportFailed 上报API失败调用

func APITriggerReportOk

func APITriggerReportOk(apiName string)

APITriggerReportOk 上报API成功调用API

func APITriggerReportWithError

func APITriggerReportWithError(apiName string, err error)

APITriggerReportWithError if err is nil, report ok

func AsyncTicker

func AsyncTicker(interval int, function func())

func BusinessTriggerReportFailed

func BusinessTriggerReportFailed(businessName string, msg string)

BusinessTriggerReportFailed 上报业务失败

func BusinessTriggerReportOk

func BusinessTriggerReportOk(businessName string)

BusinessTriggerReportOk 上报业务成功

func BusinessTriggerReportWithError

func BusinessTriggerReportWithError(businessName string, err error)

BusinessTriggerReportWithError if err is nil, report ok

func CounterReport

func CounterReport(counterEname, counterName string, count int64)

CounterReport 计数器指标上报

func Init

func Init(metric string) error

func Init1

func Init1(servicName, metric string) error

func ReloadCfgTriggerReportWithError

func ReloadCfgTriggerReportWithError(err error)

func TaskQueueLengthReport

func TaskQueueLengthReport(taskQueueEname, taskQueueName string, length int64)

TaskQueueLengthReport 任务队列长度上报

func TaskTriggerReportFailed

func TaskTriggerReportFailed(taskEname, taskName string, msg string)

TaskTriggerReportFailed 上报业务失败

func TaskTriggerReportOk

func TaskTriggerReportOk(taskEname, taskName string)

TaskTriggerReportOk 上报业务成功

func TaskTriggerReportWithError

func TaskTriggerReportWithError(taskEname, taskName string, err error)

TaskTriggerReportWithError if err is nil, report ok

func Ticker

func Ticker(interval int, function func())

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

func TriggerReportSpecifiedTime(tags, fields string, timestamp int64)

TriggerReportSpecifiedTime is a function of report to monitor agent

func TriggerReportWithError

func TriggerReportWithError(tags string, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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