Hi,
I am trying to create a PagerDuty INC using Sumologic. INC creation works fine, but I want PagerDuty to contain a nested table of some data.
For example:
Rather than PG displaying the raw JSON, I want a nested table instead. I know this is possible as the Site24x7 out of the box integration has nested tables. I just think my current syntax is incorrect.
Right now, this is the PG payload I am using:
{
“service_key”: “XXXXX”,
“event_type”: “trigger”,
“description”: “{{TriggerType}} Alert:{{AlertName}}”,
“client”: “Sumo Logic”,
“client_url”: “{{AlertResponseURL}}”,
“details”: {
“alertURL”: “{{AlertResponseURL}}”,
“triggerCondition”: “{{TriggerCondition}}”,
“triggerValue”: “{{TriggerValue}}”,
“triggerTime”: “{{TriggerTime}}”,
“triggerTimeRange”: “{{TriggerTimeRange}}”,
“query” : “{{Query}}”,
“queryUrl” : “{{QueryURL}}”,
“results”: “{{ResultsJSON}}”
}
}
But PG never creates a sub table. {{ResultsJSON}} is a variable which contains the json results e.g.
[
{
“Category”: “linux/system”,
“Collector”: “XXX”,
“Host”: “XXX”,
“Message”: “2022-06-17T01:58:46.525081+00:00 XXX bash[1236]: XXX:1168:/root:logger “mysql””,
“Name”: “/var/log/messages”,
“Time”: 1655431126525
}
]
Could you please suggest how to format the PG payload in order to create nested tables?
Note also we are using events v2 API.