monitor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableChannel

func DisableChannel(channelId int, channelName string, reason string)

DisableChannel disable & notify

func Emit

func Emit(channelId int, success bool)

func EnableChannel

func EnableChannel(channelId int, channelName string)

EnableChannel enable & notify

func MetricDisableChannel

func MetricDisableChannel(channelId int, successRate float64)

func ShouldDisableChannel

func ShouldDisableChannel(err *model.Error, statusCode int) bool

func ShouldEnableChannel

func ShouldEnableChannel(err error, openAIErr *model.Error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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