NodePing.Notificationprofiles.create-exclamation-mark
You're seeing just the function
create-exclamation-mark
, go back to NodePing.Notificationprofiles module for more information.
Specs
Create a notification profile for the account
Parameters
token
- NodePing API token that is provided with accountname
- Name for the notification profilenotifications
- list of maps containing the contact or group id, delay, and scheduling for notifications
Examples
iex> token = System.fetch_env!("TOKEN")
iex> notifications = [
> %{"contactkey1" => %{"delay" => 0, "schedule" => "schedule1"}},
> %{"contactkey2" => %{"delay" => 0, "schedule" => "schedule1"}},
> ]
iex> result = NodePing.Notificationprofiles.create!(token, "profilename", notifications)
Specs
create!( token :: bitstring(), name :: bitstring(), notifications :: list(), customerid :: bitstring() ) :: map()
Create a notification profile for the account
Parameters
token
- NodePing API token that is provided with accountname
- Name for the notification profilenotifications
- list of maps containing the contact or group id, delay, and scheduling for notificationscustomerid
- optional ID to access a subaccount
Examples
iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> notifications = [
> %{"contactkey1" => %{"delay" => 0, "schedule" => "schedule1"}},
> %{"contactkey2" => %{"delay" => 0, "schedule" => "schedule1"}},
> ]
iex> result = NodePing.Notificationprofiles.create!(token, "profilename", notifications, customerid)