Current section
Files
Jump to
Current section
Files
lib/hook_sniff_api/model/create_alert_rule_request.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule HookSniffAPI.Model.CreateAlertRuleRequest do
@moduledoc """
Request to create a new alert rule
"""
@derive JSON.Encoder
defstruct [
:name,
:condition,
:threshold,
:channels
]
@type t :: %__MODULE__{
:name => String.t,
:condition => String.t,
:threshold => integer(),
:channels => [String.t]
}
def decode(value) do
value
end
end