Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1262

Unable to add comment for a alert in a meta-alert

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.4.2
    • None

    Description

      Create a meta alert with multiple alerts.
      Retrieve the alert using findone

      {
        "guid": "<guid-of-meta-alert>,
        "sensorType": "metaalert"
      }
      

      Apply the below patch

      {
        "patch": [
          {
            "op": "add",
            "path": "/comments",
            "value": [
              {
                "comment": "aaa",
                "username": "admin",
                "timestamp": 1508251594109
              },
              {
                "comment": "aaa",
                "username": "admin",
                "timestamp": 1508251398188
              },
              {
                "comment": "abcd",
                "username": "admin",
                "timestamp": 1508251201985
              },
              {
                "comment": "ccc",
                "username": "admin",
                "timestamp": 1508244721089
              },
              {
                "comment": "c123",
                "username": "admin",
                "timestamp": 1508244381778
              }
            ]
          }
        ],
        "guid": "<one-of-the-alert-in-meta-alert>",
        "sensorType": "<sensor-type>"
      }
      

      Run find one again, you will notice all the alerts are missing except the one on which patch is applied

      Attachments

        Issue Links

          Activity

            People

              rmerriman Ryan Merriman
              rmerriman Ryan Merriman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: