NodePing.Notificationprofiles (NodePing Elixir v1.7.1) View Source

Manage notification profiles for a NodePing account

https://nodeping.com/docs-api-notificationprofiles.html

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

Link to this function

create(token, name, notifications)

View Source

Specs

create(token :: bitstring(), name :: bitstring(), notifications :: list()) ::
  tuple()

Create a notification profile for the account

Parameters

  • token - NodePing API token that is provided with account
  • name - Name for the notification profile
  • notifications - 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)
Link to this function

create(token, name, notifications, customerid)

View Source

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 account
  • name - Name for the notification profile
  • notifications - list of maps containing the contact or group id, delay, and scheduling for notifications
  • customerid - 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)
Link to this function

create!(token, name, notifications)

View Source

Specs

create!(
  token :: bitstring(),
  name :: bitstring(),
  notifications :: list()
) :: map()

Create a notification profile for the account

Parameters

  • token - NodePing API token that is provided with account
  • name - Name for the notification profile
  • notifications - 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)
Link to this function

create!(token, name, notifications, customerid)

View Source

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 account
  • name - Name for the notification profile
  • notifications - list of maps containing the contact or group id, delay, and scheduling for notifications
  • customerid - 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(token :: bitstring(), id :: bitstring()) :: tuple()

Delete a notification profile from the account

Parameters

  • token - NodePing API token that is provided with account
  • id - 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)
Link to this function

delete(token, id, customerid)

View Source

Specs

delete(token :: bitstring(), id :: bitstring(), customerid :: bitstring()) ::
  tuple()

Delete a notification profile from the account

Parameters

  • token - NodePing API token that is provided with account
  • id - 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!(token :: bitstring(), id :: bitstring()) :: map()

Delete a notification profile from the account

Parameters

  • token - NodePing API token that is provided with account
  • id - 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)
Link to this function

delete!(token, id, customerid)

View Source

Specs

delete!(token :: bitstring(), id :: bitstring(), customerid :: bitstring()) ::
  map()

Delete a notification profile from the account

Parameters

  • token - NodePing API token that is provided with account
  • id - 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(token :: bitstring()) :: tuple()

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(token :: bitstring(), customerid :: bitstring()) :: tuple()

Get a list of notification profiles for the account

Parameters

  • token - NodePing API token that is provided with account
  • customerid - 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!(token :: bitstring()) :: map()

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!(token :: bitstring(), customerid :: bitstring()) :: map()

Get a list of notification profiles for the subaccount

Parameters

  • token - NodePing API token that is provided with account
  • customerid - 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_id(token :: bitstring(), id :: bitstring()) :: tuple()

Get information for the notification profile for an account

Parameters

  • token - NodePing API token that is provided with account
  • id - 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)
Link to this function

get_id(token, id, customerid)

View Source

Specs

get_id(token :: bitstring(), id :: bitstring(), customerid :: bitstring()) ::
  tuple()

Get information for the notification profile for a subaccount

Parameters

  • token - NodePing API token that is provided with account
  • id - the ID for the notification profile
  • customerid - 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_id!(token :: bitstring(), id :: bitstring()) :: map()

Get information for the notification profile for an account

Parameters

  • token - NodePing API token that is provided with account
  • id - 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)
Link to this function

get_id!(token, id, customerid)

View Source

Specs

get_id!(token :: bitstring(), id :: bitstring(), customerid :: bitstring()) ::
  map()

Get information for the notification profile for a subaccount

Parameters

  • token - NodePing API token that is provided with account
  • id - the ID for the notification profile
  • customerid - 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)
Link to this function

update(token, id, name, notifications)

View Source

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 account
  • id - the ID for the notification profile being updated
  • name - Name for the notification profile
  • notifications - 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)
Link to this function

update(token, id, name, notifications, customerid)

View Source

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 account
  • id - the ID for the notification profile being updated
  • name - Name for the notification profile
  • notifications - list of maps containing the contact or group id, delay, and scheduling for notifications
  • customerid - 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)
Link to this function

update!(token, id, name, notifications)

View Source

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 account
  • id - the ID for the notification profile being updated
  • name - Name for the notification profile
  • notifications - 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)
Link to this function

update!(token, id, name, notifications, customerid)

View Source

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 account
  • id - the ID for the notification profile being updated
  • name - Name for the notification profile
  • notifications - list of maps containing the contact or group id, delay, and scheduling for notifications
  • customerid - 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)