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

# Get Metrics Summary

> High-level health summary across all monitors for the organization. Includes pass/fail counts, success rate, latency percentiles, and failing monitors.



## OpenAPI

````yaml https://hub.griff.services/documentation/json get /metrics/summary
openapi: 3.1.0
info:
  title: Griffin Hub API
  description: API for managing and running test monitors
  version: 1.0.0
servers:
  - url: https://hub.griff.services
    description: Local development server
  - url: http://localhost:3000
    description: Local development server
security:
  - bearerAuth: []
tags:
  - name: monitors
    description: Test monitor management endpoints
  - name: runs
    description: Test run management endpoints
  - name: metrics
    description: Metrics and health summary endpoints
paths:
  /metrics/summary:
    get:
      tags:
        - metrics
      summary: Get Metrics Summary
      description: >-
        High-level health summary across all monitors for the organization.
        Includes pass/fail counts, success rate, latency percentiles, and
        failing monitors.
      parameters:
        - schema:
            type: string
          in: query
          name: environment
          required: false
        - schema:
            type: string
            enum:
              - 1h
              - 6h
              - 24h
              - 7d
              - 30d
          in: query
          name: period
          required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - period
                      - periodStart
                      - periodEnd
                      - monitors
                      - runs
                      - latency
                      - uptimePercent
                      - failingMonitors
                    properties:
                      period:
                        type: string
                        enum:
                          - 1h
                          - 6h
                          - 24h
                          - 7d
                          - 30d
                      periodStart:
                        type: string
                        format: date-time
                      periodEnd:
                        type: string
                        format: date-time
                      monitors:
                        type: object
                        required:
                          - total
                          - passing
                          - failing
                          - noRecentRuns
                        properties:
                          total:
                            type: number
                          passing:
                            type: number
                          failing:
                            type: number
                          noRecentRuns:
                            type: number
                      runs:
                        type: object
                        required:
                          - total
                          - successful
                          - failed
                          - successRate
                        properties:
                          total:
                            type: number
                          successful:
                            type: number
                          failed:
                            type: number
                          successRate:
                            type: number
                      latency:
                        type: object
                        properties:
                          p50DurationMs:
                            type: number
                          p95DurationMs:
                            type: number
                          p99DurationMs:
                            type: number
                      uptimePercent:
                        type: number
                      failingMonitors:
                        type: array
                        items:
                          type: object
                          required:
                            - monitorId
                            - monitorName
                            - lastFailureAt
                            - consecutiveFailures
                          properties:
                            monitorId:
                              type: string
                            monitorName:
                              type: string
                            lastFailureAt:
                              type: string
                              format: date-time
                            consecutiveFailures:
                              type: number
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '502':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '504':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````