import * as z from "zod"; import { AlertRouteEscalationBindingPayloadV2, AlertRouteEscalationBindingPayloadV2$Outbound } from "./alertrouteescalationbindingpayloadv2.js"; import { AlertRouteIncidentTemplatePayloadV2, AlertRouteIncidentTemplatePayloadV2$Outbound } from "./alertrouteincidenttemplatepayloadv2.js"; import { ConditionGroupPayloadV2, ConditionGroupPayloadV2$Outbound } from "./conditiongrouppayloadv2.js"; import { ExpressionPayloadV2, ExpressionPayloadV2$Outbound } from "./expressionpayloadv2.js"; import { GroupingKeyV2, GroupingKeyV2$Outbound } from "./groupingkeyv2.js"; export type CreateRequestBody = { /** * Legacy field - the alert sources that will match this alert route */ alertSourceIds?: Array | undefined; /** * Should triage incidents be declined when alerts are resolved? */ autoDeclineEnabled?: boolean | undefined; /** * What condition groups must be true for this alert route to fire? */ conditionGroups?: Array | undefined; /** * How long should the escalation defer time be? */ deferTimeSeconds?: number | undefined; /** * Whether this alert route is enabled or not */ enabled?: boolean | undefined; /** * Which escalation paths should this alert route escalate to? */ escalationBindings?: Array | undefined; /** * The expressions used in this template */ expressions?: Array | undefined; /** * Which attributes should this alert route use to group alerts? */ groupingKeys?: Array | undefined; /** * How large should the grouping window be? */ groupingWindowSeconds?: number | undefined; /** * What condition groups must be true for this alert route to create an incident? */ incidentConditionGroups?: Array | undefined; /** * Whether this alert route will create incidents or not */ incidentEnabled?: boolean | undefined; /** * The name of this alert route config, for the user's reference */ name?: string | undefined; template?: AlertRouteIncidentTemplatePayloadV2 | undefined; }; /** @internal */ export declare const CreateRequestBody$inboundSchema: z.ZodType; /** @internal */ export type CreateRequestBody$Outbound = { alert_source_ids?: Array | undefined; auto_decline_enabled?: boolean | undefined; condition_groups?: Array | undefined; defer_time_seconds?: number | undefined; enabled?: boolean | undefined; escalation_bindings?: Array | undefined; expressions?: Array | undefined; grouping_keys?: Array | undefined; grouping_window_seconds?: number | undefined; incident_condition_groups?: Array | undefined; incident_enabled?: boolean | undefined; name?: string | undefined; template?: AlertRouteIncidentTemplatePayloadV2$Outbound | undefined; }; /** @internal */ export declare const CreateRequestBody$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CreateRequestBody$ { /** @deprecated use `CreateRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateRequestBody$Outbound` instead. */ type Outbound = CreateRequestBody$Outbound; } //# sourceMappingURL=createrequestbody.d.ts.map