> ## Documentation Index
> Fetch the complete documentation index at: https://docs.olostep.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitor-Ereignisse auflisten

> Listet paginierte Snapshot-Ereignisse (neueste zuerst) mit vorab signierten snapshot_url-Werten auf. Unterstützt count_only=true für nur total_count.



## OpenAPI

````yaml de/openapi/monitors.json GET /v1/monitors/{monitor_id}/events
openapi: 3.0.3
info:
  title: Monitore API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/monitors/{monitor_id}/events:
    get:
      summary: Monitor-Ereignisse auflisten
      description: >-
        Listet Snapshot-Ereignisse (neueste zuerst) mit kurzlebigen vorab
        signierten `snapshot_url`-Werten auf.
      parameters:
        - name: monitor_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^monitor_
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: cursor
          in: query
          schema:
            type: string
          description: Opaquer Cursor von `next_cursor`.
        - name: count_only
          in: query
          schema:
            type: string
            enum:
              - 'true'
              - '1'
          description: 'Wenn wahr, wird nur `{ "total_count": N }` zurückgegeben.'
      responses:
        '200':
          description: Ereignisseite oder Anzahl.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/MonitorEvent'
                      has_more:
                        type: boolean
                      next_cursor:
                        type: string
                        nullable: true
                      total_count:
                        type: integer
                  - type: object
                    properties:
                      total_count:
                        type: integer
                    required:
                      - total_count
        '400':
          description: Ungültige monitor_id oder Cursor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Ungültiger API-Schlüssel.
        '404':
          description: Monitor nicht gefunden.
        '500':
          description: Interner Serverfehler.
      security:
        - Authorization: []
components:
  schemas:
    MonitorEvent:
      type: object
      properties:
        id:
          type: string
          description: Ereigniskennung (`run_id` oder `created_at` Fallback).
        run_id:
          type: string
          nullable: true
        created:
          type: integer
          nullable: true
          description: Unix-Zeitstempel (Sekunden).
        changed:
          type: boolean
          nullable: true
        summary:
          type: string
          nullable: true
        snapshot_url:
          type: string
          format: uri
          nullable: true
          description: Kurzlebige vorab signierte URL zum Abrufen des Snapshot-JSON.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        monitor_id:
          type: string
          description: Vorhanden bei einigen Erstellungs-/Aktualisierungsfehlerantworten.
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer-Authentifizierungsheader in der Form Bearer <token>, wobei
        <token> dein Authentifizierungstoken ist.

````