Packages
REST API Generated with swagger-codegen using the OpsGenie OpenAPI Specification.
Current section
Files
Jump to
Current section
Files
lib/ops_genie_restapi/model/escalation_rule.ex
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule OpsGenieRESTAPI.Model.EscalationRule do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"condition",
:"notifyType",
:"delay",
:"recipient"
]
@type t :: %__MODULE__{
:"condition" => String.t,
:"notifyType" => String.t,
:"delay" => Duration,
:"recipient" => Recipient
}
end
defimpl Poison.Decoder, for: OpsGenieRESTAPI.Model.EscalationRule do
import OpsGenieRESTAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"delay", :struct, OpsGenieRESTAPI.Model.Duration, options)
|> deserialize(:"recipient", :struct, OpsGenieRESTAPI.Model.Recipient, options)
end
end