-
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 Host Check Selection Domain logic
Co-authored-by: Eugen Maksymenko <eugen.maksymenko@suse.com>
- Loading branch information
1 parent
703ab7d
commit 02b0e06
Showing
4 changed files
with
58 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
defmodule Trento.Domain.Commands.SelectHostChecks do | ||
@moduledoc """ | ||
Select the checks to be executed on a host. | ||
""" | ||
|
||
@required_fields :all | ||
|
||
use Trento.Command | ||
|
||
defcommand do | ||
field :host_id, Ecto.UUID | ||
field :checks, {:array, :string} | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defmodule Trento.Domain.Events.HostChecksSelected do | ||
@moduledoc """ | ||
Event of the checks selected for a host. | ||
""" | ||
|
||
use Trento.Event | ||
|
||
defevent do | ||
field :host_id, Ecto.UUID | ||
field :checks, {:array, :string} | ||
end | ||
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