ASM - Getting empty array when requesting a Log of Monitor Checks (API)
search cancel

ASM - Getting empty array when requesting a Log of Monitor Checks (API)

book

Article ID: 211568

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

When trying to run the Rest API for ASM to request a Log of Monitor Check, the output is an empty array:
 
GET /log
monitor=[comma-separated monitor IDs]
from=[ISO 8601 date, eg. "2020-01-30T01:23:45+06:00"]
to=[<addressee>]
 
curl -X GET "https://example.broadcom.com/v3/log?monitor=27,29&from=2020-01-20T14%3A48%3A00%2B02%3A00&extended=false&limit=20" -H "accept: application/json" -H "Authorization: Bearer <bearer token>
 

Environment

Any

Resolution

The reason of the empty string in this particular example was expected as the monitor to check was created in 2021 and the time range selected in the API refers to 2020.

Additional Information

Request a Log of Monitor Checks
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/app-synthetic-monitor/SaaS/using/using-swagger-in-dx-asm/Swagger-API-Examples.html#concept.dita_219e8231-1fbc-4ff2-82d6-f07325f248a1_Requestalogofmonitorchecks