Hi all,
i get this json with discovery rule and with array key called "components" i create item based on lld macro and prototype item.
All work perfect but the json array is empty when no problem are detected.
When the object array is not empty i get problem message but how can i get resolved message when the problem are resolved and the array came back empty?
Someone can help me
Thank you a lot
Code:
{
"page": {
"id": "0f54fx204jpt",
"name": "Atlassian",
"url": "https://status.atlassian.com",
"updated_at": "2024-03-11T18:57:44Z"
},
"status": {
"description": "Partial System Outage",
"indicator": "major"
},
"components": [
{
"created_at": "2014-05-03T01:22:07.274Z",
"description": null,
"id": "b13yz5g2cw10",
"name": "API",
"page_id": "0f54fx204jpt",
"position": 1,
"status": "partial_outage",
"updated_at": "2014-05-14T20:34:43.340Z"
},
{
"created_at": "2014-05-03T01:22:07.286Z",
"description": null,
"id": "9397cnvk62zn",
"name": "Management Portal",
"page_id": "0f54fx204jpt",
"position": 2,
"status": "major_outage",
"updated_at": "2014-05-14T20:34:44.470Z"
}
]
}
Comment