import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Important Notes * * ### Required Alert Source Fields * * When configuring alert sources, the following alert source fields are **required** and **cannot be deleted**: * - `title` - Alert title field * - `description` - Alert description field * - `externalUrl` - Alert source URL/external URL field * * **Important:** You must use **data sources** (not resources) to reference these required alert fields, as they cannot be modified or deleted by users. See the example below for the correct implementation. * * ## Example Usage * * ## Import * * rootly.AlertsSource can be imported using the `import` command. * * ```sh * $ pulumi import rootly:index/alertsSource:AlertsSource primary a816421c-6ceb-481a-87c4-585e47451f24 * ``` * * Or using an `import` block. * * Locate the resource id in the web app, or retrieve it by listing resources through the API if it's not visible in the web app. * * HCL can be generated from the import block using the `-generate-config-out` flag. * * ```sh * pulumi preview -generate-config-out=generated.tf * ``` */ export declare class AlertsSource extends pulumi.CustomResource { /** * Get an existing AlertsSource resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AlertsSourceState, opts?: pulumi.CustomResourceOptions): AlertsSource; /** * Returns true if the given object is an instance of AlertsSource. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AlertsSource; /** * List of alert fields to be added to the alert source. Note: This attribute requires the alert field feature to be enabled on your account. Contact Rootly customer support if you need assistance with this feature. */ readonly alertSourceFieldsAttributes: pulumi.Output; /** * List of rules that define the conditions under which the alert urgency will be set automatically based on the alert payload */ readonly alertSourceUrgencyRulesAttributes: pulumi.Output; /** * Note that when alert fields are enabled at the team level, alert template attributes cannot be provided. Use `alertSourceFieldsAttributes` instead. */ readonly alertTemplateAttributes: pulumi.Output; /** * ID for the default alert urgency assigned to this alert source */ readonly alertUrgencyId: pulumi.Output; /** * Toggle alert deduplication using deduplication key. If enabled, deduplication*key*kind and deduplication*key*path are required.. Value must be one of true or false */ readonly deduplicateAlertsByKey: pulumi.Output; /** * Kind of deduplication key.. Value must be one of `payload`. */ readonly deduplicationKeyKind: pulumi.Output; /** * Path to deduplication key. This is a JSON Path to extract the deduplication key from the request body. */ readonly deduplicationKeyPath: pulumi.Output; /** * Regular expression to extract key from value found at key path. */ readonly deduplicationKeyRegexp: pulumi.Output; /** * The email generated for email alert sources */ readonly email: pulumi.Output; /** * The name of the alert source */ readonly name: pulumi.Output; /** * List of team IDs that will own the alert source */ readonly ownerGroupIds: pulumi.Output; /** * Provide additional attributes for email alerts source */ readonly resolutionRuleAttributes: pulumi.Output; /** * The secret used to authenticate non-email alert sources */ readonly secret: pulumi.Output; /** * The alert source type. Value must be one of `email`, `appDynamics`, `catchpoint`, `datadog`, `dynatrace`, `alertmanager`, `googleCloud`, `grafana`, `sentry`, `genericWebhook`, `cloudWatch`, `awsSns`, `checkly`, `azure`, `newRelic`, `splunk`, `chronosphere`, `appOptics`, `bugSnag`, `honeycomb`, `monteCarlo`, `nagios`, `prtg`. */ readonly sourceType: pulumi.Output; /** * Provide additional attributes for generic*webhook alerts source */ readonly sourceableAttributes: pulumi.Output; /** * The status of the alert source. Value must be one of `connected`, `setupComplete`, `setupIncomplete`. */ readonly status: pulumi.Output; /** * The webhook URL generated for non-email alert sources */ readonly webhookEndpoint: pulumi.Output; /** * Create a AlertsSource resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: AlertsSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertsSource resources. */ export interface AlertsSourceState { /** * List of alert fields to be added to the alert source. Note: This attribute requires the alert field feature to be enabled on your account. Contact Rootly customer support if you need assistance with this feature. */ alertSourceFieldsAttributes?: pulumi.Input[] | undefined>; /** * List of rules that define the conditions under which the alert urgency will be set automatically based on the alert payload */ alertSourceUrgencyRulesAttributes?: pulumi.Input[] | undefined>; /** * Note that when alert fields are enabled at the team level, alert template attributes cannot be provided. Use `alertSourceFieldsAttributes` instead. */ alertTemplateAttributes?: pulumi.Input; /** * ID for the default alert urgency assigned to this alert source */ alertUrgencyId?: pulumi.Input; /** * Toggle alert deduplication using deduplication key. If enabled, deduplication*key*kind and deduplication*key*path are required.. Value must be one of true or false */ deduplicateAlertsByKey?: pulumi.Input; /** * Kind of deduplication key.. Value must be one of `payload`. */ deduplicationKeyKind?: pulumi.Input; /** * Path to deduplication key. This is a JSON Path to extract the deduplication key from the request body. */ deduplicationKeyPath?: pulumi.Input; /** * Regular expression to extract key from value found at key path. */ deduplicationKeyRegexp?: pulumi.Input; /** * The email generated for email alert sources */ email?: pulumi.Input; /** * The name of the alert source */ name?: pulumi.Input; /** * List of team IDs that will own the alert source */ ownerGroupIds?: pulumi.Input[] | undefined>; /** * Provide additional attributes for email alerts source */ resolutionRuleAttributes?: pulumi.Input; /** * The secret used to authenticate non-email alert sources */ secret?: pulumi.Input; /** * The alert source type. Value must be one of `email`, `appDynamics`, `catchpoint`, `datadog`, `dynatrace`, `alertmanager`, `googleCloud`, `grafana`, `sentry`, `genericWebhook`, `cloudWatch`, `awsSns`, `checkly`, `azure`, `newRelic`, `splunk`, `chronosphere`, `appOptics`, `bugSnag`, `honeycomb`, `monteCarlo`, `nagios`, `prtg`. */ sourceType?: pulumi.Input; /** * Provide additional attributes for generic*webhook alerts source */ sourceableAttributes?: pulumi.Input; /** * The status of the alert source. Value must be one of `connected`, `setupComplete`, `setupIncomplete`. */ status?: pulumi.Input; /** * The webhook URL generated for non-email alert sources */ webhookEndpoint?: pulumi.Input; } /** * The set of arguments for constructing a AlertsSource resource. */ export interface AlertsSourceArgs { /** * List of alert fields to be added to the alert source. Note: This attribute requires the alert field feature to be enabled on your account. Contact Rootly customer support if you need assistance with this feature. */ alertSourceFieldsAttributes?: pulumi.Input[] | undefined>; /** * List of rules that define the conditions under which the alert urgency will be set automatically based on the alert payload */ alertSourceUrgencyRulesAttributes?: pulumi.Input[] | undefined>; /** * Note that when alert fields are enabled at the team level, alert template attributes cannot be provided. Use `alertSourceFieldsAttributes` instead. */ alertTemplateAttributes?: pulumi.Input; /** * ID for the default alert urgency assigned to this alert source */ alertUrgencyId?: pulumi.Input; /** * Toggle alert deduplication using deduplication key. If enabled, deduplication*key*kind and deduplication*key*path are required.. Value must be one of true or false */ deduplicateAlertsByKey?: pulumi.Input; /** * Kind of deduplication key.. Value must be one of `payload`. */ deduplicationKeyKind?: pulumi.Input; /** * Path to deduplication key. This is a JSON Path to extract the deduplication key from the request body. */ deduplicationKeyPath?: pulumi.Input; /** * Regular expression to extract key from value found at key path. */ deduplicationKeyRegexp?: pulumi.Input; /** * The email generated for email alert sources */ email?: pulumi.Input; /** * The name of the alert source */ name?: pulumi.Input; /** * List of team IDs that will own the alert source */ ownerGroupIds?: pulumi.Input[] | undefined>; /** * Provide additional attributes for email alerts source */ resolutionRuleAttributes?: pulumi.Input; /** * The secret used to authenticate non-email alert sources */ secret?: pulumi.Input; /** * The alert source type. Value must be one of `email`, `appDynamics`, `catchpoint`, `datadog`, `dynatrace`, `alertmanager`, `googleCloud`, `grafana`, `sentry`, `genericWebhook`, `cloudWatch`, `awsSns`, `checkly`, `azure`, `newRelic`, `splunk`, `chronosphere`, `appOptics`, `bugSnag`, `honeycomb`, `monteCarlo`, `nagios`, `prtg`. */ sourceType?: pulumi.Input; /** * Provide additional attributes for generic*webhook alerts source */ sourceableAttributes?: pulumi.Input; /** * The status of the alert source. Value must be one of `connected`, `setupComplete`, `setupIncomplete`. */ status?: pulumi.Input; /** * The webhook URL generated for non-email alert sources */ webhookEndpoint?: pulumi.Input; } //# sourceMappingURL=alertsSource.d.ts.map