/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ExpressionPayloadV2 } from './ExpressionPayloadV2.js'; import type { AlertRouteEscalationConfigPayloadV2 } from './AlertRouteEscalationConfigPayloadV2.js'; import type { AlertRouteChannelConfigPayloadV2 } from './AlertRouteChannelConfigPayloadV2.js'; import type { AlertRouteIncidentTemplatePayloadV2 } from './AlertRouteIncidentTemplatePayloadV2.js'; import type { EngineParamBindingPayloadV2 } from './EngineParamBindingPayloadV2.js'; import type { ConditionGroupPayloadV2 } from './ConditionGroupPayloadV2.js'; import type { AlertRouteIncidentConfigPayloadV2 } from './AlertRouteIncidentConfigPayloadV2.js'; import type { AlertRouteAlertSourcePayloadV2 } from './AlertRouteAlertSourcePayloadV2.js'; /** * * @export * @interface AlertRoutesCreatePayloadV2 */ export interface AlertRoutesCreatePayloadV2 { /** * Which alert sources should this alert route match? */ alert_sources: Array; /** * The channel configuration for this alert route */ channel_config: Array; /** * What condition groups must be true for this alert route to fire? */ condition_groups: Array; /** * The time of creation of this alert route */ created_at?: Date; /** * Whether this alert route is enabled or not */ enabled: boolean; /** * */ escalation_config: AlertRouteEscalationConfigPayloadV2; /** * The expressions used in this template */ expressions: Array; /** * */ incident_config: AlertRouteIncidentConfigPayloadV2; /** * */ incident_template: AlertRouteIncidentTemplatePayloadV2; /** * Whether this alert route is private. Private alert routes will only create private incidents from alerts. */ is_private: boolean; /** * */ message_template?: EngineParamBindingPayloadV2; /** * The name of this alert route config, for the user's reference */ name: string; /** * IDs of teams that own this alert route */ owning_team_ids?: Array; /** * The time of last update of this alert route */ updated_at?: Date; } /** * Check if a given object implements the AlertRoutesCreatePayloadV2 interface. */ export declare function instanceOfAlertRoutesCreatePayloadV2(value: object): value is AlertRoutesCreatePayloadV2; export declare function AlertRoutesCreatePayloadV2FromJSON(json: any): AlertRoutesCreatePayloadV2; export declare function AlertRoutesCreatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertRoutesCreatePayloadV2; export declare function AlertRoutesCreatePayloadV2ToJSON(json: any): AlertRoutesCreatePayloadV2; export declare function AlertRoutesCreatePayloadV2ToJSONTyped(value?: AlertRoutesCreatePayloadV2 | null, ignoreDiscriminator?: boolean): any;