GetAlertPolicy
Use this data source to get information about a specific alert policy in New Relic that already exists.
Using GetAlertPolicy
function getAlertPolicy(args: GetAlertPolicyArgs, opts?: InvokeOptions): Promise<GetAlertPolicyResult>function get_alert_policy(account_id=None, incident_preference=None, name=None, opts=None)func LookupAlertPolicy(ctx *Context, args *LookupAlertPolicyArgs, opts ...InvokeOption) (*LookupAlertPolicyResult, error)Note: This function is named
LookupAlertPolicyin the Go SDK.
public static class GetAlertPolicy {
public static Task<GetAlertPolicyResult> InvokeAsync(GetAlertPolicyArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- name str
The name of the alert policy in New Relic.
- account_
id float - incident_
preference str The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
GetAlertPolicy Result
The following output properties are available:
- Created
At string The time the policy was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Updated
At string The time the policy was last updated.
- Account
Id int - Incident
Preference string The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
- Created
At string The time the policy was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Updated
At string The time the policy was last updated.
- Account
Id int - Incident
Preference string The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
- created
At string The time the policy was created.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- updated
At string The time the policy was last updated.
- account
Id number - incident
Preference string The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
- created_
at str The time the policy was created.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- updated_
at str The time the policy was last updated.
- account_
id float - incident_
preference str The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
Package Details
- Repository
- https://github.com/pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelicTerraform Provider.