Retrieve Related Alerts - Dataminr Pulse

This playbook is used to fetch related alerts for Dataminr Pulse. The information required to fetch related alerts will be used from the incident s alert ID for which the playbook is going to run. After that, it will store them in the context.

Dataminr Pulse · 7 tasks · 1 input · 0 outputs

Details

IDRetrieve Related Alerts - Dataminr Pulse
From Version6.5.0
Tasks7

README

This playbook is used to fetch related alerts for Dataminr Pulse. The information required to fetch related alerts will be used from the incident s alert ID for which the playbook is going to run. After that, it will store them in the context.

Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks

This playbook does not use any sub-playbooks.

Integrations

This playbook does not use any integrations.

Scripts

  • DeleteContext

Commands

  • dataminrpulse-related-alerts-get

Playbook Inputs


Name Description Default Value Required
include_related_alerts Boolean value indicating whether to include related alerts. If set to “true”, it includes related alerts; otherwise, it does not. ${incident.labels.include_related_alerts} Optional

Playbook Outputs


There are no outputs for this playbook.

Playbook Image


Retrieve Related Alerts - Dataminr Pulse

Inputs

  • include_related_alerts — Boolean value indicating whether to include related alerts. If set to "true", it includes related alerts; otherwise, it does not.

Commands used

dataminrpulse-related-alerts-get

Flowchart

yes no yes yes Start Start Fetch related alerts - dataminrpulse-related-alerts-get Fetch related alerts dataminrpulse-related-alerts-get end end Delete Context for Related Alerts - DeleteContext Delete Context for Relate... DeleteContext Is include related alerts enabled? Is include related alerts... Wants to include related alerts? Wants to include related ... Is Dataminr Pulse integration enabled? Is Dataminr Pulse integra...
id: Retrieve Related Alerts - Dataminr Pulse
version: -1
name: Retrieve Related Alerts - Dataminr Pulse
description: This playbook is used to fetch related alerts for Dataminr Pulse. The information required to fetch related alerts will be used from the incident s alert ID for which the playbook is going to run. After that, it will store them in the context.
starttaskid: "0"
fromversion: 6.5.0
tasks:
  "0":
    id: "0"
    taskid: beb58f8a-d438-4280-8dad-8bae2e1d0e58
    type: start
    task:
      id: beb58f8a-d438-4280-8dad-8bae2e1d0e58
      version: -1
      name: ""
      description: "Start of playbook"
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "6"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 450,
          "y": -200
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "1":
    id: "1"
    taskid: aa47a806-130f-4186-8ca2-e0a0a9dbce3a
    type: regular
    task:
      id: aa47a806-130f-4186-8ca2-e0a0a9dbce3a
      version: -1
      name: Fetch related alerts
      description: Retrieves the alerts related to the provided Alert ID.
      script: '|||dataminrpulse-related-alerts-get'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "2"
    scriptarguments:
      alert_id:
        complex:
          root: incident
          accessor: alertid
      extend-context:
        simple: RelatedAlerts=.
      ignore-outputs:
        simple: "true"
      include_root:
        simple: "False"
      retry-count:
        simple: "1"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 450,
          "y": 720
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "2":
    id: "2"
    taskid: 124c9c5a-667e-42e9-8351-ecf71e919a69
    type: title
    task:
      id: 124c9c5a-667e-42e9-8351-ecf71e919a69
      version: -1
      name: end
      type: title
      description: "End of playbook"
      iscommand: false
      brand: ""
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 450,
          "y": 890
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "3":
    id: "3"
    taskid: 1edeb9b6-f905-457b-89f8-27eaed93985c
    type: regular
    task:
      id: 1edeb9b6-f905-457b-89f8-27eaed93985c
      version: -1
      name: Delete Context for Related Alerts
      description: |-
        Delete field from context.

        This automation runs using the default Limited User role, unless you explicitly change the permissions.
        For more information, see the section about permissions here:
        https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-2/cortex-xsoar-admin/playbooks/automations.html
      scriptName: DeleteContext
      type: regular
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "1"
    scriptarguments:
      key:
        simple: RelatedAlerts
      subplaybook:
        simple: auto
    separatecontext: false
    continueonerrortype: ""
    view: |-
      {
        "position": {
          "x": 450,
          "y": 560
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "4":
    id: "4"
    taskid: 9f59002f-0d6d-4723-886e-53c429c22b66
    type: condition
    task:
      id: 9f59002f-0d6d-4723-886e-53c429c22b66
      version: -1
      name: Is include related alerts enabled?
      description: Check whether the values provided in parameters are equal.
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      '#default#':
      - "5"
      "yes":
      - "3"
    separatecontext: false
    conditions:
    - label: "yes"
      condition:
      - - operator: isEqualString
          left:
            value:
              complex:
                root: inputs.include_related_alerts
                transformers:
                - operator: Stringify
                - operator: toLowerCase
            iscontext: true
          right:
            value:
              simple: "true"
          ignorecase: true
    continueonerrortype: ""
    view: |-
      {
        "position": {
          "x": 450,
          "y": 170
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "5":
    id: "5"
    taskid: cc4e929f-237a-4bbf-8b0b-49049380e468
    type: condition
    task:
      id: cc4e929f-237a-4bbf-8b0b-49049380e468
      version: -1
      name: Wants to include related alerts?
      description: Collect the information to include related alerts.
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      "no":
      - "2"
      "yes":
      - "3"
    separatecontext: false
    continueonerrortype: ""
    view: |-
      {
        "position": {
          "x": 680,
          "y": 360
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    message:
      to: null
      subject: null
      body:
        simple: Wants to include related alerts?
      methods: []
      format: ""
      bcc: null
      cc: null
      timings:
        retriescount: 2
        retriesinterval: 360
        completeafterreplies: 1
        completeafterv2: true
        completeaftersla: false
      replyOptions:
      - "yes"
      - "no"
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "6":
    id: "6"
    taskid: 7e22ddf6-d65b-4f7a-8223-7e342c79fb18
    type: condition
    task:
      id: 7e22ddf6-d65b-4f7a-8223-7e342c79fb18
      version: -1
      name: Is Dataminr Pulse integration enabled?
      description: Checks whether Dataminr Pulse integration is enabled or not.
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      '#default#':
      - "2"
      "yes":
      - "4"
    separatecontext: false
    conditions:
    - label: "yes"
      condition:
      - - operator: isExists
          left:
            value:
              complex:
                root: modules
                filters:
                - - operator: containsGeneral
                    left:
                      value:
                        simple: modules.brand
                      iscontext: true
                    right:
                      value:
                        simple: Dataminr Pulse
                - - operator: isEqualString
                    left:
                      value:
                        simple: modules.state
                      iscontext: true
                    right:
                      value:
                        simple: active
                    ignorecase: true
                accessor: name
            iscontext: true
          right:
            value: {}
    view: |-
      {
        "position": {
          "x": 450,
          "y": -50
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
view: |-
  {
    "linkLabelsPosition": {
      "4_3_yes": 0.48,
      "4_5_#default#": 0.53,
      "5_2_no": 0.24,
      "5_3_yes": 0.52,
      "6_2_#default#": 0.44,
      "6_4_yes": 0.64
    },
    "paper": {
      "dimensions": {
        "height": 1155,
        "width": 610,
        "x": 450,
        "y": -200
      }
    }
  }
inputs:
- key: include_related_alerts
  value:
    simple: ${incident.labels.include_related_alerts}
  required: false
  description: Boolean value indicating whether to include related alerts. If set
    to "true", it includes related alerts; otherwise, it does not.
  playbookInputQuery: null
outputs: []
tests:
- DataminrPulse-Test