Rest API - Alerts Events > List

Is there a parameter option to query rest api alert events for last 24 hours vs. returning last 7 days of alert data, as stated on rest api explorer page? do not see a timeframe parameter filter available.

New Relic API Explorer?
“This API endpoint allows you to list the alert events from the last 7 days for your account.”

Hi, @kenneth.m: No, the REST API endpoints for alerts do not accept a timeframe parameter. You might try querying the NrAiIncident event with NRQL, which allows you to specify a time window: NerdGraph tutorial: Query your data using NRQL | New Relic Documentation.

1 Like

Thanks for the feedback philweber!

Hi @kenneth.m

Thanks for reaching back out. Im glad that @philweber guidance was helpful.

Wishing you a great day!