Create a Spike Protection Notification Action

Go to Product

Creates a new Notification Action for Spike Protection.

Notification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry. For example, organization owners and managers can receive an email when a spike occurs.

Options

Organization Slug
The slug of the organization the resource belongs to.
Body

Request body which must comply to the following JSON Schema:

{
  "required" : [ "service_type", "trigger_type" ],
  "type" : "object",
  "properties" : {
    "trigger_type" : {
      "type" : "string",
      "description" : "Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`."
    },
    "service_type" : {
      "type" : "string",
      "description" : "Service that is used for sending the notification.\n- `email`\n- `slack`\n- `sentry_notification`\n- `pagerduty`\n- `opsgenie`\n"
    },
    "integration_id" : {
      "type" : "integer",
      "description" : "ID of the integration used as the notification service. See\n[List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/)\nto retrieve a full list of integrations.\n\nRequired if **service_type** is `slack`, `pagerduty` or `opsgenie`.\n"
    },
    "target_identifier" : {
      "type" : "string",
      "description" : "ID of the notification target, like a Slack channel ID.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n"
    },
    "target_display" : {
      "type" : "string",
      "description" : "Name of the notification target, like a Slack channel name.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n"
    },
    "projects" : {
      "type" : "array",
      "description" : "List of projects slugs that the Notification Action is created for.",
      "items" : {
        "type" : "string"
      }
    }
  },
  "description" : "Django Rest Framework serializer for incoming NotificationAction API payloads"
}
Result Format
Specify how the response should be mapped to the table output. The following formats are available:
  • Raw Response: Returns the raw response in a single row with the following columns:
    • body: Response body
    • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.