-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a scheduled software updates discovery job (#2376)
* Add a discovery function that gets relevant patches for all hosts and potentially changes health * Add discovery to software updates context and register a quantum process * fix suma genserver setup handle continue * Add missing url composition when getting relevant patches * Different approach to incrementing relevant patches counters * simplify tuples returned by softwre updates discovery
- Loading branch information
1 parent
984b36e
commit 75776e9
Showing
11 changed files
with
458 additions
and
42 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
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,15 @@ | ||
defmodule Trento.SoftwareUpdates.Enums.AdvisoryType do | ||
@moduledoc """ | ||
Enum representing possible advisory types. | ||
""" | ||
|
||
@security_advisory "Security Advisory" | ||
@bugfix "Bug Fix Advisory" | ||
@enhancement "Product Enhancement Advisory" | ||
|
||
use Trento.Support.Enum, values: [:security_advisory, :bugfix, :enhancement] | ||
|
||
def from_string(@security_advisory), do: security_advisory() | ||
def from_string(@bugfix), do: bugfix() | ||
def from_string(@enhancement), do: enhancement() | ||
end |
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
Oops, something went wrong.