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

# Monitor response times (bucketed latency history)

> The monitor's response-time (latency) history, bucketed: the average response and down-count per fixed-width time bucket over a window. `period` picks the window + bucket width; `region` filters to one probe region.



## OpenAPI

````yaml https://www.sentivel.com/api/v1/openapi.json get /monitors/{id}/response-times
openapi: 3.1.0
info:
  title: Sentivel API
  version: 1.0.0
  description: >-
    Provision and read your Sentivel workspace programmatically: components,
    monitors, status pages and incidents. Authenticate with an org API token
    (create one under Developers → API tokens in the dashboard).
  contact:
    name: Sentivel
    url: https://www.sentivel.com
servers:
  - url: https://www.sentivel.com/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Identity
    description: Who the token is
  - name: Components
    description: Status-page components (status units)
  - name: Monitors
    description: Uptime/HTTP checks
  - name: Status pages
    description: Public status pages
  - name: Incidents
    description: Incidents (read + manual create)
  - name: People
    description: Workspace members
  - name: Integrations
    description: Outbound alert destinations
  - name: On-call
    description: On-call schedules
paths:
  /monitors/{id}/response-times:
    get:
      tags:
        - Monitors
      summary: Monitor response times (bucketed latency history)
      description: >-
        The monitor's response-time (latency) history, bucketed: the average
        response and down-count per fixed-width time bucket over a window.
        `period` picks the window + bucket width; `region` filters to one probe
        region.
      operationId: getMonitorResponseTimes
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: period
          in: query
          description: Window + bucket width preset.
          schema:
            type: string
            enum:
              - hour
              - day
              - week
              - month
            default: day
        - name: region
          in: query
          description: Filter to one probe region (omit for all regions).
          schema:
            type: string
            maxLength: 40
      responses:
        '200':
          description: The monitor's bucketed response times.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ResponseTimes'
        '400':
          description: Unknown period.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such monitor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ResponseTimes:
      type: object
      properties:
        monitorId:
          type: string
          format: uuid
        period:
          type: string
          enum:
            - hour
            - day
            - week
            - month
        region:
          type:
            - string
            - 'null'
          description: The probe region the series is filtered to (null = all).
        buckets:
          type: array
          items:
            type: object
            properties:
              bucketStart:
                type: string
                format: date-time
              avgMs:
                type:
                  - number
                  - 'null'
                description: >-
                  Mean response time across the bucket (null = no passing
                  checks).
              downCount:
                type: integer
              total:
                type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - forbidden
                - not_found
                - invalid_request
                - rate_limited
                - conflict
                - internal
            message:
              type: string
            details:
              type: object
          required:
            - code
            - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An org API token (`sv_…`), sent as `Authorization: Bearer <token>`.'

````