# 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 karma 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, karma 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.
No description provided by the author
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.
APIAlertGroup is how AlertGroup is returned in the API response All labels and annotations that are shared between all alerts in given group are moved to Shared namespace, each alert instance only tracks labels and annotations that are unique to that instance.
APIAlertGroupSharedMaps defines shared part of APIAlertGroup.
Autocomplete is the structure of autocomplete object for filter hints this is internal representation, not what's returned to the user.
Color is used by karmaLabelColor to reprenset colors as RGBA.
Filter holds returned data on any filter passed by the user as part of the query.
GridSettings exposes all grid settings from the config file.
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.
LabelStats is used in the overview modal, it shows top labels across alerts.
No description provided by the author
ManagedSilence is a standalone silence detached from any alert.
Settings is used to export karma configuration that is used by UI.
Silence is vanilla silence + some additional attributes karma adds JIRA support, it can extract JIRA IDs from comments extracted ID is used to generate link to JIRA issue this means karma needs to store additional fields for each silence.
No description provided by the author
No description provided by the author
No description provided by the author
SortSettings nests all settings specific to sorting.
# Type aliases
AlertList is flat list of karmaAlert objects.
Annotations is a slice of Annotation structs, needed to implement sorting.
No description provided by the author
LabelsColorMap is a map of "Label Key" -> "Label Value" -> karmaLabelColors.
LabelsCountMap is a map of "Label Key" -> "Label Value" -> number of occurrence.
No description provided by the author