import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a specific alert policy in New Relic that already exists. * More information on Terraform's data sources can be found here. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = newrelic.getAlertChannel({ * name: "foo@example.com", * }); * const fooGetAlertPolicy = newrelic.getAlertPolicy({ * name: "foo policy", * }); * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", { * policyId: fooGetAlertPolicy.then(fooGetAlertPolicy => fooGetAlertPolicy.id), * channelId: foo.then(foo => foo.id), * }); * ``` */ export declare function getAlertPolicy(args: GetAlertPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAlertPolicy. */ export interface GetAlertPolicyArgs { /** * The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. */ accountId?: string; /** * The rollup strategy for the policy, which can have one of the following values: * * `PER_POLICY` - Represents the incident grouping preference **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference. * * `PER_CONDITION` - Represents the incident grouping preference **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference. * * `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference. */ incidentPreference?: string; /** * The name of the alert policy in New Relic. */ name: string; } /** * A collection of values returned by getAlertPolicy. */ export interface GetAlertPolicyResult { readonly accountId: string; /** * The time the policy was created. */ readonly createdAt: string; readonly entityGuid: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The rollup strategy for the policy, which can have one of the following values: * * `PER_POLICY` - Represents the incident grouping preference **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference. * * `PER_CONDITION` - Represents the incident grouping preference **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference. * * `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference. */ readonly incidentPreference?: string; readonly name: string; /** * The time the policy was last updated. */ readonly updatedAt: string; } /** * Use this data source to get information about a specific alert policy in New Relic that already exists. * More information on Terraform's data sources can be found here. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = newrelic.getAlertChannel({ * name: "foo@example.com", * }); * const fooGetAlertPolicy = newrelic.getAlertPolicy({ * name: "foo policy", * }); * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", { * policyId: fooGetAlertPolicy.then(fooGetAlertPolicy => fooGetAlertPolicy.id), * channelId: foo.then(foo => foo.id), * }); * ``` */ export declare function getAlertPolicyOutput(args: GetAlertPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAlertPolicy. */ export interface GetAlertPolicyOutputArgs { /** * The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. */ accountId?: pulumi.Input; /** * The rollup strategy for the policy, which can have one of the following values: * * `PER_POLICY` - Represents the incident grouping preference **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference. * * `PER_CONDITION` - Represents the incident grouping preference **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference. * * `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference. */ incidentPreference?: pulumi.Input; /** * The name of the alert policy in New Relic. */ name: pulumi.Input; } //# sourceMappingURL=getAlertPolicy.d.ts.map