Documentation
¶
Index ¶
- func AttachQueuedAlertTaskMetadata(rawDetail string, task dto.AlertTaskMetadata) (string, error)
- func CheckSMSSendLimit(config model.AlertConfig, method string) bool
- func CheckSendTimeRange(alertType string) bool
- func CountRecentFailedLoginLogs(minutes uint, failCount uint) (int, bool, error)
- func CountRecentFailedSSHLog(minutes uint, maxAllowed uint) (int, bool, error)
- func CreateAlertParams(param string) []dto.Param
- func CreateBarkAlertLog(create dto.AlertLogCreate, alert dto.AlertDTO, params []dto.Param, ...) error
- func CreateCustomWebhookAlertLog(alertType string, info dto.AlertDTO, create dto.AlertLogCreate, project string, ...) error
- func CreateEmailAlertLog(create dto.AlertLogCreate, alert dto.AlertDTO, params []dto.Param, ...) error
- func CreateNewAlertTask(quota, alertType, quotaType, method string)
- func CreateTaskScanCustomWebhookAlertLog(info dto.AlertDTO, alertType string, create dto.AlertLogCreate, ...) error
- func CreateTaskScanEmailAlertLog(alert dto.AlertDTO, create dto.AlertLogCreate, pushAlert dto.PushAlert, ...) error
- func FinalizeQueuedAlertDelivery(logID uint, succeeded bool, message string) (bool, error)
- func FindRecentSuccessLoginNotInWhitelist(minutes int, whitelist []string) ([]string, error)
- func FindRecentSuccessLoginsNotInWhitelist(minutes int, whitelist []string) ([]model.LoginLog, error)
- func GetCronJobType(alertType string) string
- func GetCronJobTypeName(cronJobType string) string
- func GetSendContent(alertType string, params []dto.Param, agentInfo *dto.AgentInfo) string
- func IsAlertConfigEnabled(config model.AlertConfig) bool
- func ParseAlertSmsConfig(configJSON string) (dto.AlertSmsConfig, error)
- func ProcessAlertDetail(alert dto.AlertDTO, project string, params []dto.Param, method string) string
- func ProcessAlertRule(alert dto.AlertDTO) string
- func RecordQueuedAlertTask(logID uint, task dto.AlertTaskMetadata) (bool, error)
- func SaveAlertLog(create dto.AlertLogCreate, alertLog *model.AlertLog) error
- func TestCustomWebhook(resolved dto.AlertCustomWebhookResolvedConfig, transport *http.Transport, ...) (dto.AlertConfigTestResult, error)
- type Category
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachQueuedAlertTaskMetadata ¶
func AttachQueuedAlertTaskMetadata(rawDetail string, task dto.AlertTaskMetadata) (string, error)
func CheckSMSSendLimit ¶
func CheckSMSSendLimit(config model.AlertConfig, method string) bool
func CheckSendTimeRange ¶
func CountRecentFailedSSHLog ¶
func CreateAlertParams ¶
func CreateBarkAlertLog ¶
func CreateEmailAlertLog ¶
func CreateNewAlertTask ¶
func CreateNewAlertTask(quota, alertType, quotaType, method string)
func GetCronJobType ¶
func GetCronJobTypeName ¶
func GetSendContent ¶
func IsAlertConfigEnabled ¶
func IsAlertConfigEnabled(config model.AlertConfig) bool
func ParseAlertSmsConfig ¶
func ParseAlertSmsConfig(configJSON string) (dto.AlertSmsConfig, error)
func ProcessAlertDetail ¶
func ProcessAlertRule ¶
func RecordQueuedAlertTask ¶
func RecordQueuedAlertTask(logID uint, task dto.AlertTaskMetadata) (bool, error)
func SaveAlertLog ¶
func SaveAlertLog(create dto.AlertLogCreate, alertLog *model.AlertLog) error
func TestCustomWebhook ¶
func TestCustomWebhook( resolved dto.AlertCustomWebhookResolvedConfig, transport *http.Transport, agentInfo *dto.AgentInfo, ) (dto.AlertConfigTestResult, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.