NodePing.Checks.update_check-exclamation-mark

You're seeing just the function update_check-exclamation-mark, go back to NodePing.Checks module for more information.
Link to this function

update_check!(token, id, checktype_struct, args, customerid \\ nil)

View Source

Update an existing check for your NodePing account or subaccount ## Parameters

  • token - NodePing API token that is provided with account
  • checktype_struct - the NodePing.Checktypes that defines the check you are trying to create
  • args - non-default parameters you want to set for creating your check
  • customerid - optional customerid for subaccount

Examples

iex> token = System.fetch_env!("TOKEN")
iex> check_id = "201205050153W2Q4C-0J2HSIRF"
iex> checktype = NodePing.Checktypes.Ping
iex> args = %{label: "my label", target: "example.com", interval: 1, enabled: true}
iex> NodePing.Checks.update_check!(token, check_id, checktype, args)