utils

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package utils manages all of the utility functions for alerts that are public

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertItemToSummary

func AlertItemToSummary(item *table.AlertItem, rule *models.Rule) *alertmodels.AlertSummary

AlertItemToSummary converts a DDB AlertItem to an AlertSummary

func AlertItemsToSummaries

func AlertItemsToSummaries(alertItems []*table.AlertItem, alertRules map[string]*models.Rule) []*alertmodels.AlertSummary

AlertItemsToSummaries converts a list of DDB AlertItem(s) to AlertSummary(ies)

func GetAlertTitle

func GetAlertTitle(alert *table.AlertItem) *string

GetAlertTitle - Method required for backwards compatibility In case the alert title is empty, return custom title

func IsOldAlert added in v1.15.0

func IsOldAlert(alert *table.AlertItem) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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