> ## 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.

# Elenca gli eventi del monitor

> Elenca gli eventi snapshot paginati (dal più recente) con valori snapshot_url pre-firmati. Supporta count_only=true solo per total_count.



## OpenAPI

````yaml it/openapi/monitors.json GET /v1/monitors/{monitor_id}/events
openapi: 3.0.3
info:
  title: API dei Monitor
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/monitors/{monitor_id}/events:
    get:
      summary: Elenca Eventi del Monitor
      description: >-
        Elenca eventi snapshot (dal più recente) con valori `snapshot_url`
        pre-firmati a breve termine.
      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: Cursore opaco da `next_cursor`.
        - name: count_only
          in: query
          schema:
            type: string
            enum:
              - 'true'
              - '1'
          description: 'Quando è vero, restituisce solo `{ "total_count": N }`.'
      responses:
        '200':
          description: Pagina o conteggio degli eventi.
          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: monitor_id o cursore non valido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Chiave API non valida.
        '404':
          description: Monitor non trovato.
        '500':
          description: Errore interno del server.
      security:
        - Authorization: []
components:
  schemas:
    MonitorEvent:
      type: object
      properties:
        id:
          type: string
          description: Identificatore dell'evento (`run_id` o `created_at` fallback).
        run_id:
          type: string
          nullable: true
        created:
          type: integer
          nullable: true
          description: Timestamp Unix (secondi).
        changed:
          type: boolean
          nullable: true
        summary:
          type: string
          nullable: true
        snapshot_url:
          type: string
          format: uri
          nullable: true
          description: >-
            URL pre-firmato a breve termine per recuperare il JSON
            dell'istantanea.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        monitor_id:
          type: string
          description: Presente su alcune risposte di errore di creazione/aggiornamento.
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Intestazione di autenticazione Bearer del tipo Bearer <token>, dove
        <token> è il tuo token di autenticazione.

````