AlertCondition

Use this resource to create and manage alert conditions for APM, Browser, and Mobile in New Relic.

NOTE: The newrelic.NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. Other condition types may be deprecated in the future and receive fewer product updates.

Terms

The term mapping supports the following arguments:

  • duration - (Required) In minutes, must be in the range of 5 to 120, inclusive.
  • operator - (Optional) above, below, or equal. Defaults to equal.
  • priority - (Optional) critical or warning. Defaults to critical. Terms must include at least one critical priority term
  • threshold - (Required) Must be 0 or greater.
  • time_function - (Required) all or any.

Example Usage

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
    public MyStack()
    {
        var app = Output.Create(NewRelic.GetEntity.InvokeAsync(new NewRelic.GetEntityArgs
        {
            Name = "my-app",
            Type = "APPLICATION",
            Domain = "APM",
        }));
        var fooAlertPolicy = new NewRelic.AlertPolicy("fooAlertPolicy", new NewRelic.AlertPolicyArgs
        {
        });
        var fooAlertCondition = new NewRelic.AlertCondition("fooAlertCondition", new NewRelic.AlertConditionArgs
        {
            PolicyId = fooAlertPolicy.Id,
            Type = "apm_app_metric",
            Entities = 
            {
                app.Apply(app => app.ApplicationId),
            },
            Metric = "apdex",
            RunbookUrl = "https://www.example.com",
            ConditionScope = "application",
            Terms = 
            {
                new NewRelic.Inputs.AlertConditionTermArgs
                {
                    Duration = 5,
                    Operator = "below",
                    Priority = "critical",
                    Threshold = 0.75,
                    TimeFunction = "all",
                },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-newrelic/sdk/v4/go/newrelic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "APPLICATION"
		opt1 := "APM"
		app, err := newrelic.GetEntity(ctx, &newrelic.GetEntityArgs{
			Name:   "my-app",
			Type:   &opt0,
			Domain: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		fooAlertPolicy, err := newrelic.NewAlertPolicy(ctx, "fooAlertPolicy", nil)
		if err != nil {
			return err
		}
		_, err = newrelic.NewAlertCondition(ctx, "fooAlertCondition", &newrelic.AlertConditionArgs{
			PolicyId: fooAlertPolicy.ID(),
			Type:     pulumi.String("apm_app_metric"),
			Entities: pulumi.IntArray{
				pulumi.Int(app.ApplicationId),
			},
			Metric:         pulumi.String("apdex"),
			RunbookUrl:     pulumi.String("https://www.example.com"),
			ConditionScope: pulumi.String("application"),
			Terms: newrelic.AlertConditionTermArray{
				&newrelic.AlertConditionTermArgs{
					Duration:     pulumi.Int(5),
					Operator:     pulumi.String("below"),
					Priority:     pulumi.String("critical"),
					Threshold:    pulumi.Float64(0.75),
					TimeFunction: pulumi.String("all"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_newrelic as newrelic

app = newrelic.get_entity(name="my-app",
    type="APPLICATION",
    domain="APM")
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
foo_alert_condition = newrelic.AlertCondition("fooAlertCondition",
    policy_id=foo_alert_policy.id,
    type="apm_app_metric",
    entities=[app.application_id],
    metric="apdex",
    runbook_url="https://www.example.com",
    condition_scope="application",
    terms=[newrelic.AlertConditionTermArgs(
        duration=5,
        operator="below",
        priority="critical",
        threshold=0.75,
        time_function="all",
    )])
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const app = newrelic.getEntity({
    name: "my-app",
    type: "APPLICATION",
    domain: "APM",
});
const fooAlertPolicy = new newrelic.AlertPolicy("fooAlertPolicy", {});
const fooAlertCondition = new newrelic.AlertCondition("fooAlertCondition", {
    policyId: fooAlertPolicy.id,
    type: "apm_app_metric",
    entities: [app.then(app => app.applicationId)],
    metric: "apdex",
    runbookUrl: "https://www.example.com",
    conditionScope: "application",
    terms: [{
        duration: 5,
        operator: "below",
        priority: "critical",
        threshold: "0.75",
        timeFunction: "all",
    }],
});

Create a AlertCondition Resource

new AlertCondition(name: string, args: AlertConditionArgs, opts?: CustomResourceOptions);
@overload
def AlertCondition(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   condition_scope: Optional[str] = None,
                   enabled: Optional[bool] = None,
                   entities: Optional[Sequence[int]] = None,
                   gc_metric: Optional[str] = None,
                   metric: Optional[str] = None,
                   name: Optional[str] = None,
                   policy_id: Optional[int] = None,
                   runbook_url: Optional[str] = None,
                   terms: Optional[Sequence[AlertConditionTermArgs]] = None,
                   type: Optional[str] = None,
                   user_defined_metric: Optional[str] = None,
                   user_defined_value_function: Optional[str] = None,
                   violation_close_timer: Optional[int] = None)
@overload
def AlertCondition(resource_name: str,
                   args: AlertConditionArgs,
                   opts: Optional[ResourceOptions] = None)
func NewAlertCondition(ctx *Context, name string, args AlertConditionArgs, opts ...ResourceOption) (*AlertCondition, error)
public AlertCondition(string name, AlertConditionArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AlertConditionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AlertConditionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AlertConditionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AlertConditionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AlertCondition Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The AlertCondition resource accepts the following input properties:

Entities List<int>
The instance IDs associated with this condition.
Metric string

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
PolicyId int
The ID of the policy where this condition should be used.
Terms List<Pulumi.NewRelic.Inputs.AlertConditionTermArgs>
A list of terms for this condition. See Terms below for details.
Type string
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
ConditionScope string
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
Enabled bool
Whether the condition is enabled or not. Defaults to true.
GcMetric string
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
Name string
The title of the condition. Must be between 1 and 64 characters, inclusive.
RunbookUrl string
Runbook URL to display in notifications.
UserDefinedMetric string
A custom metric to be evaluated.
UserDefinedValueFunction string
One of: average, min, max, total, or sample_size.
ViolationCloseTimer int
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.
Entities []int
The instance IDs associated with this condition.
Metric string

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
PolicyId int
The ID of the policy where this condition should be used.
Terms []AlertConditionTerm
A list of terms for this condition. See Terms below for details.
Type string
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
ConditionScope string
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
Enabled bool
Whether the condition is enabled or not. Defaults to true.
GcMetric string
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
Name string
The title of the condition. Must be between 1 and 64 characters, inclusive.
RunbookUrl string
Runbook URL to display in notifications.
UserDefinedMetric string
A custom metric to be evaluated.
UserDefinedValueFunction string
One of: average, min, max, total, or sample_size.
ViolationCloseTimer int
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.
entities number[]
The instance IDs associated with this condition.
metric string

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
policyId number
The ID of the policy where this condition should be used.
terms AlertConditionTermArgs[]
A list of terms for this condition. See Terms below for details.
type string
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
conditionScope string
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
enabled boolean
Whether the condition is enabled or not. Defaults to true.
gcMetric string
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
name string
The title of the condition. Must be between 1 and 64 characters, inclusive.
runbookUrl string
Runbook URL to display in notifications.
userDefinedMetric string
A custom metric to be evaluated.
userDefinedValueFunction string
One of: average, min, max, total, or sample_size.
violationCloseTimer number
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.
entities Sequence[int]
The instance IDs associated with this condition.
metric str

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
policy_id int
The ID of the policy where this condition should be used.
terms Sequence[AlertConditionTermArgs]
A list of terms for this condition. See Terms below for details.
type str
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
condition_scope str
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
enabled bool
Whether the condition is enabled or not. Defaults to true.
gc_metric str
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
name str
The title of the condition. Must be between 1 and 64 characters, inclusive.
runbook_url str
Runbook URL to display in notifications.
user_defined_metric str
A custom metric to be evaluated.
user_defined_value_function str
One of: average, min, max, total, or sample_size.
violation_close_timer int
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.

Outputs

All input properties are implicitly available as output properties. Additionally, the AlertCondition resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing AlertCondition Resource

Get an existing AlertCondition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AlertConditionState, opts?: CustomResourceOptions): AlertCondition
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        condition_scope: Optional[str] = None,
        enabled: Optional[bool] = None,
        entities: Optional[Sequence[int]] = None,
        gc_metric: Optional[str] = None,
        metric: Optional[str] = None,
        name: Optional[str] = None,
        policy_id: Optional[int] = None,
        runbook_url: Optional[str] = None,
        terms: Optional[Sequence[AlertConditionTermArgs]] = None,
        type: Optional[str] = None,
        user_defined_metric: Optional[str] = None,
        user_defined_value_function: Optional[str] = None,
        violation_close_timer: Optional[int] = None) -> AlertCondition
func GetAlertCondition(ctx *Context, name string, id IDInput, state *AlertConditionState, opts ...ResourceOption) (*AlertCondition, error)
public static AlertCondition Get(string name, Input<string> id, AlertConditionState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

ConditionScope string
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
Enabled bool
Whether the condition is enabled or not. Defaults to true.
Entities List<int>
The instance IDs associated with this condition.
GcMetric string
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
Metric string

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
Name string
The title of the condition. Must be between 1 and 64 characters, inclusive.
PolicyId int
The ID of the policy where this condition should be used.
RunbookUrl string
Runbook URL to display in notifications.
Terms List<Pulumi.NewRelic.Inputs.AlertConditionTermArgs>
A list of terms for this condition. See Terms below for details.
Type string
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
UserDefinedMetric string
A custom metric to be evaluated.
UserDefinedValueFunction string
One of: average, min, max, total, or sample_size.
ViolationCloseTimer int
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.
ConditionScope string
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
Enabled bool
Whether the condition is enabled or not. Defaults to true.
Entities []int
The instance IDs associated with this condition.
GcMetric string
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
Metric string

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
Name string
The title of the condition. Must be between 1 and 64 characters, inclusive.
PolicyId int
The ID of the policy where this condition should be used.
RunbookUrl string
Runbook URL to display in notifications.
Terms []AlertConditionTerm
A list of terms for this condition. See Terms below for details.
Type string
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
UserDefinedMetric string
A custom metric to be evaluated.
UserDefinedValueFunction string
One of: average, min, max, total, or sample_size.
ViolationCloseTimer int
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.
conditionScope string
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
enabled boolean
Whether the condition is enabled or not. Defaults to true.
entities number[]
The instance IDs associated with this condition.
gcMetric string
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
metric string

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
name string
The title of the condition. Must be between 1 and 64 characters, inclusive.
policyId number
The ID of the policy where this condition should be used.
runbookUrl string
Runbook URL to display in notifications.
terms AlertConditionTermArgs[]
A list of terms for this condition. See Terms below for details.
type string
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
userDefinedMetric string
A custom metric to be evaluated.
userDefinedValueFunction string
One of: average, min, max, total, or sample_size.
violationCloseTimer number
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.
condition_scope str
application or instance. Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances.
enabled bool
Whether the condition is enabled or not. Defaults to true.
entities Sequence[int]
The instance IDs associated with this condition.
gc_metric str
A valid Garbage Collection metric e.g. GC/G1 Young Generation.
metric str

The metric field accepts parameters based on the type set. One of these metrics based on type:

  • apm_app_metric
  • apdex
  • error_percentage
  • response_time_background
  • response_time_web
  • throughput_background
  • throughput_web
  • user_defined
  • apm_jvm_metric
  • cpu_utilization_time
  • deadlocked_threads
  • gc_cpu_time
  • heap_memory_usage
  • apm_kt_metric
  • apdex
  • error_count
  • error_percentage
  • response_time
  • throughput
  • browser_metric
  • ajax_response_time
  • ajax_throughput
  • dom_processing
  • end_user_apdex
  • network
  • page_rendering
  • page_view_throughput
  • page_views_with_js_errors
  • request_queuing
  • total_page_load
  • user_defined
  • web_application
  • mobile_metric
  • database
  • images
  • json
  • mobile_crash_rate
  • network_error_percentage
  • network
  • status_error_percentage
  • user_defined
  • view_loading
name str
The title of the condition. Must be between 1 and 64 characters, inclusive.
policy_id int
The ID of the policy where this condition should be used.
runbook_url str
Runbook URL to display in notifications.
terms Sequence[AlertConditionTermArgs]
A list of terms for this condition. See Terms below for details.
type str
The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric
user_defined_metric str
A custom metric to be evaluated.
user_defined_value_function str
One of: average, min, max, total, or sample_size.
violation_close_timer int
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24.

Supporting Types

AlertConditionTerm

Duration int
Threshold double
TimeFunction string
Operator string
Priority string
Duration int
Threshold float64
TimeFunction string
Operator string
Priority string
duration number
threshold number
timeFunction string
operator string
priority string

Import

Alert conditions can be imported using notation alert_policy_id:alert_condition_id, e.g.

 $ pulumi import newrelic:index/alertCondition:AlertCondition main 123456:6789012345

Package Details

Repository
https://github.com/pulumi/pulumi-newrelic
License
Apache-2.0
Notes
This Pulumi package is based on the newrelic Terraform Provider.