utils

package
v1.9.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: AGPL-3.0 Imports: 2 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) *models.AlertSummary

AlertItemToSummary converts a DDB AlertItem to an AlertSummary

func AlertItemsToSummaries

func AlertItemsToSummaries(items []*table.AlertItem) []*models.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

Types

This section is empty.

Jump to

Keyboard shortcuts

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