# Functions
AnnotationsFromMap will convert a map[string]string to a list of Annotation instances, it takes care of setting proper value for Visible attribute.
# Constants
AlertStateActive is the state in which we know that the alert should fire.
AlertStateSuppressed means that we know that alert is silenced or inhibited.
AlertStateUnprocessed means that Alertmanager notify didn't yet process it and AM doesn't know if alert is active or suppressed.
# Variables
AlertStateList exports all alert states so other packages can get this list.
# Structs
Alert is vanilla alert + some additional attributes unsee extends an alert object with: * Links map, it's generated from annotations if annotation value is an url it's pulled out of annotation map and returned under links field, unsee UI used this to show links differently than other annotations.
AlertGroup is vanilla Alertmanager group, but alerts are flattened There is a hash computed from all alerts, it's used by UI to quickly tell if there was any change in a group and it needs to refresh it.
AlertmanagerAPICounters returns number of Alertmanager instances in each state.
AlertmanagerAPIStatus describes the Alertmanager instance overall health.
AlertmanagerAPISummary describes the Alertmanager instance overall health.
AlertmanagerInstance describes the Alertmanager instance alert was collected from.
AlertsResponse is the structure of JSON response UI will use to get alert data.
Annotation extends Alertmanager scheme of key:value with additional data to control how given annotation should be rendered.
Autocomplete is the structure of autocomplete object for filter hints this is internal represenation, not what's returned to the user.
Color is used by UnseeLabelColor to reprenset colors as RGBA.
Filter holds returned data on any filter passed by the user as part of the query.
JiraRule is used to detect JIRA issue IDs in strings and turn those into links.
LabelColors holds color information for labels that should be colored in the UI every configured label will have a distinct coloring for each value.
Silence is vanilla silence + some additional attributes Unsee adds JIRA support, it can extract JIRA IDs from comments extracted ID is used to generate link to JIRA issue this means Unsee needs to store additional fields for each silence.
# Type aliases
AlertList is flat list of UnseeAlert objects.
Annotations is a slice of Annotation structs, needed to implement sorting.
LabelsColorMap is a map of "Label Key" -> "Label Value" -> UnseeLabelColors.
LabelsCountMap is a map of "Label Key" -> "Label Value" -> number of occurence.