In python, I am accessing an API that returns a list of alerts like so:
{
"items": [
{
"AlertID": 0,
"Code": 0,
"Source": "string",
"Title": "string",
"Severity": "Information",
"Created": "2018-10-29T14:57:05.639Z",
"ThresholdValue1": "string",
"ThresholdValue2": "string",
"ThresholdValue3": "string",
"ThresholdValue4": "string",
"ThresholdValue5": "string",
"SnoozedEndDate": "2018-10-29T14:57:05.639Z",
"DeviceGuid": "string",
"AdditionalInfo": "string",
"Archived": true,
"AlertCategoryID": "Hardware",
"ArchivedDate": "2018-10-29T14:57:05.639Z",
"TicketID": 0,
"AlertMessage": "string",
"DeviceName": "string",
"CustomerID": 0,
"CustomerName": "string",
"MessageTemplate": "string",
"FolderID": 0,
"PollingCyclesCount": 0
}
],
"totalItemCount": 0,
"page": 0,
"itemsInPage": 0,
"totalPages": 0,
"prevLink": "string",
"nextLink": "string"
}
This will return a list of 20 alerts. If I wanted to print all the details of any alert that has the value 'false' for the key 'Archived', what would be the best way to go about that? I only need to see details about current alerts, not archived ones. The API also can return details if i pass in the specific AlertID as well, this specific url gives me a list of all alerts.