/** * 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 { AlertTemplateV2 } from './AlertTemplateV2.js'; import type { AlertSourceAzureDevopsOptionsV2 } from './AlertSourceAzureDevopsOptionsV2.js'; import type { AlertSourceJiraOptionsV2 } from './AlertSourceJiraOptionsV2.js'; import type { AlertSourceRateLimitShardingV2 } from './AlertSourceRateLimitShardingV2.js'; import type { AlertSourceHeartbeatOptionsV2 } from './AlertSourceHeartbeatOptionsV2.js'; import type { ConditionGroupV2 } from './ConditionGroupV2.js'; import type { AlertSourceHTTPCustomOptionsV2 } from './AlertSourceHTTPCustomOptionsV2.js'; import type { AlertSourceEmailOptionsV2 } from './AlertSourceEmailOptionsV2.js'; /** * * @export * @interface AlertSourceV2 */ export interface AlertSourceV2 { /** * URL that can be used to send alert events to this source. This is only set for sources that accept webhook/HTTP events; email sources use the email_address field, and integration-based sources (like Jira) receive events through their native integrations. */ alert_events_url?: string; /** * Whether alerts from this source keep counting down to auto-resolve while attached to an incident. Defaults to true. Has no effect without auto_resolve_timeout_minutes. */ auto_resolve_incident_alerts?: boolean; /** * When set, alerts from this source will automatically resolve after this many minutes. */ auto_resolve_timeout_minutes?: number; /** * */ azure_devops_options?: AlertSourceAzureDevopsOptionsV2; /** * */ email_options?: AlertSourceEmailOptionsV2; /** * Conditions an incoming event must match to be ingested from this source, evaluated against the event's payload and this source's expressions. */ filter_condition_groups?: Array; /** * When set, the team every alert from this source is attributed to. The team attribute is managed from this field: its binding is not returned in the template and cannot be edited directly. */ fixed_team_id?: string; /** * */ heartbeat_options?: AlertSourceHeartbeatOptionsV2; /** * */ http_custom_options?: AlertSourceHTTPCustomOptionsV2; /** * The ID of this alert source */ id: string; /** * */ jira_options?: AlertSourceJiraOptionsV2; /** * Unique name of the alert source */ name: string; /** * IDs of teams that own this alert source */ owning_team_ids?: Array; /** * */ rate_limit_sharding?: AlertSourceRateLimitShardingV2; /** * Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source. */ secret_token?: string; /** * Type of alert source */ source_type: AlertSourceV2SourceTypeEnum; /** * */ template: AlertTemplateV2; } /** * @export */ export declare const AlertSourceV2SourceTypeEnum: { readonly Alertmanager: "alertmanager"; readonly AppOptics: "app_optics"; readonly AzureMonitor: "azure_monitor"; readonly AzureDevops: "azure_devops"; readonly BigPanda: "big_panda"; readonly Bugsnag: "bugsnag"; readonly Checkly: "checkly"; readonly Chronosphere: "chronosphere"; readonly Cloudwatch: "cloudwatch"; readonly Cloudflare: "cloudflare"; readonly Coralogix: "coralogix"; readonly Cronitor: "cronitor"; readonly CrowdstrikeFalcon: "crowdstrike_falcon"; readonly Dash0: "dash0"; readonly Datadog: "datadog"; readonly Dynatrace: "dynatrace"; readonly Elasticsearch: "elasticsearch"; readonly Email: "email"; readonly Expel: "expel"; readonly GitGuardian: "git_guardian"; readonly GithubIssue: "github_issue"; readonly GoogleCloud: "google_cloud"; readonly GoogleSecops: "google_secops"; readonly Grafana: "grafana"; readonly Heartbeat: "heartbeat"; readonly Http: "http"; readonly HttpCustom: "http_custom"; readonly Honeycomb: "honeycomb"; readonly Icinga2: "icinga2"; readonly IncomingCalls: "incoming_calls"; readonly Jira: "jira"; readonly Jsm: "jsm"; readonly Logzio: "logzio"; readonly MonteCarlo: "monte_carlo"; readonly Nagios: "nagios"; readonly NewRelic: "new_relic"; readonly Opsgenie: "opsgenie"; readonly Prtg: "prtg"; readonly PagerDuty: "pager_duty"; readonly Panther: "panther"; readonly Pingdom: "pingdom"; readonly Posthog: "posthog"; readonly Runscope: "runscope"; readonly Sns: "sns"; readonly SalesforceCase: "salesforce_case"; readonly Sentry: "sentry"; readonly SentryMetric: "sentry_metric"; readonly ServiceNow: "service_now"; readonly Splunk: "splunk"; readonly StatusCake: "status_cake"; readonly StatusPageViews: "status_page_views"; readonly SumoLogic: "sumo_logic"; readonly Uptime: "uptime"; readonly Upwind: "upwind"; readonly Vercel: "vercel"; readonly Wiz: "wiz"; readonly Zendesk: "zendesk"; }; export type AlertSourceV2SourceTypeEnum = typeof AlertSourceV2SourceTypeEnum[keyof typeof AlertSourceV2SourceTypeEnum]; /** * Check if a given object implements the AlertSourceV2 interface. */ export declare function instanceOfAlertSourceV2(value: object): value is AlertSourceV2; export declare function AlertSourceV2FromJSON(json: any): AlertSourceV2; export declare function AlertSourceV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertSourceV2; export declare function AlertSourceV2ToJSON(json: any): AlertSourceV2; export declare function AlertSourceV2ToJSONTyped(value?: AlertSourceV2 | null, ignoreDiscriminator?: boolean): any;