[ 
https://issues.apache.org/jira/browse/METRON-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16212923#comment-16212923
 ] 

ASF GitHub Bot commented on METRON-1262:
----------------------------------------

Github user justinleet commented on the issue:

    https://github.com/apache/metron/pull/806
  
    +1 by inspection.  Thank for contributing!


> Unable to add comment for a alert in a meta-alert
> -------------------------------------------------
>
>                 Key: METRON-1262
>                 URL: https://issues.apache.org/jira/browse/METRON-1262
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Ryan Merriman
>            Assignee: Ryan Merriman
>
> Create a meta alert with multiple alerts. 
> Retrieve the alert using findone
> {code:java}
> {
>   "guid": "<guid-of-meta-alert>,
>   "sensorType": "metaalert"
> }
> {code}
> Apply the below patch
> {code:java}
> {
>   "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>"
> }
> {code}
> Run find one again, you will notice all the alerts are missing except the one 
> on which patch is applied



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to