Skip to main content
GET
/
v1alpha
/
monitors
/
{monitor_id}
/
events
List Events
import requests

url = "https://api.parallel.ai/v1alpha/monitors/{monitor_id}/events"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.json())
{
  "events": [
    {
      "type": "event",
      "event_group_id": "mevtgrp_b0079f70195e4258eab1e7284340f1a9ec3a8033ed236a24",
      "output": "New product launch announced",
      "event_date": "2025-01-15",
      "source_urls": [
        "https://example.com/news"
      ]
    },
    {
      "type": "completion",
      "monitor_run_id": "completed_2025-01-15T10:30:00Z"
    },
    {
      "type": "error",
      "error": "Error occurred while processing the event",
      "id": "error_2025-01-15T10:30:00Z",
      "date": "2025-01-15T10:30:00Z"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

monitor_id
string
required

Query Parameters

lookback_period
string
default:10d

Lookback period to fetch events from. Sample values: 10d, 1w. A minimum of 1 day is supported and with one day increments. Use d for days, w for weeks.

Response

Successful Response

Response containing monitor execution history.

events
Events · array
required

List of execution events for the monitor.

  • MonitorEventDetail
  • MonitorExecutionError
  • MonitorCompletion