PgBeam Docs
Anomalies

updateAnomalyAlert

Triage an anomaly alert

Updates the triage status of an anomaly alert (acknowledge or resolve).

Usage

const result = await api.anomalies.updateAnomalyAlert({
  pathParams: { project_id: "prj_xxx", anomaly_id: "ano_xxx" },
  body: {
    status: "acknowledged",
  },
});

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).
pathParams.anomaly_idstringYesUnique anomaly alert identifier (prefixed, e.g. ano_xxx).
body.status"acknowledged" | "resolved"YesNew triage state for the alert.

Response

Promise<AnomalyAlert> — the updated anomaly alert.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.anomalies.updateAnomalyAlert({
  pathParams: { project_id: "prj_xxx", anomaly_id: "ano_xxx" },
  body: {
    status: "acknowledged",
  },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.

On this page