Documentation
¶
Index ¶
- func ConvertAmToAlarmEventRecordModels(am *api.AlertmanagerNotification, infrastructureClient infrastructure.Client) []models.AlarmEventRecord
- func GetAlertName(labels map[string]string) string
- func GetClusterID(labels map[string]string) *uuid.UUID
- func GetPerceivedSeverity(labels map[string]string) (api.PerceivedSeverity, string)
- func Setup(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAmToAlarmEventRecordModels ¶
func ConvertAmToAlarmEventRecordModels(am *api.AlertmanagerNotification, infrastructureClient infrastructure.Client) []models.AlarmEventRecord
ConvertAmToAlarmEventRecordModels get alarmEventRecords based on the alertmanager notification and AlarmDefinition
func GetAlertName ¶
GetAlertName extract name from alert label
func GetPerceivedSeverity ¶
func GetPerceivedSeverity(labels map[string]string) (api.PerceivedSeverity, string)
GetPerceivedSeverity am's `severity` to oran's PerceivedSeverity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.