alerts

package
v0.0.0-...-77f0b0c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLogAlert

func BuildLogAlert(project *model.Project, workspace *model.Workspace, admin *model.Admin, input modelInputs.LogAlertInput) (*model.LogAlert, error)

func BuildSessionAlert

func BuildSessionAlert(project *model.Project, workspace *model.Workspace, admin *model.Admin, input modelInputs.SessionAlertInput) (*model.SessionAlert, error)

func SendErrorAlert

func SendErrorAlert(ctx context.Context, event SendErrorAlertEvent) error

func SendErrorFeedbackAlert

func SendErrorFeedbackAlert(event ErrorFeedbackAlertEvent) error

func SendLogAlert

func SendLogAlert(event LogAlertEvent) error

func SendMetricMonitorAlert

func SendMetricMonitorAlert(event MetricMonitorAlertEvent) error

func SendNewSessionAlert

func SendNewSessionAlert(event SendNewSessionAlertEvent) error

func SendNewUserAlert

func SendNewUserAlert(event SendNewUserAlertEvent) error

func SendRageClicksAlert

func SendRageClicksAlert(event RageClicksAlertEvent) error

func SendTrackPropertiesAlert

func SendTrackPropertiesAlert(event TrackPropertiesAlertEvent) error

func SendUserPropertiesAlert

func SendUserPropertiesAlert(event UserPropertiesAlertEvent) error

Types

type ErrorFeedbackAlertEvent

type ErrorFeedbackAlertEvent struct {
	Session        *model.Session
	ErrorAlert     *model.ErrorAlert
	Workspace      *model.Workspace
	SessionComment *model.SessionComment
	UserName       *string
	UserEmail      *string
}

type LogAlertEvent

type LogAlertEvent struct {
	LogAlert  *model.LogAlert
	Workspace *model.Workspace
	Count     int
	StartDate time.Time
	EndDate   time.Time
}

type MetricMonitorAlertEvent

type MetricMonitorAlertEvent struct {
	MetricMonitor *model.MetricMonitor
	Workspace     *model.Workspace
	UnitsFormat   string
	DiffOverValue string
	Value         string
	Threshold     string
}

type RageClicksAlertEvent

type RageClicksAlertEvent struct {
	Session         *model.Session
	SessionAlert    *model.SessionAlert
	Workspace       *model.Workspace
	RageClicksCount int64
}

type SendErrorAlertEvent

type SendErrorAlertEvent struct {
	Session         *model.Session
	ErrorAlert      *model.ErrorAlert
	ErrorGroup      *model.ErrorGroup
	ErrorObject     *model.ErrorObject
	Workspace       *model.Workspace
	ErrorCount      int64
	VisitedURL      string
	FirstErrorAlert bool
}

type SendNewSessionAlertEvent

type SendNewSessionAlertEvent struct {
	Session      *model.Session
	SessionAlert *model.SessionAlert
	Workspace    *model.Workspace
	VisitedURL   *string
}

type SendNewUserAlertEvent

type SendNewUserAlertEvent struct {
	Session      *model.Session
	SessionAlert *model.SessionAlert
	Workspace    *model.Workspace
}

type TrackPropertiesAlertEvent

type TrackPropertiesAlertEvent struct {
	Session       *model.Session
	SessionAlert  *model.SessionAlert
	Workspace     *model.Workspace
	MatchedFields []*model.Field
	RelatedFields []*model.Field
}

type UserPropertiesAlertEvent

type UserPropertiesAlertEvent struct {
	Session       *model.Session
	SessionAlert  *model.SessionAlert
	Workspace     *model.Workspace
	MatchedFields []*model.Field
}

Jump to

Keyboard shortcuts

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