Show / Hide Table of Contents

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 of 1 to 120, inclusive.
  • operator - (Optional) above, below, or equal. Defaults to equal.
  • priority - (Optional) critical or warning. Defaults to critical.
  • threshold - (Required) Must be 0 or greater.
  • time_function - (Required) all or any.

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 the SINCE <X> MINUTES AGO clause for the NRQL query. Must be between 1 and 20.
Inheritance
System.Object
Resource
CustomResource
NrqlAlertCondition
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.NewRelic
Assembly: Pulumi.NewRelic.dll
Syntax
public class NrqlAlertCondition : CustomResource

Constructors

View Source

NrqlAlertCondition(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 Source

Enabled

Whether to enable the alert condition.

Declaration
public Output<bool?> Enabled { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

ExpectedGroups

Number of expected groups when using outlier detection.

Declaration
public Output<int?> ExpectedGroups { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

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>>
View Source

Name

The title of the condition.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Nrql

A NRQL query.

Declaration
public Output<NrqlAlertConditionNrql> Nrql { get; }
Property Value
Type Description
Output<NrqlAlertConditionNrql>
View Source

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>
View Source

RunbookUrl

Runbook URL to display in notifications.

Declaration
public Output<string> RunbookUrl { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Type

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>
View Source

ValueFunction

Possible values are single_value, sum.

Declaration
public Output<string> ValueFunction { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.