-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement alartmanager endpoint receive and update db (no subscriber …
…notification)
- Loading branch information
1 parent
fe77c68
commit 05e12b2
Showing
8 changed files
with
393 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
internal/service/alarms/internal/db/models/alarm_definition.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package models | ||
|
||
import "github.com/google/uuid" | ||
|
||
type AlarmDefinition struct { | ||
AlarmDefinitionID uuid.UUID `db:"alarm_definition_id"` | ||
AlarmName string `db:"alarm_name"` | ||
AlarmLastChange string `db:"alarm_last_change"` | ||
AlarmChangeType string `db:"alarm_change_type"` | ||
AlarmDescription string `db:"alarm_description"` | ||
ProposedRepairActions string `db:"proposed_repair_actions"` | ||
ClearingType string `db:"clearing_type"` | ||
ManagementInterfaceID []string `db:"management_interface_id"` | ||
PkNotificationField []string `db:"pk_notification_field"` | ||
AlarmAdditionalFields string `db:"alarm_additional_fields"` | ||
AlarmDictionaryID uuid.UUID `db:"alarm_dictionary_id"` | ||
ResourceTypeID uuid.UUID `db:"resource_type_id"` | ||
ProbableCauseID uuid.UUID `db:"probable_cause_id"` | ||
CreatedAt string `db:"created_at"` | ||
UpdatedAt string `db:"updated_at"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.