Package @pulumi/newrelic

var newrelic = require("@pulumi/newrelic");
import * as newrelic from "@pulumi/newrelic";

Modules ▾

class AlertChannel

extends CustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const foo = new newrelic.AlertChannel("foo", {
    configuration: {
        include_json_attachment: "1",
        recipients: "foo@example.com",
    },
    type: "email",
});

constructor

new AlertChannel(name: string, args: AlertChannelArgs, opts?: pulumi.CustomResourceOptions)

Create a AlertChannel resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertChannelState, opts?: pulumi.CustomResourceOptions): AlertChannel

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property configuration

public configuration: pulumi.Output<{[key: string]: any}>;

A map of key / value pairs with channel type specific values.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

The name of the channel.

property type

public type: pulumi.Output<string>;

The type of channel. One of: campfire, email, hipchat, opsgenie, pagerduty, slack, victorops, or webhook.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class AlertCondition

extends CustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const app = pulumi.output(newrelic.getApplication({
    name: "my-app",
}));
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooAlertCondition = new newrelic.AlertCondition("foo", {
    entities: [app.apply(app => app.id)],
    metric: "apdex",
    policyId: fooAlertPolicy.id,
    runbookUrl: "https://www.example.com",
    terms: [{
        duration: 5,
        operator: "below",
        priority: "critical",
        threshold: 0.75,
        timeFunction: "all",
    }],
    type: "apm_app_metric",
});

Terms

The term mapping supports the following arguments:

  • duration - (Required) In minutes, must be: 5, 10, 15, 30, 60, or 120.
  • 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.

constructor

new AlertCondition(name: string, args: AlertConditionArgs, opts?: pulumi.CustomResourceOptions)

Create a AlertCondition resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertConditionState, opts?: pulumi.CustomResourceOptions): AlertCondition

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property conditionScope

public conditionScope: pulumi.Output<string | undefined>;

instance or application. This is required if you are using the JVM plugin in New Relic.

property enabled

public enabled: pulumi.Output<boolean | undefined>;

property entities

public entities: pulumi.Output<number[]>;

The instance IDS associated with this condition.

property gcMetric

public gcMetric: pulumi.Output<string | undefined>;

A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with gc_cpu_time condition type.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property metric

public metric: pulumi.Output<string>;

The metric field accepts parameters based on the type set.

property name

public name: pulumi.Output<string>;

The title of the condition. Must be between 1 and 64 characters, inclusive.

property policyId

public policyId: pulumi.Output<number>;

The ID of the policy where this condition should be used.

property runbookUrl

public runbookUrl: pulumi.Output<string | undefined>;

Runbook URL to display in notifications.

property terms

public terms: pulumi.Output<{
    duration: number;
    operator: string;
    priority: string;
    threshold: number;
    timeFunction: string;
}[]>;

A list of terms for this condition. See Terms below for details.

property type

public type: pulumi.Output<string>;

The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, servers_metric, browser_metric, mobile_metric

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property userDefinedMetric

public userDefinedMetric: pulumi.Output<string | undefined>;

A custom metric to be evaluated.

property userDefinedValueFunction

public userDefinedValueFunction: pulumi.Output<string | undefined>;

One of: average, min, max, total, or sample_size.

property violationCloseTimer

public violationCloseTimer: pulumi.Output<number | undefined>;

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.

class AlertPolicy

extends CustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const foo = new newrelic.AlertPolicy("foo", {});

constructor

new AlertPolicy(name: string, args?: AlertPolicyArgs, opts?: pulumi.CustomResourceOptions)

Create a AlertPolicy resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertPolicyState, opts?: pulumi.CustomResourceOptions): AlertPolicy

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property createdAt

public createdAt: pulumi.Output<string>;

The time the policy was created.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property incidentPreference

public incidentPreference: pulumi.Output<string | undefined>;

The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.

property name

public name: pulumi.Output<string>;

The name of the policy.

property updatedAt

public updatedAt: pulumi.Output<string>;

The time the policy was last updated.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class AlertPolicyChannel

extends CustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const fooAlertChannel = new newrelic.AlertChannel("foo", {
    configuration: {
        include_json_attachment: "1",
        recipients: "foo@example.com",
    },
    type: "email",
});
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
    channelId: fooAlertChannel.id,
    policyId: fooAlertPolicy.id,
});

constructor

new AlertPolicyChannel(name: string, args: AlertPolicyChannelArgs, opts?: pulumi.CustomResourceOptions)

Create a AlertPolicyChannel resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertPolicyChannelState, opts?: pulumi.CustomResourceOptions): AlertPolicyChannel

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property channelId

public channelId: pulumi.Output<number>;

The ID of the channel.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property policyId

public policyId: pulumi.Output<number>;

The ID of the policy.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class Dashboard

extends CustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const exampledash = new newrelic.Dashboard("exampledash", {
    title: "New Relic Terraform Example",
    widgets: [
        {
            column: 1,
            nrql: "SELECT AVERAGE(duration) from Transaction FACET appName TIMESERIES auto",
            row: 1,
            title: "Average Transaction Duration",
            visualization: "faceted_line_chart",
            width: 2,
        },
        {
            column: 3,
            nrql: "SELECT count(*) FROM PageView SINCE 1 week ago",
            row: 1,
            title: "Page Views",
            visualization: "billboard",
        },
    ],
});

Widgets

The widget mapping supports the following arguments:

  • title - (Required) A title for the widget.
  • visualization - (Required) How the widget visualizes data.
  • row - (Required) Row position of widget from top left, starting at 1.
  • column - (Required) Column position of widget from top left, starting at 1.
  • width - (Optional) Width of the widget. Defaults to 1.
  • height - (Optional) Height of the widget. Defaults to 1.
  • notes - (Optional) Description of the widget.
  • nrql - (Optional) Valid NRQL query string. See Writing NRQL Queries for help.

constructor

new Dashboard(name: string, args: DashboardArgs, opts?: pulumi.CustomResourceOptions)

Create a Dashboard resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardState, opts?: pulumi.CustomResourceOptions): Dashboard

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property dashboardUrl

public dashboardUrl: pulumi.Output<string>;

property editable

public editable: pulumi.Output<string | undefined>;

Who can edit the dashboard in an account. Must be read_only, editable_by_owner, editable_by_all, or all. Defaults to editable_by_all.

property filter

public filter: pulumi.Output<{
    attributes: string[];
    eventTypes: string[];
} | undefined>;

property icon

public icon: pulumi.Output<string | undefined>;

The icon for the dashboard. Defaults to bar-chart.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property title

public title: pulumi.Output<string>;

The title of the dashboard.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property visibility

public visibility: pulumi.Output<string | undefined>;

Who can see the dashboard in an account. Must be owner or all. Defaults to all.

property widgets

public widgets: pulumi.Output<{
    column: number;
    height: number;
    notes: string;
    nrql: string;
    row: number;
    title: string;
    visualization: string;
    width: number;
}[] | undefined>;

A widget that describes a visualization. See Widgets below for details.

class InfraAlertCondition

extends CustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooInfraAlertCondition = new newrelic.InfraAlertCondition("foo", {
    comparison: "above",
    critical: {
        duration: 25,
        timeFunction: "all",
        value: 90,
    },
    event: "StorageSample",
    policyId: fooAlertPolicy.id,
    select: "diskUsedPercent",
    type: "infra_metric",
    where: "(`hostname` LIKE '%frontend%')",
});

Thresholds

The critical and warning threshold mapping supports the following arguments:

  • duration - (Required) Identifies the number of minutes the threshold must be passed or met for the alert to trigger. Threshold durations must be between 1 and 60 minutes (inclusive).
  • value - (Optional) Threshold value, computed against the comparison operator. Supported by “infra_metric” and “infra_process_running” alert condition types.
  • time_function - (Optional) Indicates if the condition needs to be sustained or to just break the threshold once; all or any. Supported by the “infra_metric” alert condition type.

constructor

new InfraAlertCondition(name: string, args: InfraAlertConditionArgs, opts?: pulumi.CustomResourceOptions)

Create a InfraAlertCondition resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InfraAlertConditionState, opts?: pulumi.CustomResourceOptions): InfraAlertCondition

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property comparison

public comparison: pulumi.Output<string | undefined>;

The operator used to evaluate the threshold value; “above”, “below”, “equal”.

property createdAt

public createdAt: pulumi.Output<number>;

property critical

public critical: pulumi.Output<{
    duration: number;
    timeFunction: string;
    value: number;
} | undefined>;

Identifies the critical threshold parameters for triggering an alert notification. See Thresholds below for details.

property enabled

public enabled: pulumi.Output<boolean | undefined>;

Set whether to enable the alert condition. Defaults to true.

property event

public event: pulumi.Output<string | undefined>;

The metric event; for example, system metrics, process metrics, storage metrics, or network metrics.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property integrationProvider

public integrationProvider: pulumi.Output<string | undefined>;

For alerts on integrations, use this instead of event.

property name

public name: pulumi.Output<string>;

The Infrastructure alert condition’s name.

property policyId

public policyId: pulumi.Output<number>;

The ID of the alert policy where this condition should be used.

property processWhere

public processWhere: pulumi.Output<string | undefined>;

Any filters applied to processes; for example: "commandName = 'java'".

property select

public select: pulumi.Output<string | undefined>;

The attribute name to identify the type of metric condition; for example, “network”, “process”, “system”, or “storage”.

property type

public type: pulumi.Output<string>;

The type of Infrastructure alert condition: “infra_process_running”, “infra_metric”, or “infra_host_not_reporting”.

property updatedAt

public updatedAt: pulumi.Output<number>;

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property warning

public warning: pulumi.Output<{
    duration: number;
    timeFunction: string;
    value: number;
} | undefined>;

Identifies the warning threshold parameters. See Thresholds below for details.

property where

public where: pulumi.Output<string | undefined>;

Infrastructure host filter for the alert condition.

class NrqlAlertCondition

extends CustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooNrqlAlertCondition = new newrelic.NrqlAlertCondition("foo", {
    enabled: true,
    nrql: {
        query: "SELECT count(*) FROM SyntheticCheck WHERE monitorId = '<monitorId>'",
        sinceValue: "3",
    },
    policyId: fooAlertPolicy.id,
    runbookUrl: "https://www.example.com",
    terms: [{
        duration: 5,
        operator: "below",
        priority: "critical",
        threshold: 1,
        timeFunction: "all",
    }],
    valueFunction: "single_value",
});

Terms

The term mapping supports the following arguments:

  • duration - (Required) In minutes, must be: 1, 2, 3, 4, 5, 10, 15, 30, 60, or 120.
  • 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: 1, 2, 3, 4, or 5.

constructor

new NrqlAlertCondition(name: string, args: NrqlAlertConditionArgs, opts?: pulumi.CustomResourceOptions)

Create a NrqlAlertCondition resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NrqlAlertConditionState, opts?: pulumi.CustomResourceOptions): NrqlAlertCondition

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property enabled

public enabled: pulumi.Output<boolean | undefined>;

Set whether to enable the alert condition. Defaults to true.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

The title of the condition

property nrql

public nrql: pulumi.Output<{
    query: string;
    sinceValue: string;
}>;

A NRQL query. See NRQL below for details.

property policyId

public policyId: pulumi.Output<number>;

The ID of the policy where this condition should be used.

property runbookUrl

public runbookUrl: pulumi.Output<string | undefined>;

Runbook URL to display in notifications.

property terms

public terms: pulumi.Output<{
    duration: number;
    operator: string;
    priority: string;
    threshold: number;
    timeFunction: string;
}[]>;

A list of terms for this condition. See Terms below for details.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property valueFunction

public valueFunction: pulumi.Output<string | undefined>;

Possible values are single_value, sum.

class Provider

extends ProviderResource

The provider type for the newrelic package. By default, resources use package-wide configuration settings, however an explicit Provider instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the documentation for more information.

constructor

new Provider(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions)

Create a Provider resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

function getAlertChannel

getAlertChannel(args: GetAlertChannelArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertChannelResult>

Use this data source to get information about an specific alert channel in New Relic which already exists (e.g newrelic user).

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const fooAlertChannel = pulumi.output(newrelic.getAlertChannel({
    name: "foo@example.com",
}));
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
    channelId: newrelic_alert_channel_foo.id,
    policyId: fooAlertPolicy.id,
});

function getAlertPolicy

getAlertPolicy(args: GetAlertPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertPolicyResult>

Use this data source to get information about an specific alert policy in New Relic which already exists.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const fooAlertChannel = pulumi.output(newrelic.getAlertChannel({
    name: "foo@example.com",
}));
const fooAlertPolicy = pulumi.output(newrelic.getAlertPolicy({
    name: "foo policy",
}));
const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
    channelId: fooAlertChannel.apply(fooAlertChannel => fooAlertChannel.id),
    policyId: fooAlertPolicy.apply(fooAlertPolicy => fooAlertPolicy.id),
});

function getApplication

getApplication(args: GetApplicationArgs, opts?: pulumi.InvokeOptions): Promise<GetApplicationResult>

Use this data source to get information about a specific application in New Relic.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const app = pulumi.output(newrelic.getApplication({
    name: "my-app",
}));
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooAlertCondition = new newrelic.AlertCondition("foo", {
    entities: [app.apply(app => app.id)],
    metric: "apdex",
    policyId: fooAlertPolicy.id,
    runbookUrl: "https://www.example.com",
    terms: [{
        duration: 5,
        operator: "below",
        priority: "critical",
        threshold: 0.75,
        timeFunction: "all",
    }],
    type: "apm_app_metric",
});

function getEnv

getEnv(vars: string[]): string | undefined

function getEnvBoolean

getEnvBoolean(vars: string[]): boolean | undefined

function getEnvNumber

getEnvNumber(vars: string[]): number | undefined

function getKeyTransaction

getKeyTransaction(args: GetKeyTransactionArgs, opts?: pulumi.InvokeOptions): Promise<GetKeyTransactionResult>

Use this data source to get information about a specific key transaction in New Relic.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const txn = pulumi.output(newrelic.getKeyTransaction({
    name: "txn",
}));
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooAlertCondition = new newrelic.AlertCondition("foo", {
    entities: [txn.apply(txn => txn.id)],
    metric: "error_percentage",
    policyId: fooAlertPolicy.id,
    runbookUrl: "https://www.example.com",
    terms: [{
        duration: 5,
        operator: "below",
        priority: "critical",
        threshold: 0.75,
        timeFunction: "all",
    }],
    type: "apm_kt_metric",
});

function requireWithDefault

requireWithDefault<T>(req: () => T, def: T | undefined): T

interface AlertChannelArgs

The set of arguments for constructing a AlertChannel resource.

property configuration

configuration: pulumi.Input<{[key: string]: any}>;

A map of key / value pairs with channel type specific values.

property name

name?: pulumi.Input<string>;

The name of the channel.

property type

type: pulumi.Input<string>;

The type of channel. One of: campfire, email, hipchat, opsgenie, pagerduty, slack, victorops, or webhook.

interface AlertChannelState

Input properties used for looking up and filtering AlertChannel resources.

property configuration

configuration?: pulumi.Input<{[key: string]: any}>;

A map of key / value pairs with channel type specific values.

property name

name?: pulumi.Input<string>;

The name of the channel.

property type

type?: pulumi.Input<string>;

The type of channel. One of: campfire, email, hipchat, opsgenie, pagerduty, slack, victorops, or webhook.

interface AlertConditionArgs

The set of arguments for constructing a AlertCondition resource.

property conditionScope

conditionScope?: pulumi.Input<string>;

instance or application. This is required if you are using the JVM plugin in New Relic.

property enabled

enabled?: pulumi.Input<boolean>;

property entities

entities: pulumi.Input<pulumi.Input<number>[]>;

The instance IDS associated with this condition.

property gcMetric

gcMetric?: pulumi.Input<string>;

A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with gc_cpu_time condition type.

property metric

metric: pulumi.Input<string>;

The metric field accepts parameters based on the type set.

property name

name?: pulumi.Input<string>;

The title of the condition. Must be between 1 and 64 characters, inclusive.

property policyId

policyId: pulumi.Input<number>;

The ID of the policy where this condition should be used.

property runbookUrl

runbookUrl?: pulumi.Input<string>;

Runbook URL to display in notifications.

property terms

terms: pulumi.Input<pulumi.Input<{
    duration: pulumi.Input<number>;
    operator: pulumi.Input<string>;
    priority: pulumi.Input<string>;
    threshold: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
}>[]>;

A list of terms for this condition. See Terms below for details.

property type

type: pulumi.Input<string>;

The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, servers_metric, browser_metric, mobile_metric

property userDefinedMetric

userDefinedMetric?: pulumi.Input<string>;

A custom metric to be evaluated.

property userDefinedValueFunction

userDefinedValueFunction?: pulumi.Input<string>;

One of: average, min, max, total, or sample_size.

property violationCloseTimer

violationCloseTimer?: pulumi.Input<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.

interface AlertConditionState

Input properties used for looking up and filtering AlertCondition resources.

property conditionScope

conditionScope?: pulumi.Input<string>;

instance or application. This is required if you are using the JVM plugin in New Relic.

property enabled

enabled?: pulumi.Input<boolean>;

property entities

entities?: pulumi.Input<pulumi.Input<number>[]>;

The instance IDS associated with this condition.

property gcMetric

gcMetric?: pulumi.Input<string>;

A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with gc_cpu_time condition type.

property metric

metric?: pulumi.Input<string>;

The metric field accepts parameters based on the type set.

property name

name?: pulumi.Input<string>;

The title of the condition. Must be between 1 and 64 characters, inclusive.

property policyId

policyId?: pulumi.Input<number>;

The ID of the policy where this condition should be used.

property runbookUrl

runbookUrl?: pulumi.Input<string>;

Runbook URL to display in notifications.

property terms

terms?: pulumi.Input<pulumi.Input<{
    duration: pulumi.Input<number>;
    operator: pulumi.Input<string>;
    priority: pulumi.Input<string>;
    threshold: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
}>[]>;

A list of terms for this condition. See Terms below for details.

property type

type?: pulumi.Input<string>;

The type of condition. One of: apm_app_metric, apm_jvm_metric, apm_kt_metric, servers_metric, browser_metric, mobile_metric

property userDefinedMetric

userDefinedMetric?: pulumi.Input<string>;

A custom metric to be evaluated.

property userDefinedValueFunction

userDefinedValueFunction?: pulumi.Input<string>;

One of: average, min, max, total, or sample_size.

property violationCloseTimer

violationCloseTimer?: pulumi.Input<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.

interface AlertPolicyArgs

The set of arguments for constructing a AlertPolicy resource.

property incidentPreference

incidentPreference?: pulumi.Input<string>;

The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.

property name

name?: pulumi.Input<string>;

The name of the policy.

interface AlertPolicyChannelArgs

The set of arguments for constructing a AlertPolicyChannel resource.

property channelId

channelId: pulumi.Input<number>;

The ID of the channel.

property policyId

policyId: pulumi.Input<number>;

The ID of the policy.

interface AlertPolicyChannelState

Input properties used for looking up and filtering AlertPolicyChannel resources.

property channelId

channelId?: pulumi.Input<number>;

The ID of the channel.

property policyId

policyId?: pulumi.Input<number>;

The ID of the policy.

interface AlertPolicyState

Input properties used for looking up and filtering AlertPolicy resources.

property createdAt

createdAt?: pulumi.Input<string>;

The time the policy was created.

property incidentPreference

incidentPreference?: pulumi.Input<string>;

The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.

property name

name?: pulumi.Input<string>;

The name of the policy.

property updatedAt

updatedAt?: pulumi.Input<string>;

The time the policy was last updated.

interface DashboardArgs

The set of arguments for constructing a Dashboard resource.

property editable

editable?: pulumi.Input<string>;

Who can edit the dashboard in an account. Must be read_only, editable_by_owner, editable_by_all, or all. Defaults to editable_by_all.

property filter

filter?: pulumi.Input<{
    attributes: pulumi.Input<pulumi.Input<string>[]>;
    eventTypes: pulumi.Input<pulumi.Input<string>[]>;
}>;

property icon

icon?: pulumi.Input<string>;

The icon for the dashboard. Defaults to bar-chart.

property title

title: pulumi.Input<string>;

The title of the dashboard.

property visibility

visibility?: pulumi.Input<string>;

Who can see the dashboard in an account. Must be owner or all. Defaults to all.

property widgets

widgets?: pulumi.Input<pulumi.Input<{
    column: pulumi.Input<number>;
    height: pulumi.Input<number>;
    notes: pulumi.Input<string>;
    nrql: pulumi.Input<string>;
    row: pulumi.Input<number>;
    title: pulumi.Input<string>;
    visualization: pulumi.Input<string>;
    width: pulumi.Input<number>;
}>[]>;

A widget that describes a visualization. See Widgets below for details.

interface DashboardState

Input properties used for looking up and filtering Dashboard resources.

property dashboardUrl

dashboardUrl?: pulumi.Input<string>;

property editable

editable?: pulumi.Input<string>;

Who can edit the dashboard in an account. Must be read_only, editable_by_owner, editable_by_all, or all. Defaults to editable_by_all.

property filter

filter?: pulumi.Input<{
    attributes: pulumi.Input<pulumi.Input<string>[]>;
    eventTypes: pulumi.Input<pulumi.Input<string>[]>;
}>;

property icon

icon?: pulumi.Input<string>;

The icon for the dashboard. Defaults to bar-chart.

property title

title?: pulumi.Input<string>;

The title of the dashboard.

property visibility

visibility?: pulumi.Input<string>;

Who can see the dashboard in an account. Must be owner or all. Defaults to all.

property widgets

widgets?: pulumi.Input<pulumi.Input<{
    column: pulumi.Input<number>;
    height: pulumi.Input<number>;
    notes: pulumi.Input<string>;
    nrql: pulumi.Input<string>;
    row: pulumi.Input<number>;
    title: pulumi.Input<string>;
    visualization: pulumi.Input<string>;
    width: pulumi.Input<number>;
}>[]>;

A widget that describes a visualization. See Widgets below for details.

interface GetAlertChannelArgs

A collection of arguments for invoking getAlertChannel.

property name

name: string;

The name of the alert channel in New Relic.

interface GetAlertChannelResult

A collection of values returned by getAlertChannel.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

property name

name: string;

property policyIds

policyIds: number[];

A list of policy IDs associated with the alert channel.

property type

type: string;

Alert channel type, either: campfire, email, hipchat, opsgenie, pagerduty, slack, victorops, or webhook..

interface GetAlertPolicyArgs

A collection of arguments for invoking getAlertPolicy.

property incidentPreference

incidentPreference?: string;

property name

name: string;

The name of the alert policy in New Relic.

interface GetAlertPolicyResult

A collection of values returned by getAlertPolicy.

property createdAt

createdAt: string;

The time the policy was created.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

property incidentPreference

incidentPreference?: string;

The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.

property name

name: string;

property updatedAt

updatedAt: string;

The time the policy was last updated.

interface GetApplicationArgs

A collection of arguments for invoking getApplication.

property name

name: string;

The name of the application in New Relic.

interface GetApplicationResult

A collection of values returned by getApplication.

property hostIds

hostIds: number[];

A list of host IDs associated with the application.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

property instanceIds

instanceIds: number[];

A list of instance IDs associated with the application.

property name

name: string;

interface GetKeyTransactionArgs

A collection of arguments for invoking getKeyTransaction.

property name

name: string;

The name of the application in New Relic.

interface GetKeyTransactionResult

A collection of values returned by getKeyTransaction.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

property name

name: string;

interface InfraAlertConditionArgs

The set of arguments for constructing a InfraAlertCondition resource.

property comparison

comparison?: pulumi.Input<string>;

The operator used to evaluate the threshold value; “above”, “below”, “equal”.

property critical

critical?: pulumi.Input<{
    duration: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
    value: pulumi.Input<number>;
}>;

Identifies the critical threshold parameters for triggering an alert notification. See Thresholds below for details.

property enabled

enabled?: pulumi.Input<boolean>;

Set whether to enable the alert condition. Defaults to true.

property event

event?: pulumi.Input<string>;

The metric event; for example, system metrics, process metrics, storage metrics, or network metrics.

property integrationProvider

integrationProvider?: pulumi.Input<string>;

For alerts on integrations, use this instead of event.

property name

name?: pulumi.Input<string>;

The Infrastructure alert condition’s name.

property policyId

policyId: pulumi.Input<number>;

The ID of the alert policy where this condition should be used.

property processWhere

processWhere?: pulumi.Input<string>;

Any filters applied to processes; for example: "commandName = 'java'".

property select

select?: pulumi.Input<string>;

The attribute name to identify the type of metric condition; for example, “network”, “process”, “system”, or “storage”.

property type

type: pulumi.Input<string>;

The type of Infrastructure alert condition: “infra_process_running”, “infra_metric”, or “infra_host_not_reporting”.

property warning

warning?: pulumi.Input<{
    duration: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
    value: pulumi.Input<number>;
}>;

Identifies the warning threshold parameters. See Thresholds below for details.

property where

where?: pulumi.Input<string>;

Infrastructure host filter for the alert condition.

interface InfraAlertConditionState

Input properties used for looking up and filtering InfraAlertCondition resources.

property comparison

comparison?: pulumi.Input<string>;

The operator used to evaluate the threshold value; “above”, “below”, “equal”.

property createdAt

createdAt?: pulumi.Input<number>;

property critical

critical?: pulumi.Input<{
    duration: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
    value: pulumi.Input<number>;
}>;

Identifies the critical threshold parameters for triggering an alert notification. See Thresholds below for details.

property enabled

enabled?: pulumi.Input<boolean>;

Set whether to enable the alert condition. Defaults to true.

property event

event?: pulumi.Input<string>;

The metric event; for example, system metrics, process metrics, storage metrics, or network metrics.

property integrationProvider

integrationProvider?: pulumi.Input<string>;

For alerts on integrations, use this instead of event.

property name

name?: pulumi.Input<string>;

The Infrastructure alert condition’s name.

property policyId

policyId?: pulumi.Input<number>;

The ID of the alert policy where this condition should be used.

property processWhere

processWhere?: pulumi.Input<string>;

Any filters applied to processes; for example: "commandName = 'java'".

property select

select?: pulumi.Input<string>;

The attribute name to identify the type of metric condition; for example, “network”, “process”, “system”, or “storage”.

property type

type?: pulumi.Input<string>;

The type of Infrastructure alert condition: “infra_process_running”, “infra_metric”, or “infra_host_not_reporting”.

property updatedAt

updatedAt?: pulumi.Input<number>;

property warning

warning?: pulumi.Input<{
    duration: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
    value: pulumi.Input<number>;
}>;

Identifies the warning threshold parameters. See Thresholds below for details.

property where

where?: pulumi.Input<string>;

Infrastructure host filter for the alert condition.

interface NrqlAlertConditionArgs

The set of arguments for constructing a NrqlAlertCondition resource.

property enabled

enabled?: pulumi.Input<boolean>;

Set whether to enable the alert condition. Defaults to true.

property name

name?: pulumi.Input<string>;

The title of the condition

property nrql

nrql: pulumi.Input<{
    query: pulumi.Input<string>;
    sinceValue: pulumi.Input<string>;
}>;

A NRQL query. See NRQL below for details.

property policyId

policyId: pulumi.Input<number>;

The ID of the policy where this condition should be used.

property runbookUrl

runbookUrl?: pulumi.Input<string>;

Runbook URL to display in notifications.

property terms

terms: pulumi.Input<pulumi.Input<{
    duration: pulumi.Input<number>;
    operator: pulumi.Input<string>;
    priority: pulumi.Input<string>;
    threshold: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
}>[]>;

A list of terms for this condition. See Terms below for details.

property valueFunction

valueFunction?: pulumi.Input<string>;

Possible values are single_value, sum.

interface NrqlAlertConditionState

Input properties used for looking up and filtering NrqlAlertCondition resources.

property enabled

enabled?: pulumi.Input<boolean>;

Set whether to enable the alert condition. Defaults to true.

property name

name?: pulumi.Input<string>;

The title of the condition

property nrql

nrql?: pulumi.Input<{
    query: pulumi.Input<string>;
    sinceValue: pulumi.Input<string>;
}>;

A NRQL query. See NRQL below for details.

property policyId

policyId?: pulumi.Input<number>;

The ID of the policy where this condition should be used.

property runbookUrl

runbookUrl?: pulumi.Input<string>;

Runbook URL to display in notifications.

property terms

terms?: pulumi.Input<pulumi.Input<{
    duration: pulumi.Input<number>;
    operator: pulumi.Input<string>;
    priority: pulumi.Input<string>;
    threshold: pulumi.Input<number>;
    timeFunction: pulumi.Input<string>;
}>[]>;

A list of terms for this condition. See Terms below for details.

property valueFunction

valueFunction?: pulumi.Input<string>;

Possible values are single_value, sum.

interface ProviderArgs

The set of arguments for constructing a Provider resource.

property apiKey

apiKey?: pulumi.Input<string>;

property apiUrl

apiUrl?: pulumi.Input<string>;

property infraApiUrl

infraApiUrl?: pulumi.Input<string>;