Current section

Files

Jump to
nodeping lib nodeping checktypes ftp.ex
Raw

lib/nodeping/checktypes/ftp.ex

defmodule NodePing.Checktypes.Ftp do
@moduledoc false
@enforce_keys [:target]
defstruct [
:target,
label: "",
autodiag: false,
type: "FTP",
port: 21,
username: nil,
password: nil,
invert: false,
contentstring: nil,
interval: 15,
enabled: false,
public: false,
runlocations: nil,
homeloc: false,
threshold: 5,
sens: 2,
dep: nil,
notifications: []
]
@typedoc """
FTP Check field types
"""
@type t :: %__MODULE__{
target: String.t(),
label: String.t() | nil,
autodiag: boolean(),
type: String.t(),
port: non_neg_integer(),
username: nil | String.t(),
password: nil | String.t(),
invert: boolean(),
contentstring: nil | String.t(),
interval: non_neg_integer(),
enabled: boolean(),
public: boolean(),
runlocations: nil | [String.t()],
homeloc: nil | String.t(),
threshold: non_neg_integer(),
sens: non_neg_integer(),
dep: nil | String.t(),
notifications: [map()]
}
end