Naar hoofdinhoud gaan
GET
/
v1
/
monitors
/
{monitor_id}
Haal Monitor op
curl --request GET \
  --url https://api.olostep.com/v1/monitors/{monitor_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "monitor",
  "query": "<string>",
  "tracked": {
    "type": "<string>",
    "urls": [
      "<string>"
    ],
    "web_query": "<string>"
  },
  "source_policy": {
    "include_urls": [
      "<string>"
    ],
    "exclude_urls": [
      "<string>"
    ],
    "include_domains": [
      "<string>"
    ],
    "exclude_domains": [
      "<string>"
    ]
  },
  "schedule": {
    "frequency": "<string>",
    "cron": "<string>",
    "timezone": "UTC",
    "next_run_at": "2023-11-07T05:31:56Z"
  },
  "notification": {
    "events": [],
    "channels": [
      {
        "target": "<string>",
        "events": []
      }
    ]
  },
  "webhook": {
    "url": "<string>"
  },
  "output_schema": {},
  "error_message": "<string>",
  "last_run": {
    "id": "<string>",
    "status": "completed",
    "change_detected": true,
    "ran_at": "2023-11-07T05:31:56Z"
  },
  "agent": {
    "id": "<string>"
  },
  "metadata": {},
  "created": 123,
  "updated": 123,
  "total_count": 123,
  "mermaid_diagram": "<string>"
}

Autorisaties

Authorization
string
header
vereist

Bearer authenticatie header in de vorm Bearer , waar jouw auth token is.

Padparameters

monitor_id
string
vereist
Pattern: ^monitor_

Queryparameters

include_total_count
enum<string>

Stel in op false of 0 om total_count weg te laten.

Beschikbare opties:
true,
false,
0,
1
include-diagram
enum<string>

Wanneer waar, bevat mermaid_diagram voor de monitor DAG.

Beschikbare opties:
true,
1

Respons

Monitor opgehaald.

id
string

Unieke monitor identificatie (monitor_…).

object
string
Voorbeeld:

"monitor"

query
string

Monitoring intentie in natuurlijke taal.

tracked
object

Opgeloste doelen die de monitor volgt nadat de planning is voltooid.

source_policy
object

Optionele URL/domein toestaan- en weigerenlijsten toegepast tijdens planning en uitvoering.

schedule
object
notification
object
webhook
object
output_schema
object

Optioneel JSON Schema voor gestructureerde extractie-output.

status
enum<string>

Levenscyclusstatus monitoren.

Beschikbare opties:
provisioning,
active,
paused,
failed,
deleted
error_message
string | null

Aanwezig wanneer status failed is.

last_run
object

Laatste momentopnamesamenvatting. Inbegrepen bij GET /v1/monitors/{monitor_id}.

agent
object
metadata
object
created
integer

Unix-timestamp (seconden).

updated
integer

Unix-timestamp (seconden).

total_count
integer

Totaal aantal momentopnamen. Inbegrepen bij GET /v1/monitors/{monitor_id} tenzij include_total_count=false.

mermaid_diagram
string

Mermaid-stroomdiagram van de monitor DAG. Inbegrepen wanneer include-diagram=true bij ophalen.