1 Reply Latest reply on Apr 25, 2016 5:41 PM by Sarah Xu

    TSI API - Create Event JSON Body - How to populate Event Details: Hostname and HostIP?

    Karlis Peterson

      I am able to use the Create Event API, associate the event to a device (source), to an application (app_id), and have the event be "stateful", but when looking at the Event Details, I can not seem to populate the "HostName" and "HostIP" fields. Which Event JSON body parameters are needed to populate these?

       

      Screenshot from TSI: (click image to enlarge)

      Event_detailsd.png

       

      Here is a sample JSON payload I am sending. Please indicate which body parameters I am missing:

       

      {

         "title":"VMware CPU Container Total CPU Utilization, 8.690 % is above All Baselines",

         "fingerprintFields":[

            "@message"

         ],

         "message":"tsim1-abn-24738",

         "eventClass":"ABNORMALITY",

         "status":"OPEN",

         "severity":"INFO",

         "properties":{

            "app_id":"IBS",

            "hostIp":"192.168.0.101"

         },

         "source":{

            "ref":"tsps",

            "type":"tsps",

            "name":"tsps"

         }

      }

       

      Thank you in advance!

       

      KP