monitoring

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(message string, err error)

func AlertAndSaveInErrorLog added in v1.15.0

func AlertAndSaveInErrorLog(ctx context.Context, tx *gorm.DB, opts AlertContext, message string, err error)

func RecoverAndAlertAndSaveInErrorLog added in v1.15.0

func RecoverAndAlertAndSaveInErrorLog(ctx context.Context, tx *gorm.DB, opts AlertContext, message string, err error)

func RecoverPanicAndSaveInErrorLog added in v1.15.0

func RecoverPanicAndSaveInErrorLog(ctx context.Context, tx *gorm.DB, opts AlertContext, msg string)

func SetLogger added in v1.15.0

func SetLogger(ls AlertLogService)

Types

type AlertContext added in v1.15.0

type AlertContext struct {
	OrgID     uuid.UUID
	ProjectID uuid.UUID
	AssetID   uuid.UUID
}

type AlertLogService added in v1.15.0

type AlertLogService interface {
	SaveLog(ctx context.Context, tx *gorm.DB, orgID, projectID, assetID *uuid.UUID, message string) error
}

Jump to

Keyboard shortcuts

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