Class NrqlAlertCondition
Use this resource to create and manage NRQL alert conditions in New Relic.
Terms
The term mapping supports the following arguments:
duration- (Required) In minutes, must be in the range of1to120, inclusive.operator- (Optional)above,below, orequal. Defaults toequal.priority- (Optional)criticalorwarning. Defaults tocritical.threshold- (Required) Must be 0 or greater.time_function- (Required)allorany.
NRQL
The nrql attribute supports the following arguments:
query- (Required) The NRQL query to execute for the condition.since_value- (Required) The value to be used in theSINCE <X> MINUTES AGOclause for the NRQL query. Must be between1and20.
Inherited Members
Namespace: Pulumi.NewRelic
Assembly: Pulumi.NewRelic.dll
Syntax
public class NrqlAlertCondition : CustomResource
Constructors
View SourceNrqlAlertCondition(String, NrqlAlertConditionArgs, CustomResourceOptions)
Create a NrqlAlertCondition resource with the given unique name, arguments, and options.
Declaration
public NrqlAlertCondition(string name, NrqlAlertConditionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NrqlAlertConditionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEnabled
Whether to enable the alert condition.
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
ExpectedGroups
Number of expected groups when using outlier detection.
Declaration
public Output<int?> ExpectedGroups { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
IgnoreOverlap
Whether to look for a convergence of groups when using outlier detection.
Declaration
public Output<bool?> IgnoreOverlap { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The title of the condition.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Nrql
A NRQL query.
Declaration
public Output<NrqlAlertConditionNrql> Nrql { get; }
Property Value
| Type | Description |
|---|---|
| Output<NrqlAlertConditionNrql> |
PolicyId
The ID of the policy where this condition should be used.
Declaration
public Output<int> PolicyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
RunbookUrl
Runbook URL to display in notifications.
Declaration
public Output<string> RunbookUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Terms
A list of terms for this condition.
Declaration
public Output<ImmutableArray<NrqlAlertConditionTerm>> Terms { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<NrqlAlertConditionTerm>> |
Type
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ValueFunction
Possible values are single_value, sum.
Declaration
public Output<string> ValueFunction { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ViolationTimeLimitSeconds
Sets a time limit, in seconds, that will automatically force-close a long-lasting violation after the time limit you select. Possible values are 3600, 7200, 14400, 28800, 43200, and 86400.
Declaration
public Output<int?> ViolationTimeLimitSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Methods
View SourceGet(String, Input<String>, NrqlAlertConditionState, CustomResourceOptions)
Get an existing NrqlAlertCondition resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NrqlAlertCondition Get(string name, Input<string> id, NrqlAlertConditionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NrqlAlertConditionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NrqlAlertCondition |