Documentation ¶
Index ¶
- func AddCronJob(alertDataObj *alertutils.AlertDetails) (*gocron.Job, error)
- func AddMinionSearchCronJob(alertDataObj *alertutils.MinionSearch) (*gocron.Job, error)
- func ConnectSiglensDB() error
- func Disconnect()
- func InitAlertingService(getMyIds func() []uint64)
- func InitMinionSearchService(getMyIds func() []uint64)
- func NotifyAlertHandlerRequest(alertID string) error
- func ProcessAlertHistoryRequest(ctx *fasthttp.RequestCtx)
- func ProcessCreateAlertRequest(ctx *fasthttp.RequestCtx, org_id uint64)
- func ProcessCreateContactRequest(ctx *fasthttp.RequestCtx, org_id uint64)
- func ProcessCreateLogMinionSearchRequest(ctx *fasthttp.RequestCtx, org_id uint64)
- func ProcessDeleteAlertRequest(ctx *fasthttp.RequestCtx)
- func ProcessDeleteContactRequest(ctx *fasthttp.RequestCtx)
- func ProcessGetAlertRequest(ctx *fasthttp.RequestCtx)
- func ProcessGetAllAlertsRequest(ctx *fasthttp.RequestCtx, org_id uint64)
- func ProcessGetAllContactsRequest(ctx *fasthttp.RequestCtx, org_id uint64)
- func ProcessGetAllMinionSearchesRequest(ctx *fasthttp.RequestCtx, orgID uint64)
- func ProcessGetMinionSearchRequest(ctx *fasthttp.RequestCtx)
- func ProcessSilenceAlertRequest(ctx *fasthttp.RequestCtx)
- func ProcessUpdateAlertRequest(ctx *fasthttp.RequestCtx)
- func ProcessUpdateContactRequest(ctx *fasthttp.RequestCtx)
- func ProcessVersionInfo(ctx *fasthttp.RequestCtx)
- func RemoveCronJob(alertId string) error
- func VerifyAlertCronJobExists(alertDataObj *alertutils.AlertDetails) bool
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 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 VerifyAlertCronJobExists ¶
func VerifyAlertCronJobExists(alertDataObj *alertutils.AlertDetails) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.