> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Obtener alerta

> Recupera una alerta específica por ID



## OpenAPI

````yaml /es/_specs/hyperdx-openapi.json get /api/v2/alerts/{id}
openapi: 3.0.0
info:
  description: API para gestionar alertas y dashboards de HyperDX
  title: HyperDX External API
  version: 2.0.0
servers:
  - description: Servidor de API de producción
    url: https://api.hyperdx.io
  - description: Servidor actual
    url: /
security:
  - BearerAuth: []
tags:
  - description: Endpoints para gestionar dashboards y sus visualizaciones
    name: Dashboards
  - description: Endpoints para gestionar alertas de monitorización
    name: Alerts
paths:
  /api/v2/alerts/{id}:
    get:
      tags:
        - Alerts
      summary: Obtener alerta
      description: Recupera una alerta específica por ID
      operationId: getAlert
      parameters:
        - description: ID de la alerta
          example: 65f5e4a3b9e77c001a123456
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                alertResponse:
                  summary: Respuesta de una alerta
                  value:
                    data:
                      channel:
                        type: webhook
                        webhookId: 65f5e4a3b9e77c001a789012
                      createdAt: '2023-03-15T10:20:30.000Z'
                      dashboard: 65f5e4a3b9e77c001a567890
                      id: 65f5e4a3b9e77c001a123456
                      interval: 5m
                      message: CPU usage is above 80%
                      name: CPU Usage Alert
                      source: tile
                      state: active
                      team: 65f5e4a3b9e77c001a345678
                      threshold: 80
                      thresholdType: above
                      tileId: 65f5e4a3b9e77c001a901234
                      updatedAt: '2023-03-15T14:25:10.000Z'
              schema:
                $ref: '#/components/schemas/AlertResponse'
          description: Alerta recuperada correctamente
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: No autorizado
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Alerta no encontrada
components:
  schemas:
    AlertResponse:
      properties:
        data:
          $ref: '#/components/schemas/Alert'
      type: object
    Error:
      properties:
        message:
          type: string
      type: object
    Alert:
      properties:
        channel:
          properties:
            type:
              example: webhook
              type: string
            webhookId:
              example: 65f5e4a3b9e77c001a789012
              type: string
          type: object
        createdAt:
          example: '2023-01-01T00:00:00.000Z'
          format: date-time
          type: string
        dashboard:
          example: 65f5e4a3b9e77c001a567890
          type: string
        groupBy:
          nullable: true
          type: string
        id:
          example: 65f5e4a3b9e77c001a123456
          type: string
        interval:
          example: 15m
          type: string
        message:
          example: Error rate exceeds threshold
          type: string
        name:
          example: High Error Rate
          type: string
        savedSearch:
          nullable: true
          type: string
        silenced:
          nullable: true
          type: boolean
        source:
          enum:
            - tile
            - search
          example: tile
          type: string
        state:
          example: inactive
          type: string
        team:
          example: 65f5e4a3b9e77c001a345678
          type: string
        threshold:
          example: 100
          type: number
        thresholdType:
          enum:
            - above
            - below
          example: above
          type: string
        tileId:
          example: 65f5e4a3b9e77c001a901234
          type: string
        updatedAt:
          example: '2023-01-01T00:00:00.000Z'
          format: date-time
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: API Key
      scheme: bearer
      type: http

````