Zod schemas representing Datadog monitor, dashboard, SLO, and incident entities.
// Source: https://github.com/corsairdev/corsair | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod';
/**
* Entities stored locally. Monitors, dashboards, SLOs, and incidents are the
* resources agents revisit across conversations (status checks, follow-ups),
* so their identity and summary fields are cached; high-churn query results
* (logs, spans, metrics, hosts) are always fetched live.
*/
export const DatadogMonitorEntity = z.object({
id: z.string(),
name: z.string().optional(),
type: z.string().optional(),
query: z.string().optional(),
message: z.string().optional(),
overallState: z.string().optional(),
tags: z.array(z.string()).optional(),
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key