Documentation
¶
Index ¶
- Variables
- func GetLogAlertURL(projectId int, query string, startDate time.Time, endDate time.Time) string
- func SendAlertFeedback(ctx context.Context, db *gorm.DB, mailClient *sendgrid.Client, ...)
- func SendErrorAlerts(ctx context.Context, db *gorm.DB, mailClient *sendgrid.Client, ...)
- func SendSessionAlerts(ctx context.Context, db *gorm.DB, mailClient *sendgrid.Client, ...)
- func SendSlackLogAlert(ctx context.Context, db *gorm.DB, obj *model.LogAlert, ...) error
- func SendSlackMetricMonitorAlert(ctx context.Context, obj *model.MetricMonitor, ...) error
- type PropertyPair
- type SendSlackAlertForLogAlertInput
- type SendSlackAlertForMetricMonitorInput
- type SendSlackAlertInput
Constants ¶
This section is empty.
Variables ¶
View Source
var BLUE_ALERT = "#1e40af"
View Source
var FILE_NAME_LENGTH_LIMIT = 75
View Source
var GREEN_ALERT = "#2eb886"
View Source
var RED_ALERT = "#961e13"
View Source
var YELLOW_ALERT = "#f2c94c"
Functions ¶
func GetLogAlertURL ¶
func SendAlertFeedback ¶
func SendAlertFeedback(ctx context.Context, db *gorm.DB, mailClient *sendgrid.Client, obj *model.ErrorAlert, input *SendSlackAlertInput)
func SendErrorAlerts ¶
func SendSessionAlerts ¶
func SendSlackLogAlert ¶
func SendSlackMetricMonitorAlert ¶
func SendSlackMetricMonitorAlert(ctx context.Context, obj *model.MetricMonitor, input *SendSlackAlertForMetricMonitorInput) error
Types ¶
type PropertyPair ¶
type PropertyPair struct {
// contains filtered or unexported fields
}
type SendSlackAlertInput ¶
type SendSlackAlertInput struct {
// Workspace is a required parameter
Workspace *model.Workspace
// SessionSecureID is a required parameter
SessionSecureID string
// Project is a required parameter
Project *model.Project
// SessionExluded is a required parameter to tell if the session is playable
SessionExcluded bool
// UserIdentifier is a required parameter for New User, Error, and SessionFeedback alerts
UserIdentifier string
// UserObject is a required parameter for alerts that relate to a session
UserObject model.JSONB
// Group is a required parameter for Error alerts
Group *model.ErrorGroup
// ErrorObject is a required parameter for Error alerts
ErrorObject *model.ErrorObject
// URL is an optional parameter for Error alerts
URL *string
// ErrorsCount is a required parameter for Error alerts
ErrorsCount *int64
// FirstErrorAlert is a required parameter for Error alerts
FirstErrorAlert bool
// MatchedFields is a required parameter for Track Properties and User Properties alerts
MatchedFields []*model.Field
// RelatedFields is an optional parameter for Track Properties and User Properties alerts
RelatedFields []*model.Field
// UserProperties is a required parameter for User Properties alerts
UserProperties map[string]string
// CommentID is a required parameter for SessionFeedback alerts
CommentID *int
// CommentText is a required parameter for SessionFeedback alerts
CommentText string
// QueryParams is a map of query params to be appended to the url suffix
// `key:value` will be converted to `key=value` in the url with the appropriate separator (`?` or `&`)
// - tsAbs is required for rage click alerts
QueryParams map[string]string
// RageClicksCount is a required parameter for Rage Click Alerts
RageClicksCount *int64
// Timestamp is an optional value for all session alerts.
Timestamp *time.Time
}
Click to show internal directories.
Click to hide internal directories.