/** * Datadog Events / Incidents adapter — pulls error-class events from the * Datadog Events API v2 and maps them onto the Mneme `Incident` shape so * the temporal correlation engine can rank them against commits. * * Endpoint: POST https://api.{site}/api/v2/events/search * Auth: DD-API-KEY + DD-APPLICATION-KEY headers * * "Site" is one of: datadoghq.com (US1), us3.datadoghq.com, us5.datadoghq.com, * datadoghq.eu, ap1.datadoghq.com, ddog-gov.com — passed via the `site` option. * * Mneme stays brand-neutral in user-facing copy ("the pager"); the adapter * class name is technically accurate because that's the API it speaks. */ import type { Incident, correlate as CorrelateNS } from "@mneme-ai/core"; export interface DatadogAdapterOptions { apiKey: string; appKey: string; /** "datadoghq.com" (default), "us5.datadoghq.com", "datadoghq.eu", etc. */ site?: string; /** Filter expression, e.g. `source:error,exception` (default) */ filterQuery?: string; /** Cap on events fetched. Default 1000. */ maxEvents?: number; /** Per-request timeout (ms). */ timeoutMs?: number; } export declare class DatadogAdapter implements CorrelateNS.IncidentAdapter { readonly source: "datadog"; private readonly apiKey; private readonly appKey; private readonly site; private readonly filterQuery; private readonly maxEvents; private readonly timeoutMs; constructor(opts: DatadogAdapterOptions); fetch(opts: CorrelateNS.FetchIncidentOptions): Promise; private fetchPage; private mapEvent; } //# sourceMappingURL=datadog.d.ts.map