-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch alarm dictionaries from cluster server (#531)
The alarm server uses the alarm dictionary endpoints of the cluster server to fetch the alarm dictionaries. These dictionaries are cached in the same way as the nodeClusters and nodeClusterTypes objects. There are 2 new methods in the infrastructure client to return the nodeClusterTypeID and the alarmDefinitionID. These methods return the IDs if they are present in cache or try to fetch them from the cluster server if they are missing. There is also a resync mechanism that runs every hour. Signed-off-by: Marcelo Guerrero <[email protected]>
- Loading branch information
1 parent
72163e7
commit 744dece
Showing
35 changed files
with
1,871 additions
and
1,732 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
8 changes: 0 additions & 8 deletions
8
internal/service/alarms/internal/db/migrations/000001_create_alarm_dictionary_table.down.sql
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
internal/service/alarms/internal/db/migrations/000001_create_alarm_dictionary_table.up.sql
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions
14
internal/service/alarms/internal/db/migrations/000002_create_alarm_definition_table.down.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.