---
updatedAt: 2026-09-08T20:26:09.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# Get an alert by id

Get a single alert by its unique id. Unlike the list endpoint, this lookup
is not time-windowed: it returns the alert regardless of how long ago it
fired. Returns 404 if no alert with the given id exists in the workspace
or if the caller lacks view permission on the alert's monitor.


# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Observe by Snowflake API",
    "description": "# Overview\nWelcome to the Observe API Docs!\n\nThe Observe API is a RESTful API. POST bodies and responses are typically JSON-encoded.\n\n## Authentication\nRequests to the Observe API are authenticated with an API token. The token can be supplied using HTTP Bearer authentication:\n```\n// passing token as bearer token\ncurl -H \"Authorization: Bearer <customerid> <token>\" https://<customerid>.<observe-domain>.com/v1/...\n```\n",
    "version": "1.0.230307"
  },
  "servers": [
    {
      "url": "https://{customerid}.observeinc.com",
      "description": "US west server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        }
      }
    },
    {
      "url": "https://{customerid}.{cluster}.observeinc.com",
      "description": "Specific regional cluster (prod)",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "cluster": {
          "enum": [
            "eu-1",
            "ap-1"
          ],
          "default": "eu-1",
          "description": "For regional clusters, choose one."
        }
      }
    },
    {
      "url": "https://{customerid}.{domain}.com",
      "description": "Specific Observe server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "domain": {
          "default": "OBSERVE_DOMAIN",
          "description": "The Observe domain for your instance."
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Alert",
      "description": "Query monitor alerts. Learn more about [alerts](https://docs.observeinc.com/docs/work-with-alerts).\n"
    }
  ],
  "paths": {
    "/v1/alerts/{id}": {
      "get": {
        "summary": "Get an alert by id",
        "description": "Get a single alert by its unique id. Unlike the list endpoint, this lookup\nis not time-windowed: it returns the alert regardless of how long ago it\nfired. Returns 404 if no alert with the given id exists in the workspace\nor if the caller lacks view permission on the alert's monitor.\n",
        "operationId": "GetAlert",
        "tags": [
          "Alert"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UUID"
            },
            "description": "Unique identifier of the alert."
          },
          {
            "$ref": "#/components/parameters/ExpandParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Alert found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Alert-Resource"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ErrorResponse-400"
          },
          "401": {
            "$ref": "#/components/responses/ErrorResponse-401"
          },
          "403": {
            "$ref": "#/components/responses/ErrorResponse-403"
          },
          "404": {
            "$ref": "#/components/responses/ErrorResponse-404"
          },
          "429": {
            "$ref": "#/components/responses/ErrorResponse-429"
          },
          "5XX": {
            "$ref": "#/components/responses/ErrorResponse-5XX"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Authorization: Bearer <customerid> <apitoken>\n"
      }
    },
    "schemas": {
      "ObjectId": {
        "type": "string",
        "format": "ObjectId"
      },
      "User": {
        "title": "User",
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "title": "User Identifier",
            "$ref": "#/components/schemas/ObjectId"
          },
          "label": {
            "title": "User Label",
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          }
        }
      },
      "ErrorMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A stable, machine-readable identifier for the kind of error."
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        },
        "required": [
          "type",
          "message"
        ]
      },
      "Time": {
        "type": "string",
        "format": "RFC3339"
      },
      "NullableTime": {
        "type": [
          "string",
          "null"
        ],
        "format": "RFC3339"
      },
      "Alert-Status": {
        "title": "AlertStatus",
        "type": "string",
        "description": "Current status of the alert",
        "enum": [
          "Active",
          "Ended",
          "Retracted"
        ]
      },
      "Alert-Level": {
        "title": "AlertLevel",
        "type": "string",
        "description": "Severity level of the alert",
        "enum": [
          "Critical",
          "Error",
          "Warning",
          "Informational",
          "NoData",
          "None"
        ]
      },
      "Alert-CapturedValueType": {
        "title": "AlertCapturedValueType",
        "type": "string",
        "enum": [
          "Aggregation",
          "GroupBy",
          "LinkSourceField"
        ]
      },
      "Alert-ColumnPath": {
        "title": "AlertColumnPath",
        "type": "object",
        "required": [
          "name",
          "path"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The column's identifier within its dataset. This is the programmatic\nname used to look up the column, not a display label.\n"
          },
          "path": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional dotted path into a nested column. Null when absent."
          }
        }
      },
      "ObjectRef": {
        "title": "ObjectRef",
        "type": "object",
        "description": "A reference to another resource. Always carries the id; the optional `record` field carries the brief metadata, populated when expand=true. Brief expansion applies to one layer only — fields inside `record` that are themselves ObjectRefs (e.g. `record.managedBy`) are returned id-only, never with their own `record` populated. CEL filter expressions can deeper-resolve via lazy wrapper resolution if needed.\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId"
          },
          "record": {
            "$ref": "#/components/schemas/ObjectBrief"
          }
        }
      },
      "ObjectBrief": {
        "title": "ObjectBrief",
        "type": "object",
        "description": "Brief record fields for an ObjectRef. This type is polymorphic: additional fields pointing to specific object types (e.g. dataset, dashboard, monitor) may be added in the future as needed.\n",
        "required": [
          "label",
          "description",
          "iconUrl",
          "managedBy"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "iconUrl": {
            "type": "string"
          },
          "managedBy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "Owner/manager of this object. Always returned as an id-only ObjectRef even when the parent was requested with expand=true: `expand` populates a single layer of brief data, so `record.managedBy` on a brief is itself never expanded. Pass the inner id back through a separate request (or filter via CEL, which lazily resolves) to access the manager's brief."
          }
        }
      },
      "Alert-LinkColumnMeta": {
        "title": "AlertLinkColumnMeta",
        "type": "object",
        "required": [
          "srcFields",
          "dstFields",
          "targetDataset"
        ],
        "properties": {
          "srcFields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/Alert-ColumnPath"
            }
          },
          "dstFields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "targetDataset": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Alert-LinkColumn": {
        "title": "AlertLinkColumn",
        "type": "object",
        "required": [
          "name",
          "meta"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The link column's identifier. This is the programmatic name used to\nlook up the column, not a display label.\n"
          },
          "meta": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Alert-LinkColumnMeta"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Alert-CorrelationTag": {
        "title": "AlertCorrelationTag",
        "type": "object",
        "description": "A correlation tag reference. The tag identifier is the canonical\nname; the resolved backing column(s) are server-side details and\nnot part of the wire shape.\n",
        "required": [
          "tag"
        ],
        "properties": {
          "tag": {
            "type": "string",
            "description": "Canonical correlation tag identifier."
          }
        }
      },
      "Alert-Column": {
        "title": "AlertColumn",
        "type": "object",
        "description": "A column reference, either a direct column path, a link column, or a\ncorrelation tag. Exactly one of `linkColumn`, `columnPath`, or\n`correlationTag` is non-null.\n",
        "required": [
          "linkColumn",
          "columnPath",
          "correlationTag"
        ],
        "properties": {
          "linkColumn": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Alert-LinkColumn"
              },
              {
                "type": "null"
              }
            ]
          },
          "columnPath": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Alert-ColumnPath"
              },
              {
                "type": "null"
              }
            ]
          },
          "correlationTag": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Alert-CorrelationTag"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Alert-CapturedValue": {
        "title": "AlertCapturedValue",
        "type": "object",
        "description": "A value captured at the time the alert was triggered",
        "required": [
          "types",
          "column",
          "value"
        ],
        "properties": {
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Alert-CapturedValueType"
            }
          },
          "column": {
            "$ref": "#/components/schemas/Alert-Column"
          },
          "value": {
            "type": [
              "string",
              "null"
            ],
            "description": "The captured cell value. Null when the cell had no value."
          }
        }
      },
      "Alert-ContextEntry": {
        "title": "AlertContextEntry",
        "type": "object",
        "description": "A context entry representing a grouping value for which the alert triggered",
        "required": [
          "column",
          "value"
        ],
        "properties": {
          "column": {
            "$ref": "#/components/schemas/Alert-Column"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "ObjectTags": {
        "title": "ObjectTags",
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "description": "User-applied tags for organization and discovery, as a map of tag key\nto a list of values. For example: {\"env\": [\"prod\", \"staging\"], \"team\": [\"platform\"]}.\n"
      },
      "Monitor-Brief": {
        "title": "MonitorBrief",
        "type": "object",
        "description": "Brief monitor metadata included when a reference is expanded.",
        "required": [
          "name",
          "label",
          "description"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the monitor, unique within its workspace.\n"
          },
          "label": {
            "type": "string",
            "deprecated": true,
            "description": "Same as `name`. Deprecated; read `name` instead."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The monitor's description. Null when no description is configured."
          },
          "objectTags": {
            "$ref": "#/components/schemas/ObjectTags",
            "description": "The monitor's current object tags, as a map of tag key to a list of values. An empty object when it has none. Included in alert responses; other references omit it.\n"
          }
        }
      },
      "Monitor-Ref": {
        "title": "MonitorRef",
        "type": "object",
        "description": "Reference to a monitor. Always carries the `id`. The `record` field is\npopulated with brief metadata only when `expand=true`.\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId"
          },
          "record": {
            "$ref": "#/components/schemas/Monitor-Brief"
          }
        }
      },
      "UUID": {
        "type": "string",
        "format": "uuid",
        "example": "00000000-0000-0000-0000-000000000000"
      },
      "Chat-Alert": {
        "title": "ChatAlert",
        "type": "object",
        "description": "Reference to the alert that triggered this chat.",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UUID",
            "description": "ID of the alert (monitor_v2_alarm)."
          }
        }
      },
      "Chat-Message-ReadOnly": {
        "title": "ChatMessageReadOnly",
        "type": "object",
        "description": "The readonly server fields of a message within a chat.",
        "required": [
          "index",
          "chatRevision",
          "createdBy",
          "createdAt",
          "updatedBy",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Client-generated message id scoped to the chat."
          },
          "index": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Zero-based index of the message within the chat. Output only.",
            "readOnly": true
          },
          "chatRevision": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "The chat revision that includes the last update of this message. Output only.",
            "readOnly": true
          },
          "createdBy": {
            "$ref": "#/components/schemas/User"
          },
          "createdAt": {
            "$ref": "#/components/schemas/Time",
            "readOnly": true
          },
          "updatedBy": {
            "$ref": "#/components/schemas/User"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/Time",
            "readOnly": true
          }
        }
      },
      "Chat-MessageMetadata": {
        "title": "ChatMessageMetadata",
        "type": "object",
        "description": "Free-form metadata associated with the message (timings, etc.).",
        "additionalProperties": true
      },
      "Chat-UIMessagePart": {
        "title": "ChatUIMessagePart",
        "description": "A message part. The schema is provided by the AI SDK, see\nhttps://ai-sdk.dev/docs/reference/ai-sdk-core/ui-message#uimessagepart-types\n\nThis commonly embeds image data, so it can be quite big, but\noften also just contains a snippet of text.\n\nThe backend itself does NOT validate the contents of any part\nexcept requiring a string type field.\n\nThis field is not part of the explicit schema since not all code\ngenerators support a required type field and capturing additional\nproperties in a catch-all field.\n\nThe client must validate this field for validity before use.\n",
        "type": "object",
        "examples": [
          {
            "type": "text",
            "text": "What is our current request failure rate?",
            "state": "done"
          },
          {
            "type": "text",
            "text": "What is our current request failure rate?",
            "state": "done"
          },
          {
            "type": "file",
            "mediaType": "image/png",
            "filename": "my-living-room-i-wish.png",
            "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII="
          }
        ],
        "additionalProperties": true
      },
      "Chat-FullMessage-CreateRequest": {
        "title": "ChatFullMessageCreateRequest",
        "description": "A message within a chat including message parts.\nMessage parts may e.g. contain image data and be quite big.\n",
        "type": "object",
        "required": [
          "parts"
        ],
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "system",
              "user",
              "assistant",
              "data"
            ]
          },
          "metadata": {
            "$ref": "#/components/schemas/Chat-MessageMetadata"
          },
          "id": {
            "type": "string",
            "description": "Client-generated message id scoped to the chat."
          },
          "indexedText": {
            "description": "The full text contained in `parts` for full text indexing.\n\nSince the schema of the message parts is not fully known to\nthe API server, the client needs to fill this field with the logically\ncontained text.\n\nThe contents of this field are not shown to the user --\nthe UI uses the more structured information in the `parts` field for\nthat.\n",
            "type": "string"
          },
          "parts": {
            "type": "array",
            "maxLength": 256,
            "description": "The message parts as defined by the AI SDK. Potentially large.",
            "items": {
              "$ref": "#/components/schemas/Chat-UIMessagePart"
            }
          }
        },
        "examples": [
          {
            "role": "user",
            "indexedText": "What are the most important metrics for critical-component?",
            "parts": [
              {
                "type": "text",
                "text": "What are the most important metrics for critical-component?",
                "state": "done"
              }
            ]
          }
        ]
      },
      "Chat-FullMessage": {
        "title": "ChatFullMessage",
        "description": "A message within a chat including the actual message \"parts\".\nMessage parts may e.g. contain image data and be quite big, but\noften also just contain a text snippet.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/Chat-Message-ReadOnly"
          },
          {
            "$ref": "#/components/schemas/Chat-FullMessage-CreateRequest"
          }
        ],
        "examples": [
          {
            "id": "some-ai-sdk-id-1",
            "index": 0,
            "chatRevision": 1,
            "createdAt": "2023-04-20T16:20:00Z",
            "createdBy": {
              "id": "123"
            },
            "updatedAt": "2023-04-20T16:20:00Z",
            "updatedBy": {
              "id": "123"
            },
            "role": "user",
            "indexedText": "What are the most important metrics for critical-component?",
            "parts": [
              {
                "type": "text",
                "text": "What are the most important metrics for critical-component?",
                "state": "done"
              }
            ]
          }
        ]
      },
      "Chat-Resource": {
        "title": "ChatResource",
        "type": "object",
        "description": "A chat resource - a conversation with the LLM agent.\n\nThe content of the conversation is in separate messages which\ncan be inlined into the resource for some operations with `?expand=true`.\n",
        "required": [
          "id",
          "revision",
          "createdBy",
          "createdAt",
          "updatedBy",
          "updatedAt",
          "activeStreamId",
          "alert"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UUID",
            "description": "Uniquely identifies a chat. Output only.",
            "readOnly": true
          },
          "revision": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Monotonically increasing with every update to the chat or its messages. Output only.",
            "readOnly": true
          },
          "createdBy": {
            "$ref": "#/components/schemas/User",
            "readOnly": true
          },
          "createdAt": {
            "$ref": "#/components/schemas/Time",
            "readOnly": true
          },
          "updatedBy": {
            "$ref": "#/components/schemas/User",
            "readOnly": true
          },
          "updatedAt": {
            "$ref": "#/components/schemas/Time",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Optional human visible title"
          },
          "summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096,
            "description": "Optional chat summary"
          },
          "activeStreamId": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255,
            "description": "ID of the currently active stream, or null when no stream is active.\nUsed to determine whether the chat is in-progress (streaming) or idle/completed.\n"
          },
          "alert": {
            "description": "The alert that triggered this chat, or null if not alert-triggered.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Chat-Alert"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages": {
            "type": "array",
            "description": "Present only when `expand=true`. Output only.",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/Chat-FullMessage"
            }
          }
        },
        "examples": [
          {
            "id": "4eb09e18-81c2-11f0-9989-73a1cb13d4a3",
            "revision": 3,
            "createdBy": {
              "id": "123"
            },
            "createdAt": "2023-04-20T16:20:00Z",
            "updatedBy": {
              "id": "123"
            },
            "updatedAt": "2023-04-20T16:20:00Z",
            "label": "Solving observability, once and for all",
            "summary": "Step by step, we solve all observability problems,\nso that we don't have to do that individually later on.\n"
          }
        ]
      },
      "Alert-AutomaticInvestigationOutcome": {
        "title": "AlertAutomaticInvestigationOutcome",
        "type": "string",
        "description": "Current state or terminal result of an automatic AI investigation attempt.",
        "enum": [
          "Started",
          "Completed",
          "RateLimitedPerMonitor",
          "RateLimitedPerCustomer",
          "RateLimitedPerCustomerPeak",
          "SkippedAlertMuted",
          "SkippedAlertLevelNotSelected",
          "FailedNoValidUser",
          "FailedInternalError"
        ]
      },
      "Chat-Brief": {
        "title": "ChatBrief",
        "type": "object",
        "description": "Brief chat metadata included when a reference is expanded.",
        "required": [
          "label"
        ],
        "properties": {
          "label": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 255,
            "description": "Human-visible title. Null when the chat has no title."
          }
        }
      },
      "Chat-Ref": {
        "title": "ChatRef",
        "type": "object",
        "description": "Reference to a chat. Always carries the `id`. The `record` field is\npopulated with brief metadata only when `expand=true`.\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UUID",
            "description": "Uniquely identifies a chat."
          },
          "record": {
            "$ref": "#/components/schemas/Chat-Brief"
          }
        }
      },
      "Alert-AutomaticInvestigation": {
        "title": "AlertAutomaticInvestigation",
        "type": "object",
        "required": [
          "outcome",
          "chat",
          "canViewChat"
        ],
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/Alert-AutomaticInvestigationOutcome"
          },
          "chat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Chat-Ref"
              },
              {
                "type": "null"
              }
            ],
            "description": "The automatically created investigation chat. Non-null when\noutcome is `Started` or `Completed`. When canViewChat is false,\nonly the id is returned, even when expand=true.\n"
          },
          "canViewChat": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the caller has permission to view the automatic investigation\nchat. Null when there is no chat. The investigation outcome is\nindependent of this permission.\n"
          }
        }
      },
      "Alert-ResolvedServiceType": {
        "title": "AlertResolvedServiceType",
        "type": "string",
        "description": "Kind of service an alert is attributed to. Omitted when serviceName is empty.\n",
        "enum": [
          "Service",
          "Database",
          "MessageBroker"
        ]
      },
      "Alert-ResolvedServiceBinding": {
        "title": "AlertResolvedServiceBinding",
        "type": "object",
        "description": "Service an alert is attributed to. Present whenever the alert's monitor\nhas a service binding. serviceName, environment, and serviceNamespace are\nempty strings when that value is missing. Omitted only when the monitor\nhas no service binding. serviceType is Service, Database, or MessageBroker,\nand is left out when serviceName is empty.\n",
        "required": [
          "serviceName",
          "environment",
          "serviceNamespace"
        ],
        "properties": {
          "serviceName": {
            "type": "string",
            "description": "Name correlation tag for this service type: `service.name`, `peer.db.name`, or `peer.messaging.system`.\n"
          },
          "environment": {
            "type": "string",
            "description": "Value of the `deployment.environment.name` correlation tag."
          },
          "serviceNamespace": {
            "type": "string",
            "description": "Value of the `service.namespace` correlation tag."
          },
          "serviceType": {
            "$ref": "#/components/schemas/Alert-ResolvedServiceType",
            "description": "Kind of service this alert is attributed to (`Service`, `Database`, or\n`MessageBroker`). Omitted when serviceName is empty.\n"
          }
        }
      },
      "Alert-ActionStats": {
        "title": "AlertActionStats",
        "type": "object",
        "description": "Statistics about notification actions taken for this alert",
        "required": [
          "numNotifsDiscarded",
          "numNotifsMuted",
          "numNotifsSent",
          "numErrors",
          "lastMutedAt",
          "lastSentAt",
          "lastErroredAt"
        ],
        "properties": {
          "numNotifsDiscarded": {
            "type": "string",
            "format": "int64"
          },
          "numNotifsMuted": {
            "type": "string",
            "format": "int64"
          },
          "lastMutedAt": {
            "$ref": "#/components/schemas/NullableTime",
            "description": "When the alert was last muted. Null if never muted."
          },
          "numNotifsSent": {
            "type": "string",
            "format": "int64"
          },
          "lastSentAt": {
            "$ref": "#/components/schemas/NullableTime",
            "description": "When a notification was last sent. Null if never sent."
          },
          "numErrors": {
            "type": "string",
            "format": "int64"
          },
          "lastErroredAt": {
            "$ref": "#/components/schemas/NullableTime",
            "description": "When the last notification error occurred. Null if no errors."
          }
        }
      },
      "Alert-Resource": {
        "title": "AlertResource",
        "type": "object",
        "description": "A monitor alert representing a detected condition.",
        "required": [
          "id",
          "start",
          "end",
          "detectedStart",
          "detectedEnd",
          "status",
          "level",
          "groupingHash",
          "capturedValues",
          "context",
          "monitorVersion",
          "monitor",
          "muted"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the alert"
          },
          "start": {
            "$ref": "#/components/schemas/Time",
            "description": "When the alert condition first occurred"
          },
          "end": {
            "$ref": "#/components/schemas/NullableTime",
            "description": "When the alert condition ended. Null for active alerts."
          },
          "detectedStart": {
            "$ref": "#/components/schemas/NullableTime",
            "description": "When the alert start was detected by the monitoring system. Null when not yet detected."
          },
          "detectedEnd": {
            "$ref": "#/components/schemas/NullableTime",
            "description": "When the alert end was detected by the monitoring system. Null for active alerts."
          },
          "status": {
            "$ref": "#/components/schemas/Alert-Status"
          },
          "level": {
            "$ref": "#/components/schemas/Alert-Level"
          },
          "groupingHash": {
            "type": "string",
            "format": "int64",
            "description": "Hash of the grouping values for this alert"
          },
          "capturedValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Alert-CapturedValue"
            }
          },
          "context": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Alert-ContextEntry"
            }
          },
          "monitorVersion": {
            "type": "string",
            "format": "int64",
            "description": "Version of the monitor when this alert was created"
          },
          "monitor": {
            "$ref": "#/components/schemas/Monitor-Ref",
            "description": "Reference to the monitor that generated this alert. Always carries\nthe id; the `record` field is populated only when expand=true.\nThe record includes the monitor's current `objectTags`, the tags\nthe `monitor.objectTags` filter field reads.\n"
          },
          "muted": {
            "type": "boolean",
            "description": "Whether the alert is currently muted by active mute rules."
          },
          "aiChats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Chat-Resource"
            },
            "description": "Optional field tied to a feature under development. Where that\nfeature is not enabled the key is omitted from the response\nentirely, rather than returned as an empty array; it becomes\nrequired once the feature is generally available.\n\nAI investigations for this alert that the caller has permission\nto view, newest first; empty when none are visible. An investigation\nis started either automatically, when the alert's monitor has AI\ntriaging enabled, or by a user from the alert.\n"
          },
          "automaticInvestigation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Alert-AutomaticInvestigation"
              },
              {
                "type": "null"
              }
            ],
            "description": "The current state or terminal result of the automatic AI\ninvestigation attempt for this alert. Null when automatic\ninvestigation was not enabled or no attempt was made.\n\nOptional field tied to a feature under development. Where that\nfeature is not enabled the key is omitted from the response,\nmatching `aiChats`.\n"
          },
          "resolvedServiceBinding": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Alert-ResolvedServiceBinding"
              },
              {
                "type": "null"
              }
            ],
            "description": "Service this alert is attributed to. Omitted only when the alert's monitor\nhas no service binding. serviceName, environment, and serviceNamespace are\nempty strings when that value is missing. serviceType is left out when\nserviceName is empty.\n"
          },
          "stats": {
            "$ref": "#/components/schemas/Alert-ActionStats",
            "description": "Action statistics for this alert. Only included when expand=true."
          }
        }
      }
    },
    "parameters": {
      "ExpandParam": {
        "name": "expand",
        "in": "query",
        "description": "Whether to expand resources referenced in the response to include additional fields",
        "schema": {
          "type": "boolean"
        }
      }
    },
    "responses": {
      "ErrorResponse-400": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-404": {
        "description": "Resource not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-429": {
        "description": "Rate limit reached",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-5XX": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      }
    }
  }
}
````