NodePing.Checks.create_check-exclamation-mark
You're seeing just the function
create_check-exclamation-mark
, go back to NodePing.Checks module for more information.
Specs
create_check!( token :: bitstring(), checktype_struct :: struct(), args :: map(), customerid :: bitstring() | nil ) :: map()
Create a new check for your NodePing account or subaccount
Create any of the listed NodePing checks at:
https://nodeping.com/docs-api-checks.html
and view the "Fields by check type" section to see which checks
accept what fields.
Parameters
token
- NodePing API token that is provided with accountchecktype_struct
- theNodePing.Checktypes
that defines the check you are trying to createargs
- non-default parameters you want to set for creating your checkcustomerid
- optional customerid for subaccount
Examples
iex> token = System.fetch_env!("TOKEN")
iex> checktype = NodePing.Checktypes.Ping
iex> args = %{label: "my label", target: "example.com", interval: 1, enabled: true}
iex> NodePing.Checks.create_check!(token, checktype, args)