Chore: Remove result fields from ngalert (#65410)

* remove result fields from ngalert

* remove duplicate imports
This commit is contained in:
Serge Zaitsev
2023-03-28 10:34:35 +02:00
committed by GitHub
parent 42b58fbca6
commit 0beb768427
34 changed files with 307 additions and 317 deletions
+2 -4
View File
@@ -25,8 +25,7 @@ type HistoricAlertConfiguration struct {
// GetLatestAlertmanagerConfigurationQuery is the query to get the latest alertmanager configuration.
type GetLatestAlertmanagerConfigurationQuery struct {
OrgID int64
Result *AlertConfiguration
OrgID int64
}
// SaveAlertmanagerConfigurationCmd is the command to save an alertmanager configuration.
@@ -47,8 +46,7 @@ type MarkConfigurationAsAppliedCmd struct {
// GetAppliedConfigurationsQuery is the query for getting configurations that have been previously applied with no errors.
type GetAppliedConfigurationsQuery struct {
OrgID int64
Result []*HistoricAlertConfiguration
OrgID int64
}
func HistoricConfigFromAlertConfig(config AlertConfiguration) HistoricAlertConfiguration {