alertsHandler

package
v0.0.0-...-1c6f4db Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCronJob

func AddCronJob(alertDataObj *alertutils.AlertDetails) (*gocron.Job, error)

func AddMinionSearchCronJob

func AddMinionSearchCronJob(alertDataObj *alertutils.MinionSearch) (*gocron.Job, error)

func ConnectSiglensDB

func ConnectSiglensDB() error

func Disconnect

func Disconnect()

func InitAlertingService

func InitAlertingService(getMyIds func() []uint64)

func InitMinionSearchService

func InitMinionSearchService(getMyIds func() []uint64)

func NotifyAlertHandlerRequest

func NotifyAlertHandlerRequest(alertID string) error

func ProcessAlertHistoryRequest

func ProcessAlertHistoryRequest(ctx *fasthttp.RequestCtx)

func ProcessCreateAlertRequest

func ProcessCreateAlertRequest(ctx *fasthttp.RequestCtx, org_id uint64)

func ProcessCreateContactRequest

func ProcessCreateContactRequest(ctx *fasthttp.RequestCtx, org_id uint64)

func ProcessCreateLogMinionSearchRequest

func ProcessCreateLogMinionSearchRequest(ctx *fasthttp.RequestCtx, org_id uint64)

func ProcessDeleteAlertRequest

func ProcessDeleteAlertRequest(ctx *fasthttp.RequestCtx)

request body should contain alert_id only

func ProcessDeleteContactRequest

func ProcessDeleteContactRequest(ctx *fasthttp.RequestCtx)

func ProcessGetAlertRequest

func ProcessGetAlertRequest(ctx *fasthttp.RequestCtx)

func ProcessGetAllAlertsRequest

func ProcessGetAllAlertsRequest(ctx *fasthttp.RequestCtx, org_id uint64)

func ProcessGetAllContactsRequest

func ProcessGetAllContactsRequest(ctx *fasthttp.RequestCtx, org_id uint64)

func ProcessGetAllMinionSearchesRequest

func ProcessGetAllMinionSearchesRequest(ctx *fasthttp.RequestCtx, orgID uint64)

func ProcessGetMinionSearchRequest

func ProcessGetMinionSearchRequest(ctx *fasthttp.RequestCtx)

func ProcessSilenceAlertRequest

func ProcessSilenceAlertRequest(ctx *fasthttp.RequestCtx)

func ProcessUpdateAlertRequest

func ProcessUpdateAlertRequest(ctx *fasthttp.RequestCtx)

func ProcessUpdateContactRequest

func ProcessUpdateContactRequest(ctx *fasthttp.RequestCtx)

func ProcessVersionInfo

func ProcessVersionInfo(ctx *fasthttp.RequestCtx)

func RemoveCronJob

func RemoveCronJob(alertId string) error

func VerifyAlertCronJobExists

func VerifyAlertCronJobExists(alertDataObj *alertutils.AlertDetails) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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