webhookV2

package
v0.0.0-...-4ba1516 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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAlerts

func SendAlerts(ctx context.Context, alertInput *destinationsV2.AlertInput, destinations []model.AlertDestination)

func SendNotifications

func SendNotifications(ctx context.Context, notificationInput destinationsV2.NotificationInput, destinations []model.AlertDestination)

Types

type AlertCreatedPayload

type AlertCreatedPayload struct {
	Event     string
	AlertUrl  string
	AlertName string
	AdminName string
}

type AlertUpdatedPayload

type AlertUpdatedPayload struct {
	Event     string
	AlertUrl  string
	AlertName string
	AdminName string
}

type ErrorAlertPayload

type ErrorAlertPayload struct {
	Event           string
	AlertName       string
	Query           string
	ErrorCount      int64
	ErrorTitle      string
	SessionSecureID string
	SessionURL      string
	SessionExcluded bool
	UserIdentifier  string
	ErrorURL        string
	ErrorResolveURL string
	ErrorIgnoreURL  string
	ErrorSnoozeURL  string
}

type EventAlertPayload

type EventAlertPayload struct {
	Event          string
	AlertName      string
	Query          string
	Count          float64
	Function       modelInputs.MetricAggregator
	FunctionColumn string
	Threshold      float64
	BelowThreshold bool
	AlertURL       string
}

type LogAlertPayload

type LogAlertPayload struct {
	Event          string
	AlertName      string
	Query          string
	Count          float64
	StartDate      time.Time
	EndDate        time.Time
	Function       modelInputs.MetricAggregator
	FunctionColumn string
	Threshold      float64
	BelowThreshold bool
	LogsURL        string
}

type MetricAlertPayload

type MetricAlertPayload struct {
	Event          string
	AlertName      string
	Query          string
	Count          float64
	Function       modelInputs.MetricAggregator
	FunctionColumn string
	Threshold      float64
	BelowThreshold bool
	DashboardURL   string
}

type SessionAlertPayload

type SessionAlertPayload struct {
	Event      string
	AlertName  string
	Query      string
	SecureID   string
	Identifier string
	SessionURL string
}

type TraceAlertPayload

type TraceAlertPayload struct {
	Event          string
	AlertName      string
	Query          string
	Count          float64
	StartDate      time.Time
	EndDate        time.Time
	Function       modelInputs.MetricAggregator
	FunctionColumn string
	Threshold      float64
	BelowThreshold bool
	TracesURL      string
}

Jump to

Keyboard shortcuts

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