NotificationPolicyRequest Data Type

Properties
name data type constraints description
name string required, not blank
active boolean required
actions array of NotificationActionRequest required, not empty
conditions array of NotificationConditionRequest required, not empty

Example

{
  "name" : "...",
  "active" : true,
  "actions" : [ {
    "actionType" : "EMAIL",
    "recipients" : [ {
      "name" : "...",
      "type" : "ADMIN",
      "notificationPushSettings" : [ { }, { } ]
    }, {
      "name" : "...",
      "type" : "ADMIN",
      "notificationPushSettings" : [ { }, { } ]
    } ]
  }, {
    "actionType" : "PUSH",
    "recipients" : [ {
      "name" : "...",
      "type" : "ADMIN",
      "notificationPushSettings" : [ { }, { } ]
    }, {
      "name" : "...",
      "type" : "ADMIN",
      "notificationPushSettings" : [ { }, { } ]
    } ]
  } ],
  "conditions" : [ {
    "conditionType" : "QUOTA_RELATED",
    "conditionName" : "TASK_STATE_CHANGED_TO_QUEUED",
    "taskType" : "BACKUP_DESTINATION_INIT",
    "maxAttempts" : 12345,
    "maxDays" : 12345
  }, {
    "conditionType" : "TASK_RELATED",
    "conditionName" : "TASK_STATE_CHANGED_TO_QUEUED",
    "taskType" : "MOUNT",
    "maxAttempts" : 12345,
    "maxDays" : 12345
  } ]
}