NodePing.Notificationprofiles (NodePing Elixir v1.7.1) View Source
Manage notification profiles for a NodePing account
Link to this section Summary
Functions
Create a notification profile for the account
Create a notification profile for the account
Create a notification profile for the account
Create a notification profile for the account
Delete a notification profile from the account
Delete a notification profile from the account
Delete a notification profile from the account
Delete a notification profile from the account
Get a list of notification profiles for the account
Get a list of notification profiles for the account
Get a list of notification profiles for the subaccount
Get a list of notification profiles for the subaccount
Get information for the notification profile for an account
Get information for the notification profile for a subaccount
Get information for the notification profile for an account
Get information for the notification profile for a subaccount
Create a notification profile for the account
Create a notification profile for the account
Create a notification profile for the account
Create a notification profile for the account
Link to this section Functions
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> {:ok, result} = NodePing.Notificationprofiles.create(token, "profilename", notifications)
Specs
create( token :: bitstring(), name :: bitstring(), notifications :: list(), customerid :: bitstring() ) :: tuple()
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> {:ok, result} = NodePing.Notificationprofiles.create(token, "profilename", notifications, customerid)
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)
Specs
Delete a notification profile from the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updated
Examples
iex> token = System.fetch_env!("TOKEN")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> {:ok, result} = NodePing.Notificationprofiles.delete(token, id)
Specs
Delete a notification profile from the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updated
Examples
iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> {:ok, result} = NodePing.Notificationprofiles.delete(token, id, customerid)
Specs
Delete a notification profile from the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updated
Examples
iex> token = System.fetch_env!("TOKEN")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> result = NodePing.Notificationprofiles.delete!(token, id)
Specs
Delete a notification profile from the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updated
Examples
iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> result = NodePing.Notificationprofiles.delete!(token, id, customerid)
Specs
Get a list of notification profiles for the account
Parameters
token
- NodePing API token that is provided with account
Examples
iex> token = System.fetch_env!("TOKEN")
iex> {:ok, result} = NodePing.Notificationprofiles.get(token)
Specs
Get a list of notification profiles for the account
Parameters
token
- NodePing API token that is provided with accountcustomerid
- optional ID to access a subaccount
Examples
iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> {:ok, result} = NodePing.Notificationprofiles.get(token, customerid)
Specs
Get a list of notification profiles for the subaccount
Parameters
token
- NodePing API token that is provided with account
Examples
iex> token = System.fetch_env!("TOKEN")
iex> result = NodePing.Notificationprofiles.get(token)
Specs
Get a list of notification profiles for the subaccount
Parameters
token
- NodePing API token that is provided with accountcustomerid
- optional ID to access a subaccount
Examples
iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> result = NodePing.Notificationprofiles.get(token, customerid)
Specs
Get information for the notification profile for an account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile
Examples
iex> token = System.fetch_env!("TOKEN")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> {:ok, result} = NodePing.Notificationprofiles.get_id(token, id)
Specs
Get information for the notification profile for a subaccount
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profilecustomerid
- optional ID to access a subaccount
Examples
iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> {:ok, result} = NodePing.Notificationprofiles.get_id(token, id, customerid)
Specs
Get information for the notification profile for an account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile
Examples
iex> token = System.fetch_env!("TOKEN")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> result = NodePing.Notificationprofiles.get_id!(token, id)
Specs
Get information for the notification profile for a subaccount
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profilecustomerid
- optional ID to access a subaccount
Examples
iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> result = NodePing.Notificationprofiles.get_id(token, id, customerid)
Specs
update( token :: bitstring(), id :: bitstring(), name :: bitstring(), notifcations :: list() ) :: tuple()
Create a notification profile for the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updatedname
- 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> customerid = System.fetch_env!("CUSTOMERID")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> notifications = [
> %{"contactkey1" => %{"delay" => 0, "schedule" => "schedule1"}},
> %{"contactkey2" => %{"delay" => 0, "schedule" => "schedule1"}},
> ]
iex> {:ok, result} = NodePing.Notificationprofiles.update(token, id, "profilename", notifications)
Specs
update( token :: bitstring(), id :: bitstring(), name :: bitstring(), notifcations :: list(), customerid :: bitstring() ) :: tuple()
Create a notification profile for the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updatedname
- 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> id = "201205050153W2Q4C-P-3QJWG"
iex> notifications = [
> %{"contactkey1" => %{"delay" => 0, "schedule" => "schedule1"}},
> %{"contactkey2" => %{"delay" => 0, "schedule" => "schedule1"}},
> ]
iex> {:ok, result} = NodePing.Notificationprofiles.update(token, id, "profilename", notifications, customerid)
Specs
update!( token :: bitstring(), id :: bitstring(), name :: bitstring(), notifcations :: list() ) :: map()
Create a notification profile for the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updatedname
- 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> customerid = System.fetch_env!("CUSTOMERID")
iex> id = "201205050153W2Q4C-P-3QJWG"
iex> notifications = [
> %{"contactkey1" => %{"delay" => 0, "schedule" => "schedule1"}},
> %{"contactkey2" => %{"delay" => 0, "schedule" => "schedule1"}},
> ]
iex> result = NodePing.Notificationprofiles.update!(token, id, "profilename", notifications)
Specs
update!( token :: bitstring(), id :: bitstring(), name :: bitstring(), notifcations :: list(), customerid :: bitstring() ) :: map()
Create a notification profile for the account
Parameters
token
- NodePing API token that is provided with accountid
- the ID for the notification profile being updatedname
- 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> id = "201205050153W2Q4C-P-3QJWG"
iex> notifications = [
> %{"contactkey1" => %{"delay" => 0, "schedule" => "schedule1"}},
> %{"contactkey2" => %{"delay" => 0, "schedule" => "schedule1"}},
> ]
iex> result = NodePing.Notificationprofiles.update!(token, id, "profilename", notifications, customerid)