integrations

package
v0.0.0-...-28de613 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAlertIntegration

type BaseAlertIntegration interface {
	GetChannels() ([]*discordgo.Channel, error)
	SendErrorAlert(channelId string, payload ErrorAlertPayload) error
	SendNewUserAlert(channelId string, payload NewUserAlertPayload) error
	SendNewSessionAlert(channelId string, payload NewSessionAlertPayload) error
	SendTrackPropertiesAlert(channelId string, payload TrackPropertiesAlertPayload) error
	SendUserPropertiesAlert(channelId string, payload UserPropertiesAlertPayload) error
	SendErrorFeedbackAlert(channelId string, payload ErrorFeedbackAlertPayload) error
	SendRageClicksAlert(channelId string, payload RageClicksAlertPayload) error
	SendMetricMonitorAlert(channelId string, payload MetricMonitorAlertPayload) error
	SendLogAlert(channelId string, payload MetricMonitorAlertPayload) error
}

type ErrorAlertPayload

type ErrorAlertPayload struct {
	ErrorCount      int64
	ErrorTitle      string
	SessionSecureID string
	SessionURL      string
	SessionExcluded bool
	ErrorURL        string
	ErrorResolveURL string
	ErrorIgnoreURL  string
	ErrorSnoozeURL  string
	UserIdentifier  string
	VisitedURL      string
	FirstTimeAlert  bool
}

type ErrorFeedbackAlertPayload

type ErrorFeedbackAlertPayload struct {
	SessionCommentURL string
	UserIdentifier    string
	CommentText       string
}

type LogAlertPayload

type LogAlertPayload struct {
	Name           string
	Query          string
	Count          int
	StartDate      time.Time
	EndDate        time.Time
	Threshold      int
	BelowThreshold bool
	AlertURL       string
}

type MetricMonitorAlertPayload

type MetricMonitorAlertPayload struct {
	MetricToMonitor string
	UnitsFormat     string
	DiffOverValue   string
	Value           string
	Threshold       string
	MonitorURL      string
}

type NewSessionAlertPayload

type NewSessionAlertPayload struct {
	SessionURL     string
	UserIdentifier string
	UserProperties map[string]string
	AvatarURL      *string
	VisitedURL     *string
}

type NewUserAlertPayload

type NewUserAlertPayload struct {
	SessionURL     string
	UserIdentifier string
	UserProperties map[string]string
	AvatarURL      *string
}

type Property

type Property struct {
	Key   string
	Value string
}

type RageClicksAlertPayload

type RageClicksAlertPayload struct {
	RageClicksCount int64
	UserIdentifier  string
	SessionURL      string
}

type TrackPropertiesAlertPayload

type TrackPropertiesAlertPayload struct {
	UserIdentifier    string
	MatchedProperties []Property
	RelatedProperties []Property
}

type UserPropertiesAlertPayload

type UserPropertiesAlertPayload struct {
	UserIdentifier    string
	SessionURL        string
	MatchedProperties []Property
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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