Get alert comments

This endpoint is used to retrieve the comments on an alert.

Leave Feedback

URL

GET https://{api-url}/api/v2/tenants/{clientId}/alerts/{alertId}/comments

Sample URLs

https://{api-url}/api/v2/tenants/client_8/alerts/289/comments

Sample response

{   
    "results":   
     [  
      {   
        "cumulativeAlertId": 289,   
        "commentType": 5,   
        "description": "Partition  : / Total  : 17133.81MB Used  : 11390.87MB Free  : 4872.59MB",   
        "createdBy":   
          {   
            "loginName": "John.Smith",   
            "lastName": "Smith",   
            "firstName": "John",   
            "email": "john.smith@gmail.com",   
            "phoneNumber": "406-625-2345",   
            "profileImage":   
             {   
              "logoPath": "https://yourdomain.com/images/users/1/profileImages/1.jpg?1469269179000",      
              "thumbPath": "https://yourdomain.com/images/users/1/profileImages/thumb-1.jpg?1469269180000",   
              "tinyThumbPath": "https://yourdomain.com/images/users/1/profileImages/tiny-thumb-1.jpg?1469269180000",   
              "imageType": "image/jpeg"   
             }   
          },   
        "createdDate": "2016-10-25T08:15:45+0000"   
   },   
   {   
     "cumulativeAlertId": 289,   
     "commentType": 5, "description": "Partition  : / Total  : 17133.81MB",    
     "createdBy":   
       {   
         "loginName": "John.Smith",   
         "lastName": "Smith",   
         "firstName": "John",   
         "email": "john.smith@gmail.com",   
         "phoneNumber": "406-625-1234",   
         "profileImage":   
           {   
             "logoPath": "https://yourdomain.com/images/users/1/profileImages/1.jpg?1469269179000",   
             "thumbPath": "https://yourdomain.com/images/users/1/profileImages/thumb-1.jpg?1469269180000",   
             "tinyThumbPath": "https://yourdomain.com/images/users/1/profileImages/tiny-thumb-1.jpg?1469269180000",   
            "imageType": "image/jpeg"   
           }   
       },   
     "createdDate": "2016-10-25T10:48:42+0000"   
  }   
],   

"totalResults": 2,   
"orderBy": "created_date",   
"pageNo": 1,   
"pageSize": 2,   
"totalPages": 1,   
"nextPage": false,   
"previousPageNo": 0,   
"descendingOrder": true   
}