Documentation
¶
Index ¶
- func CheckSMSSendLimit(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 CreateEmailAlertLog(create dto.AlertLogCreate, alert dto.AlertDTO, params []dto.Param, ...) error
- func CreateNewAlertTask(quota, alertType, quotaType, method string)
- func CreateTaskScanEmailAlertLog(alert dto.AlertDTO, create dto.AlertLogCreate, pushAlert dto.PushAlert, ...) 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 GetEmailContent(alertType string, params []dto.Param, agentInfo *dto.AgentInfo) string
- 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 SaveAlertLog(create dto.AlertLogCreate, alertLog *model.AlertLog) error
- type Category
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSMSSendLimit ¶
func CheckSendTimeRange ¶
func CountRecentFailedSSHLog ¶
func CreateAlertParams ¶
func CreateEmailAlertLog ¶
func CreateNewAlertTask ¶
func CreateNewAlertTask(quota, alertType, quotaType, method string)
func GetCronJobType ¶
func GetCronJobTypeName ¶
func GetEmailContent ¶
func ParseAlertSmsConfig ¶
func ParseAlertSmsConfig(configJSON string) (dto.AlertSmsConfig, error)
func ProcessAlertDetail ¶
func ProcessAlertRule ¶
func SaveAlertLog ¶
func SaveAlertLog(create dto.AlertLogCreate, alertLog *model.AlertLog) error
Types ¶
Click to show internal directories.
Click to hide internal directories.