我试图发送原始数据来填充字段,我需要填充的主要是“附加信息”,但由于附加信息中有多个变量,我收到语法错误
以下是我试图做的
如果删除了附加信息,则可以正常工作
{
"hostname":"TW_OF0048_CS01.thameswater.co.uk","severity":"1","description":" Interface GigabitEthernet1/0/8 - Gi1/0/8 for node TW_OF0048_CS01.thameswater.co.uk is Down.","icon":"Red","source":"SolarWinds"
}
得到语法错误
"additonal_info":{"hostname":"","networkNodeId":"1805","swEventId":"1274896","icon":"Red","netObjectId":"14592","NetObjectType":"I","eventType":"10"}
我需要将两者都传递给 ServiceNow。
我尝试了各种不同的方法来尝试让它工作,但总是会出现某种错误
{
"hostname":"TW_OF0048_CS01.thameswater.co.uk","severity":"1","description":" Interface GigabitEthernet1/0/8 - Gi1/0/8 for node TW_OF0048_CS01.thameswater.co.uk is Down.","icon":"Red","source":"SolarWinds"
}
得到语法错误
"additonal_info":{"hostname":"","networkNodeId":"1805","swEventId":"1274896","icon":"Red","netObjectId":"14592","NetObjectType":"I","eventType":"10"}
它应该像下面一样进入 ServiceNow