newrelic

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

Package newrelic exports types, functions, subpackages for provisioning newrelic resources.// A Pulumi package for creating and managing New Relic resources.

> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-newrelic) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, > first check the [`pulumi/pulumi-newrelic` repo](https://github.com/pulumi/pulumi-newrelic/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-providers/terraform-provider-newrelic` repo](https://github.com/terraform-providers/terraform-provider-newrelic/issues).

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertChannel

type AlertChannel struct {
	pulumi.CustomResourceState

	// A nested block that describes an alert channel configuration.  Only one config block is permitted per alert channel definition.  See Nested config blocks below for details.
	Config AlertChannelConfigPtrOutput `pulumi:"config"`
	// **Deprecated** (Optional) A map of key/value pairs with channel type specific values. This argument is deprecated.  Use the `config` argument instead.
	Configuration pulumi.MapOutput `pulumi:"configuration"`
	// The name of the channel.
	Name pulumi.StringOutput `pulumi:"name"`
	// The type of channel.  One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`.
	Type pulumi.StringOutput `pulumi:"type"`
}

Use this resource to create and manage New Relic alert policies.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/r/alert_channel.html.markdown.

func GetAlertChannel

func GetAlertChannel(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertChannelState, opts ...pulumi.ResourceOption) (*AlertChannel, error)

GetAlertChannel gets an existing AlertChannel resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlertChannel

func NewAlertChannel(ctx *pulumi.Context,
	name string, args *AlertChannelArgs, opts ...pulumi.ResourceOption) (*AlertChannel, error)

NewAlertChannel registers a new resource with the given unique name, arguments, and options.

type AlertChannelArgs

type AlertChannelArgs struct {
	// A nested block that describes an alert channel configuration.  Only one config block is permitted per alert channel definition.  See Nested config blocks below for details.
	Config AlertChannelConfigPtrInput
	// **Deprecated** (Optional) A map of key/value pairs with channel type specific values. This argument is deprecated.  Use the `config` argument instead.
	Configuration pulumi.MapInput
	// The name of the channel.
	Name pulumi.StringPtrInput
	// The type of channel.  One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`.
	Type pulumi.StringInput
}

The set of arguments for constructing a AlertChannel resource.

func (AlertChannelArgs) ElementType added in v1.5.0

func (AlertChannelArgs) ElementType() reflect.Type

type AlertChannelConfig added in v1.5.0

type AlertChannelConfig struct {
	ApiKey                *string           `pulumi:"apiKey"`
	AuthPassword          *string           `pulumi:"authPassword"`
	AuthType              *string           `pulumi:"authType"`
	AuthUsername          *string           `pulumi:"authUsername"`
	BaseUrl               *string           `pulumi:"baseUrl"`
	Channel               *string           `pulumi:"channel"`
	Headers               map[string]string `pulumi:"headers"`
	HeadersString         *string           `pulumi:"headersString"`
	IncludeJsonAttachment *string           `pulumi:"includeJsonAttachment"`
	Key                   *string           `pulumi:"key"`
	Payload               map[string]string `pulumi:"payload"`
	PayloadString         *string           `pulumi:"payloadString"`
	PayloadType           *string           `pulumi:"payloadType"`
	Recipients            *string           `pulumi:"recipients"`
	Region                *string           `pulumi:"region"`
	RouteKey              *string           `pulumi:"routeKey"`
	ServiceKey            *string           `pulumi:"serviceKey"`
	Tags                  *string           `pulumi:"tags"`
	Teams                 *string           `pulumi:"teams"`
	Url                   *string           `pulumi:"url"`
	UserId                *string           `pulumi:"userId"`
}

type AlertChannelConfigArgs added in v1.5.0

type AlertChannelConfigArgs struct {
	ApiKey                pulumi.StringPtrInput `pulumi:"apiKey"`
	AuthPassword          pulumi.StringPtrInput `pulumi:"authPassword"`
	AuthType              pulumi.StringPtrInput `pulumi:"authType"`
	AuthUsername          pulumi.StringPtrInput `pulumi:"authUsername"`
	BaseUrl               pulumi.StringPtrInput `pulumi:"baseUrl"`
	Channel               pulumi.StringPtrInput `pulumi:"channel"`
	Headers               pulumi.StringMapInput `pulumi:"headers"`
	HeadersString         pulumi.StringPtrInput `pulumi:"headersString"`
	IncludeJsonAttachment pulumi.StringPtrInput `pulumi:"includeJsonAttachment"`
	Key                   pulumi.StringPtrInput `pulumi:"key"`
	Payload               pulumi.StringMapInput `pulumi:"payload"`
	PayloadString         pulumi.StringPtrInput `pulumi:"payloadString"`
	PayloadType           pulumi.StringPtrInput `pulumi:"payloadType"`
	Recipients            pulumi.StringPtrInput `pulumi:"recipients"`
	Region                pulumi.StringPtrInput `pulumi:"region"`
	RouteKey              pulumi.StringPtrInput `pulumi:"routeKey"`
	ServiceKey            pulumi.StringPtrInput `pulumi:"serviceKey"`
	Tags                  pulumi.StringPtrInput `pulumi:"tags"`
	Teams                 pulumi.StringPtrInput `pulumi:"teams"`
	Url                   pulumi.StringPtrInput `pulumi:"url"`
	UserId                pulumi.StringPtrInput `pulumi:"userId"`
}

func (AlertChannelConfigArgs) ElementType added in v1.5.0

func (AlertChannelConfigArgs) ElementType() reflect.Type

func (AlertChannelConfigArgs) ToAlertChannelConfigOutput added in v1.5.0

func (i AlertChannelConfigArgs) ToAlertChannelConfigOutput() AlertChannelConfigOutput

func (AlertChannelConfigArgs) ToAlertChannelConfigOutputWithContext added in v1.5.0

func (i AlertChannelConfigArgs) ToAlertChannelConfigOutputWithContext(ctx context.Context) AlertChannelConfigOutput

func (AlertChannelConfigArgs) ToAlertChannelConfigPtrOutput added in v1.5.0

func (i AlertChannelConfigArgs) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput

func (AlertChannelConfigArgs) ToAlertChannelConfigPtrOutputWithContext added in v1.5.0

func (i AlertChannelConfigArgs) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput

type AlertChannelConfigInput added in v1.5.0

type AlertChannelConfigInput interface {
	pulumi.Input

	ToAlertChannelConfigOutput() AlertChannelConfigOutput
	ToAlertChannelConfigOutputWithContext(context.Context) AlertChannelConfigOutput
}

type AlertChannelConfigOutput added in v1.5.0

type AlertChannelConfigOutput struct{ *pulumi.OutputState }

func (AlertChannelConfigOutput) ApiKey added in v1.5.0

func (AlertChannelConfigOutput) AuthPassword added in v1.5.0

func (AlertChannelConfigOutput) AuthType added in v1.5.0

func (AlertChannelConfigOutput) AuthUsername added in v1.5.0

func (AlertChannelConfigOutput) BaseUrl added in v1.5.0

func (AlertChannelConfigOutput) Channel added in v1.5.0

func (AlertChannelConfigOutput) ElementType added in v1.5.0

func (AlertChannelConfigOutput) ElementType() reflect.Type

func (AlertChannelConfigOutput) Headers added in v1.5.0

func (AlertChannelConfigOutput) HeadersString added in v1.6.1

func (AlertChannelConfigOutput) IncludeJsonAttachment added in v1.5.0

func (o AlertChannelConfigOutput) IncludeJsonAttachment() pulumi.StringPtrOutput

func (AlertChannelConfigOutput) Key added in v1.5.0

func (AlertChannelConfigOutput) Payload added in v1.5.0

func (AlertChannelConfigOutput) PayloadString added in v1.6.1

func (AlertChannelConfigOutput) PayloadType added in v1.5.0

func (AlertChannelConfigOutput) Recipients added in v1.5.0

func (AlertChannelConfigOutput) Region added in v1.5.0

func (AlertChannelConfigOutput) RouteKey added in v1.5.0

func (AlertChannelConfigOutput) ServiceKey added in v1.5.0

func (AlertChannelConfigOutput) Tags added in v1.5.0

func (AlertChannelConfigOutput) Teams added in v1.5.0

func (AlertChannelConfigOutput) ToAlertChannelConfigOutput added in v1.5.0

func (o AlertChannelConfigOutput) ToAlertChannelConfigOutput() AlertChannelConfigOutput

func (AlertChannelConfigOutput) ToAlertChannelConfigOutputWithContext added in v1.5.0

func (o AlertChannelConfigOutput) ToAlertChannelConfigOutputWithContext(ctx context.Context) AlertChannelConfigOutput

func (AlertChannelConfigOutput) ToAlertChannelConfigPtrOutput added in v1.5.0

func (o AlertChannelConfigOutput) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput

func (AlertChannelConfigOutput) ToAlertChannelConfigPtrOutputWithContext added in v1.5.0

func (o AlertChannelConfigOutput) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput

func (AlertChannelConfigOutput) Url added in v1.5.0

func (AlertChannelConfigOutput) UserId added in v1.5.0

type AlertChannelConfigPtrInput added in v1.5.0

type AlertChannelConfigPtrInput interface {
	pulumi.Input

	ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput
	ToAlertChannelConfigPtrOutputWithContext(context.Context) AlertChannelConfigPtrOutput
}

func AlertChannelConfigPtr added in v1.5.0

func AlertChannelConfigPtr(v *AlertChannelConfigArgs) AlertChannelConfigPtrInput

type AlertChannelConfigPtrOutput added in v1.5.0

type AlertChannelConfigPtrOutput struct{ *pulumi.OutputState }

func (AlertChannelConfigPtrOutput) ApiKey added in v1.5.0

func (AlertChannelConfigPtrOutput) AuthPassword added in v1.5.0

func (AlertChannelConfigPtrOutput) AuthType added in v1.5.0

func (AlertChannelConfigPtrOutput) AuthUsername added in v1.5.0

func (AlertChannelConfigPtrOutput) BaseUrl added in v1.5.0

func (AlertChannelConfigPtrOutput) Channel added in v1.5.0

func (AlertChannelConfigPtrOutput) Elem added in v1.5.0

func (AlertChannelConfigPtrOutput) ElementType added in v1.5.0

func (AlertChannelConfigPtrOutput) Headers added in v1.5.0

func (AlertChannelConfigPtrOutput) HeadersString added in v1.6.1

func (AlertChannelConfigPtrOutput) IncludeJsonAttachment added in v1.5.0

func (o AlertChannelConfigPtrOutput) IncludeJsonAttachment() pulumi.StringPtrOutput

func (AlertChannelConfigPtrOutput) Key added in v1.5.0

func (AlertChannelConfigPtrOutput) Payload added in v1.5.0

func (AlertChannelConfigPtrOutput) PayloadString added in v1.6.1

func (AlertChannelConfigPtrOutput) PayloadType added in v1.5.0

func (AlertChannelConfigPtrOutput) Recipients added in v1.5.0

func (AlertChannelConfigPtrOutput) Region added in v1.5.0

func (AlertChannelConfigPtrOutput) RouteKey added in v1.5.0

func (AlertChannelConfigPtrOutput) ServiceKey added in v1.5.0

func (AlertChannelConfigPtrOutput) Tags added in v1.5.0

func (AlertChannelConfigPtrOutput) Teams added in v1.5.0

func (AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutput added in v1.5.0

func (o AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput

func (AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutputWithContext added in v1.5.0

func (o AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput

func (AlertChannelConfigPtrOutput) Url added in v1.5.0

func (AlertChannelConfigPtrOutput) UserId added in v1.5.0

type AlertChannelState

type AlertChannelState struct {
	// A nested block that describes an alert channel configuration.  Only one config block is permitted per alert channel definition.  See Nested config blocks below for details.
	Config AlertChannelConfigPtrInput
	// **Deprecated** (Optional) A map of key/value pairs with channel type specific values. This argument is deprecated.  Use the `config` argument instead.
	Configuration pulumi.MapInput
	// The name of the channel.
	Name pulumi.StringPtrInput
	// The type of channel.  One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`.
	Type pulumi.StringPtrInput
}

func (AlertChannelState) ElementType added in v1.5.0

func (AlertChannelState) ElementType() reflect.Type

type AlertCondition

type AlertCondition struct {
	pulumi.CustomResourceState

	// `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](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
	ConditionScope pulumi.StringPtrOutput `pulumi:"conditionScope"`
	// Whether the condition is enabled or not. Defaults to true.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The instance IDs associated with this condition.
	Entities pulumi.IntArrayOutput `pulumi:"entities"`
	// A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
	GcMetric pulumi.StringPtrOutput `pulumi:"gcMetric"`
	// The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
	// * `apmAppMetric`
	// * `apdex`
	// * `errorPercentage`
	// * `responseTimeBackground`
	// * `responseTimeWeb`
	// * `throughputBackground`
	// * `throughputWeb`
	// * `userDefined`
	// * `apmKtMetric`
	// * `apdex`
	// * `errorCount`
	// * `errorPercentage`
	// * `responseTime`
	// * `throughput`
	// * `browserMetric`
	// * `ajaxResponseTime`
	// * `ajaxThroughput`
	// * `domProcessing`
	// * `endUserApdex`
	// * `network`
	// * `pageRendering`
	// * `pageViewThroughput`
	// * `pageViewsWithJsErrors`
	// * `requestQueuing`
	// * `totalPageLoad`
	// * `userDefined`
	// * `webApplication`
	// * `mobileMetric`
	// * `database`
	// * `images`
	// * `json`
	// * `mobileCrashRate`
	// * `networkErrorPercentage`
	// * `network`
	// * `statusErrorPercentage`
	// * `userDefined`
	// * `viewLoading`
	Metric pulumi.StringOutput `pulumi:"metric"`
	// The title of the condition. Must be between 1 and 64 characters, inclusive.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"`
	// A list of terms for this condition. See Terms below for details.
	Terms AlertConditionTermArrayOutput `pulumi:"terms"`
	// The type of condition. One of: `apmAppMetric`, `apmKtMetric`, `browserMetric`, `mobileMetric`
	Type pulumi.StringOutput `pulumi:"type"`
	// A custom metric to be evaluated.
	UserDefinedMetric pulumi.StringPtrOutput `pulumi:"userDefinedMetric"`
	// One of: `average`, `min`, `max`, `total`, or `sampleSize`.
	UserDefinedValueFunction pulumi.StringPtrOutput `pulumi:"userDefinedValueFunction"`
	// 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`.
	ViolationCloseTimer pulumi.IntPtrOutput `pulumi:"violationCloseTimer"`
}

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

## 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.
  • `timeFunction` - (Required) `all` or `any`.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/r/alert_condition.html.markdown.

func GetAlertCondition

func GetAlertCondition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertConditionState, opts ...pulumi.ResourceOption) (*AlertCondition, error)

GetAlertCondition gets an existing AlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlertCondition

func NewAlertCondition(ctx *pulumi.Context,
	name string, args *AlertConditionArgs, opts ...pulumi.ResourceOption) (*AlertCondition, error)

NewAlertCondition registers a new resource with the given unique name, arguments, and options.

type AlertConditionArgs

type AlertConditionArgs struct {
	// `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](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
	ConditionScope pulumi.StringPtrInput
	// Whether the condition is enabled or not. Defaults to true.
	Enabled pulumi.BoolPtrInput
	// The instance IDs associated with this condition.
	Entities pulumi.IntArrayInput
	// A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
	GcMetric pulumi.StringPtrInput
	// The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
	// * `apmAppMetric`
	// * `apdex`
	// * `errorPercentage`
	// * `responseTimeBackground`
	// * `responseTimeWeb`
	// * `throughputBackground`
	// * `throughputWeb`
	// * `userDefined`
	// * `apmKtMetric`
	// * `apdex`
	// * `errorCount`
	// * `errorPercentage`
	// * `responseTime`
	// * `throughput`
	// * `browserMetric`
	// * `ajaxResponseTime`
	// * `ajaxThroughput`
	// * `domProcessing`
	// * `endUserApdex`
	// * `network`
	// * `pageRendering`
	// * `pageViewThroughput`
	// * `pageViewsWithJsErrors`
	// * `requestQueuing`
	// * `totalPageLoad`
	// * `userDefined`
	// * `webApplication`
	// * `mobileMetric`
	// * `database`
	// * `images`
	// * `json`
	// * `mobileCrashRate`
	// * `networkErrorPercentage`
	// * `network`
	// * `statusErrorPercentage`
	// * `userDefined`
	// * `viewLoading`
	Metric pulumi.StringInput
	// The title of the condition. Must be between 1 and 64 characters, inclusive.
	Name pulumi.StringPtrInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// A list of terms for this condition. See Terms below for details.
	Terms AlertConditionTermArrayInput
	// The type of condition. One of: `apmAppMetric`, `apmKtMetric`, `browserMetric`, `mobileMetric`
	Type pulumi.StringInput
	// A custom metric to be evaluated.
	UserDefinedMetric pulumi.StringPtrInput
	// One of: `average`, `min`, `max`, `total`, or `sampleSize`.
	UserDefinedValueFunction pulumi.StringPtrInput
	// 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`.
	ViolationCloseTimer pulumi.IntPtrInput
}

The set of arguments for constructing a AlertCondition resource.

func (AlertConditionArgs) ElementType added in v1.5.0

func (AlertConditionArgs) ElementType() reflect.Type

type AlertConditionState

type AlertConditionState struct {
	// `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](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
	ConditionScope pulumi.StringPtrInput
	// Whether the condition is enabled or not. Defaults to true.
	Enabled pulumi.BoolPtrInput
	// The instance IDs associated with this condition.
	Entities pulumi.IntArrayInput
	// A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
	GcMetric pulumi.StringPtrInput
	// The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
	// * `apmAppMetric`
	// * `apdex`
	// * `errorPercentage`
	// * `responseTimeBackground`
	// * `responseTimeWeb`
	// * `throughputBackground`
	// * `throughputWeb`
	// * `userDefined`
	// * `apmKtMetric`
	// * `apdex`
	// * `errorCount`
	// * `errorPercentage`
	// * `responseTime`
	// * `throughput`
	// * `browserMetric`
	// * `ajaxResponseTime`
	// * `ajaxThroughput`
	// * `domProcessing`
	// * `endUserApdex`
	// * `network`
	// * `pageRendering`
	// * `pageViewThroughput`
	// * `pageViewsWithJsErrors`
	// * `requestQueuing`
	// * `totalPageLoad`
	// * `userDefined`
	// * `webApplication`
	// * `mobileMetric`
	// * `database`
	// * `images`
	// * `json`
	// * `mobileCrashRate`
	// * `networkErrorPercentage`
	// * `network`
	// * `statusErrorPercentage`
	// * `userDefined`
	// * `viewLoading`
	Metric pulumi.StringPtrInput
	// The title of the condition. Must be between 1 and 64 characters, inclusive.
	Name pulumi.StringPtrInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntPtrInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// A list of terms for this condition. See Terms below for details.
	Terms AlertConditionTermArrayInput
	// The type of condition. One of: `apmAppMetric`, `apmKtMetric`, `browserMetric`, `mobileMetric`
	Type pulumi.StringPtrInput
	// A custom metric to be evaluated.
	UserDefinedMetric pulumi.StringPtrInput
	// One of: `average`, `min`, `max`, `total`, or `sampleSize`.
	UserDefinedValueFunction pulumi.StringPtrInput
	// 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`.
	ViolationCloseTimer pulumi.IntPtrInput
}

func (AlertConditionState) ElementType added in v1.5.0

func (AlertConditionState) ElementType() reflect.Type

type AlertConditionTerm added in v1.5.0

type AlertConditionTerm struct {
	Duration     int     `pulumi:"duration"`
	Operator     *string `pulumi:"operator"`
	Priority     *string `pulumi:"priority"`
	Threshold    float64 `pulumi:"threshold"`
	TimeFunction string  `pulumi:"timeFunction"`
}

type AlertConditionTermArgs added in v1.5.0

type AlertConditionTermArgs struct {
	Duration     pulumi.IntInput       `pulumi:"duration"`
	Operator     pulumi.StringPtrInput `pulumi:"operator"`
	Priority     pulumi.StringPtrInput `pulumi:"priority"`
	Threshold    pulumi.Float64Input   `pulumi:"threshold"`
	TimeFunction pulumi.StringInput    `pulumi:"timeFunction"`
}

func (AlertConditionTermArgs) ElementType added in v1.5.0

func (AlertConditionTermArgs) ElementType() reflect.Type

func (AlertConditionTermArgs) ToAlertConditionTermOutput added in v1.5.0

func (i AlertConditionTermArgs) ToAlertConditionTermOutput() AlertConditionTermOutput

func (AlertConditionTermArgs) ToAlertConditionTermOutputWithContext added in v1.5.0

func (i AlertConditionTermArgs) ToAlertConditionTermOutputWithContext(ctx context.Context) AlertConditionTermOutput

type AlertConditionTermArray added in v1.5.0

type AlertConditionTermArray []AlertConditionTermInput

func (AlertConditionTermArray) ElementType added in v1.5.0

func (AlertConditionTermArray) ElementType() reflect.Type

func (AlertConditionTermArray) ToAlertConditionTermArrayOutput added in v1.5.0

func (i AlertConditionTermArray) ToAlertConditionTermArrayOutput() AlertConditionTermArrayOutput

func (AlertConditionTermArray) ToAlertConditionTermArrayOutputWithContext added in v1.5.0

func (i AlertConditionTermArray) ToAlertConditionTermArrayOutputWithContext(ctx context.Context) AlertConditionTermArrayOutput

type AlertConditionTermArrayInput added in v1.5.0

type AlertConditionTermArrayInput interface {
	pulumi.Input

	ToAlertConditionTermArrayOutput() AlertConditionTermArrayOutput
	ToAlertConditionTermArrayOutputWithContext(context.Context) AlertConditionTermArrayOutput
}

type AlertConditionTermArrayOutput added in v1.5.0

type AlertConditionTermArrayOutput struct{ *pulumi.OutputState }

func (AlertConditionTermArrayOutput) ElementType added in v1.5.0

func (AlertConditionTermArrayOutput) Index added in v1.5.0

func (AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutput added in v1.5.0

func (o AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutput() AlertConditionTermArrayOutput

func (AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutputWithContext added in v1.5.0

func (o AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutputWithContext(ctx context.Context) AlertConditionTermArrayOutput

type AlertConditionTermInput added in v1.5.0

type AlertConditionTermInput interface {
	pulumi.Input

	ToAlertConditionTermOutput() AlertConditionTermOutput
	ToAlertConditionTermOutputWithContext(context.Context) AlertConditionTermOutput
}

type AlertConditionTermOutput added in v1.5.0

type AlertConditionTermOutput struct{ *pulumi.OutputState }

func (AlertConditionTermOutput) Duration added in v1.5.0

func (AlertConditionTermOutput) ElementType added in v1.5.0

func (AlertConditionTermOutput) ElementType() reflect.Type

func (AlertConditionTermOutput) Operator added in v1.5.0

func (AlertConditionTermOutput) Priority added in v1.5.0

func (AlertConditionTermOutput) Threshold added in v1.5.0

func (AlertConditionTermOutput) TimeFunction added in v1.5.0

func (o AlertConditionTermOutput) TimeFunction() pulumi.StringOutput

func (AlertConditionTermOutput) ToAlertConditionTermOutput added in v1.5.0

func (o AlertConditionTermOutput) ToAlertConditionTermOutput() AlertConditionTermOutput

func (AlertConditionTermOutput) ToAlertConditionTermOutputWithContext added in v1.5.0

func (o AlertConditionTermOutput) ToAlertConditionTermOutputWithContext(ctx context.Context) AlertConditionTermOutput

type AlertPolicy

type AlertPolicy struct {
	pulumi.CustomResourceState

	// An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
	// in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
	// imported via terraform import.
	ChannelIds pulumi.IntArrayOutput `pulumi:"channelIds"`
	// The time the policy was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The rollup strategy for the policy.  Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`.  The default is `PER_POLICY`.
	IncidentPreference pulumi.StringPtrOutput `pulumi:"incidentPreference"`
	// The name of the policy.
	Name pulumi.StringOutput `pulumi:"name"`
	// The time the policy was last updated.
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
}

Use this resource to create and manage New Relic alert policies.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/r/alert_policy.html.markdown.

func GetAlertPolicy

func GetAlertPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertPolicyState, opts ...pulumi.ResourceOption) (*AlertPolicy, error)

GetAlertPolicy gets an existing AlertPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlertPolicy

func NewAlertPolicy(ctx *pulumi.Context,
	name string, args *AlertPolicyArgs, opts ...pulumi.ResourceOption) (*AlertPolicy, error)

NewAlertPolicy registers a new resource with the given unique name, arguments, and options.

type AlertPolicyArgs

type AlertPolicyArgs struct {
	// An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
	// in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
	// imported via terraform import.
	ChannelIds pulumi.IntArrayInput
	// The rollup strategy for the policy.  Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`.  The default is `PER_POLICY`.
	IncidentPreference pulumi.StringPtrInput
	// The name of the policy.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a AlertPolicy resource.

func (AlertPolicyArgs) ElementType added in v1.5.0

func (AlertPolicyArgs) ElementType() reflect.Type

type AlertPolicyChannel

type AlertPolicyChannel struct {
	pulumi.CustomResourceState

	// Deprecated. The ID of the channel. Please use the channel_ids argument instead.
	ChannelId pulumi.IntPtrOutput `pulumi:"channelId"`
	// Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid
	// drift your Terraform state.
	ChannelIds pulumi.IntArrayOutput `pulumi:"channelIds"`
	// The ID of the policy.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
}

Use this resource to map alert policies to alert channels in New Relic.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/r/alert_policy_channel.html.markdown.

func GetAlertPolicyChannel

func GetAlertPolicyChannel(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertPolicyChannelState, opts ...pulumi.ResourceOption) (*AlertPolicyChannel, error)

GetAlertPolicyChannel gets an existing AlertPolicyChannel resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlertPolicyChannel

func NewAlertPolicyChannel(ctx *pulumi.Context,
	name string, args *AlertPolicyChannelArgs, opts ...pulumi.ResourceOption) (*AlertPolicyChannel, error)

NewAlertPolicyChannel registers a new resource with the given unique name, arguments, and options.

type AlertPolicyChannelArgs

type AlertPolicyChannelArgs struct {
	// Deprecated. The ID of the channel. Please use the channel_ids argument instead.
	ChannelId pulumi.IntPtrInput
	// Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid
	// drift your Terraform state.
	ChannelIds pulumi.IntArrayInput
	// The ID of the policy.
	PolicyId pulumi.IntInput
}

The set of arguments for constructing a AlertPolicyChannel resource.

func (AlertPolicyChannelArgs) ElementType added in v1.5.0

func (AlertPolicyChannelArgs) ElementType() reflect.Type

type AlertPolicyChannelState

type AlertPolicyChannelState struct {
	// Deprecated. The ID of the channel. Please use the channel_ids argument instead.
	ChannelId pulumi.IntPtrInput
	// Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid
	// drift your Terraform state.
	ChannelIds pulumi.IntArrayInput
	// The ID of the policy.
	PolicyId pulumi.IntPtrInput
}

func (AlertPolicyChannelState) ElementType added in v1.5.0

func (AlertPolicyChannelState) ElementType() reflect.Type

type AlertPolicyState

type AlertPolicyState struct {
	// An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
	// in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
	// imported via terraform import.
	ChannelIds pulumi.IntArrayInput
	// The time the policy was created.
	CreatedAt pulumi.StringPtrInput
	// The rollup strategy for the policy.  Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`.  The default is `PER_POLICY`.
	IncidentPreference pulumi.StringPtrInput
	// The name of the policy.
	Name pulumi.StringPtrInput
	// The time the policy was last updated.
	UpdatedAt pulumi.StringPtrInput
}

func (AlertPolicyState) ElementType added in v1.5.0

func (AlertPolicyState) ElementType() reflect.Type

type Dashboard

type Dashboard struct {
	pulumi.CustomResourceState

	// The URL for viewing the dashboard.
	DashboardUrl pulumi.StringOutput `pulumi:"dashboardUrl"`
	// Determines who can edit the dashboard in an account. Valid values are `all`,  `editableByAll`, `editableByOwner`, or `readOnly`.  Defaults to `editableByAll`.
	Editable pulumi.StringPtrOutput `pulumi:"editable"`
	// A nested block that describes a dashboard filter.  Exactly one nested `filter` block is allowed. See Nested filter block below for details.
	Filter DashboardFilterPtrOutput `pulumi:"filter"`
	// The icon for the dashboard.  Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`.  Defaults to `bar-chart`.
	Icon pulumi.StringPtrOutput `pulumi:"icon"`
	// The title of the dashboard.
	Title pulumi.StringOutput `pulumi:"title"`
	// Determines who can see the dashboard in an account. Valid values are `all` or `owner`.  Defaults to `all`.
	Visibility pulumi.StringPtrOutput `pulumi:"visibility"`
	// A nested block that describes a visualization.  Up to 300 `widget` blocks are allowed in a dashboard definition.  See Nested widget blocks below for details.
	Widgets DashboardWidgetArrayOutput `pulumi:"widgets"`
}

Use this resource to create and manage New Relic dashboards.

## Attribute Refence

In addition to all arguments above, the following attributes are exported:

  • `dashboardUrl` - The URL for viewing the dashboard.

### Nested `widget` blocks

All nested `widget` blocks support the following common arguments:

  • `title` - (Required) A title for the widget.
  • `visualization` - (Required) How the widget visualizes data. Valid values are `billboard`, `gauge`, `billboardComparison`, `facetBarChart`, `facetedLineChart`, `facetPieChart`, `facetTable`, `facetedAreaChart`, `heatmap`, `attributeSheet`, `singleEvent`, `histogram`, `funnel`, `rawJson`, `eventFeed`, `eventTable`, `uniquesList`, `lineChart`, `comparisonLineChart`, `markdown`, and `metricLineChart`.
  • `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. Valid values are `1` to `3` inclusive. Defaults to `1`.
  • `height` - (Optional) Height of the widget. Valid values are `1` to `3` inclusive. Defaults to `1`.
  • `notes` - (Optional) Description of the widget.

Each `visualization` type supports an additional set of arguments:

  • `billboard`, `billboardComparison`:
  • `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
  • `thresholdRed` - (Optional) Threshold above which the displayed value will be styled with a red color.
  • `thresholdYellow` - (Optional) Threshold above which the displayed value will be styled with a yellow color.
  • `gauge`:
  • `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
  • `thresholdRed` - (Required) Threshold above which the displayed value will be styled with a red color.
  • `thresholdYellow` - (Optional) Threshold above which the displayed value will be styled with a yellow color.
  • `facetBarChart`, `facetPieChart`, `facetTable`, `facetedAreaChart`, `facetedLineChart`, or `heatmap`:
  • `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
  • `drilldownDashboardId` - (Optional) The ID of a dashboard to link to from the widget's facets.
  • `attributeSheet`, `comparisonLineChart`, `eventFeed`, `eventTable`, `funnel`, `histogram`, `lineChart`, `rawJson`, `singleEvent`, or `uniquesList`:
  • `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
  • `markdown`:
  • `source` - (Required) The markdown source to be rendered in the widget.
  • `metricLineChart`:
  • `entityIds` - (Required) A collection of entity ids to display data for. These are typically application IDs.
  • `metric` - (Required) A nested block that describes a metric. Nested `metric` blocks support the following arguments:
  • `name` - (Required) The metric name to display.
  • `values` - (Required) The metric values to display.
  • `duration` - (Required) The duration, in ms, of the time window represented in the chart.
  • `endTime` - (Optional) The end time of the time window represented in the chart in epoch time. When not set, the time window will end at the current time.
  • `facet` - (Optional) Can be set to "host" to facet the metric data by host.
  • `limit` - (Optional) The limit of distinct data series to display.
  • `applicationBreakdown`:
  • `entityIds` - (Required) A collection of entity IDs to display data. These are typically application IDs.

### Nested `filter` block

The optional filter block supports the following arguments:

  • `eventTypes` - (Optional) A list of event types to enable filtering for.
  • `attributes` - (Optional) A list of attributes belonging to the specified event types to enable filtering for.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/r/dashboard.html.markdown.

func GetDashboard

func GetDashboard(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DashboardState, opts ...pulumi.ResourceOption) (*Dashboard, error)

GetDashboard gets an existing Dashboard resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDashboard

func NewDashboard(ctx *pulumi.Context,
	name string, args *DashboardArgs, opts ...pulumi.ResourceOption) (*Dashboard, error)

NewDashboard registers a new resource with the given unique name, arguments, and options.

type DashboardArgs

type DashboardArgs struct {
	// Determines who can edit the dashboard in an account. Valid values are `all`,  `editableByAll`, `editableByOwner`, or `readOnly`.  Defaults to `editableByAll`.
	Editable pulumi.StringPtrInput
	// A nested block that describes a dashboard filter.  Exactly one nested `filter` block is allowed. See Nested filter block below for details.
	Filter DashboardFilterPtrInput
	// The icon for the dashboard.  Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`.  Defaults to `bar-chart`.
	Icon pulumi.StringPtrInput
	// The title of the dashboard.
	Title pulumi.StringInput
	// Determines who can see the dashboard in an account. Valid values are `all` or `owner`.  Defaults to `all`.
	Visibility pulumi.StringPtrInput
	// A nested block that describes a visualization.  Up to 300 `widget` blocks are allowed in a dashboard definition.  See Nested widget blocks below for details.
	Widgets DashboardWidgetArrayInput
}

The set of arguments for constructing a Dashboard resource.

func (DashboardArgs) ElementType added in v1.5.0

func (DashboardArgs) ElementType() reflect.Type

type DashboardFilter added in v1.5.0

type DashboardFilter struct {
	Attributes []string `pulumi:"attributes"`
	EventTypes []string `pulumi:"eventTypes"`
}

type DashboardFilterArgs added in v1.5.0

type DashboardFilterArgs struct {
	Attributes pulumi.StringArrayInput `pulumi:"attributes"`
	EventTypes pulumi.StringArrayInput `pulumi:"eventTypes"`
}

func (DashboardFilterArgs) ElementType added in v1.5.0

func (DashboardFilterArgs) ElementType() reflect.Type

func (DashboardFilterArgs) ToDashboardFilterOutput added in v1.5.0

func (i DashboardFilterArgs) ToDashboardFilterOutput() DashboardFilterOutput

func (DashboardFilterArgs) ToDashboardFilterOutputWithContext added in v1.5.0

func (i DashboardFilterArgs) ToDashboardFilterOutputWithContext(ctx context.Context) DashboardFilterOutput

func (DashboardFilterArgs) ToDashboardFilterPtrOutput added in v1.5.0

func (i DashboardFilterArgs) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput

func (DashboardFilterArgs) ToDashboardFilterPtrOutputWithContext added in v1.5.0

func (i DashboardFilterArgs) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput

type DashboardFilterInput added in v1.5.0

type DashboardFilterInput interface {
	pulumi.Input

	ToDashboardFilterOutput() DashboardFilterOutput
	ToDashboardFilterOutputWithContext(context.Context) DashboardFilterOutput
}

type DashboardFilterOutput added in v1.5.0

type DashboardFilterOutput struct{ *pulumi.OutputState }

func (DashboardFilterOutput) Attributes added in v1.5.0

func (DashboardFilterOutput) ElementType added in v1.5.0

func (DashboardFilterOutput) ElementType() reflect.Type

func (DashboardFilterOutput) EventTypes added in v1.5.0

func (DashboardFilterOutput) ToDashboardFilterOutput added in v1.5.0

func (o DashboardFilterOutput) ToDashboardFilterOutput() DashboardFilterOutput

func (DashboardFilterOutput) ToDashboardFilterOutputWithContext added in v1.5.0

func (o DashboardFilterOutput) ToDashboardFilterOutputWithContext(ctx context.Context) DashboardFilterOutput

func (DashboardFilterOutput) ToDashboardFilterPtrOutput added in v1.5.0

func (o DashboardFilterOutput) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput

func (DashboardFilterOutput) ToDashboardFilterPtrOutputWithContext added in v1.5.0

func (o DashboardFilterOutput) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput

type DashboardFilterPtrInput added in v1.5.0

type DashboardFilterPtrInput interface {
	pulumi.Input

	ToDashboardFilterPtrOutput() DashboardFilterPtrOutput
	ToDashboardFilterPtrOutputWithContext(context.Context) DashboardFilterPtrOutput
}

func DashboardFilterPtr added in v1.5.0

func DashboardFilterPtr(v *DashboardFilterArgs) DashboardFilterPtrInput

type DashboardFilterPtrOutput added in v1.5.0

type DashboardFilterPtrOutput struct{ *pulumi.OutputState }

func (DashboardFilterPtrOutput) Attributes added in v1.5.0

func (DashboardFilterPtrOutput) Elem added in v1.5.0

func (DashboardFilterPtrOutput) ElementType added in v1.5.0

func (DashboardFilterPtrOutput) ElementType() reflect.Type

func (DashboardFilterPtrOutput) EventTypes added in v1.5.0

func (DashboardFilterPtrOutput) ToDashboardFilterPtrOutput added in v1.5.0

func (o DashboardFilterPtrOutput) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput

func (DashboardFilterPtrOutput) ToDashboardFilterPtrOutputWithContext added in v1.5.0

func (o DashboardFilterPtrOutput) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput

type DashboardState

type DashboardState struct {
	// The URL for viewing the dashboard.
	DashboardUrl pulumi.StringPtrInput
	// Determines who can edit the dashboard in an account. Valid values are `all`,  `editableByAll`, `editableByOwner`, or `readOnly`.  Defaults to `editableByAll`.
	Editable pulumi.StringPtrInput
	// A nested block that describes a dashboard filter.  Exactly one nested `filter` block is allowed. See Nested filter block below for details.
	Filter DashboardFilterPtrInput
	// The icon for the dashboard.  Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`.  Defaults to `bar-chart`.
	Icon pulumi.StringPtrInput
	// The title of the dashboard.
	Title pulumi.StringPtrInput
	// Determines who can see the dashboard in an account. Valid values are `all` or `owner`.  Defaults to `all`.
	Visibility pulumi.StringPtrInput
	// A nested block that describes a visualization.  Up to 300 `widget` blocks are allowed in a dashboard definition.  See Nested widget blocks below for details.
	Widgets DashboardWidgetArrayInput
}

func (DashboardState) ElementType added in v1.5.0

func (DashboardState) ElementType() reflect.Type

type DashboardWidget added in v1.5.0

type DashboardWidget struct {
	Column               int                          `pulumi:"column"`
	CompareWiths         []DashboardWidgetCompareWith `pulumi:"compareWiths"`
	DrilldownDashboardId *int                         `pulumi:"drilldownDashboardId"`
	Duration             *int                         `pulumi:"duration"`
	EndTime              *int                         `pulumi:"endTime"`
	EntityIds            []int                        `pulumi:"entityIds"`
	Facet                *string                      `pulumi:"facet"`
	Height               *int                         `pulumi:"height"`
	Limit                *int                         `pulumi:"limit"`
	Metrics              []DashboardWidgetMetric      `pulumi:"metrics"`
	Notes                *string                      `pulumi:"notes"`
	Nrql                 *string                      `pulumi:"nrql"`
	OrderBy              *string                      `pulumi:"orderBy"`
	RawMetricName        *string                      `pulumi:"rawMetricName"`
	Row                  int                          `pulumi:"row"`
	Source               *string                      `pulumi:"source"`
	ThresholdRed         *float64                     `pulumi:"thresholdRed"`
	ThresholdYellow      *float64                     `pulumi:"thresholdYellow"`
	// The title of the dashboard.
	Title         string `pulumi:"title"`
	Visualization string `pulumi:"visualization"`
	WidgetId      *int   `pulumi:"widgetId"`
	Width         *int   `pulumi:"width"`
}

type DashboardWidgetArgs added in v1.5.0

type DashboardWidgetArgs struct {
	Column               pulumi.IntInput                      `pulumi:"column"`
	CompareWiths         DashboardWidgetCompareWithArrayInput `pulumi:"compareWiths"`
	DrilldownDashboardId pulumi.IntPtrInput                   `pulumi:"drilldownDashboardId"`
	Duration             pulumi.IntPtrInput                   `pulumi:"duration"`
	EndTime              pulumi.IntPtrInput                   `pulumi:"endTime"`
	EntityIds            pulumi.IntArrayInput                 `pulumi:"entityIds"`
	Facet                pulumi.StringPtrInput                `pulumi:"facet"`
	Height               pulumi.IntPtrInput                   `pulumi:"height"`
	Limit                pulumi.IntPtrInput                   `pulumi:"limit"`
	Metrics              DashboardWidgetMetricArrayInput      `pulumi:"metrics"`
	Notes                pulumi.StringPtrInput                `pulumi:"notes"`
	Nrql                 pulumi.StringPtrInput                `pulumi:"nrql"`
	OrderBy              pulumi.StringPtrInput                `pulumi:"orderBy"`
	RawMetricName        pulumi.StringPtrInput                `pulumi:"rawMetricName"`
	Row                  pulumi.IntInput                      `pulumi:"row"`
	Source               pulumi.StringPtrInput                `pulumi:"source"`
	ThresholdRed         pulumi.Float64PtrInput               `pulumi:"thresholdRed"`
	ThresholdYellow      pulumi.Float64PtrInput               `pulumi:"thresholdYellow"`
	// The title of the dashboard.
	Title         pulumi.StringInput `pulumi:"title"`
	Visualization pulumi.StringInput `pulumi:"visualization"`
	WidgetId      pulumi.IntPtrInput `pulumi:"widgetId"`
	Width         pulumi.IntPtrInput `pulumi:"width"`
}

func (DashboardWidgetArgs) ElementType added in v1.5.0

func (DashboardWidgetArgs) ElementType() reflect.Type

func (DashboardWidgetArgs) ToDashboardWidgetOutput added in v1.5.0

func (i DashboardWidgetArgs) ToDashboardWidgetOutput() DashboardWidgetOutput

func (DashboardWidgetArgs) ToDashboardWidgetOutputWithContext added in v1.5.0

func (i DashboardWidgetArgs) ToDashboardWidgetOutputWithContext(ctx context.Context) DashboardWidgetOutput

type DashboardWidgetArray added in v1.5.0

type DashboardWidgetArray []DashboardWidgetInput

func (DashboardWidgetArray) ElementType added in v1.5.0

func (DashboardWidgetArray) ElementType() reflect.Type

func (DashboardWidgetArray) ToDashboardWidgetArrayOutput added in v1.5.0

func (i DashboardWidgetArray) ToDashboardWidgetArrayOutput() DashboardWidgetArrayOutput

func (DashboardWidgetArray) ToDashboardWidgetArrayOutputWithContext added in v1.5.0

func (i DashboardWidgetArray) ToDashboardWidgetArrayOutputWithContext(ctx context.Context) DashboardWidgetArrayOutput

type DashboardWidgetArrayInput added in v1.5.0

type DashboardWidgetArrayInput interface {
	pulumi.Input

	ToDashboardWidgetArrayOutput() DashboardWidgetArrayOutput
	ToDashboardWidgetArrayOutputWithContext(context.Context) DashboardWidgetArrayOutput
}

type DashboardWidgetArrayOutput added in v1.5.0

type DashboardWidgetArrayOutput struct{ *pulumi.OutputState }

func (DashboardWidgetArrayOutput) ElementType added in v1.5.0

func (DashboardWidgetArrayOutput) ElementType() reflect.Type

func (DashboardWidgetArrayOutput) Index added in v1.5.0

func (DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutput added in v1.5.0

func (o DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutput() DashboardWidgetArrayOutput

func (DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutputWithContext added in v1.5.0

func (o DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutputWithContext(ctx context.Context) DashboardWidgetArrayOutput

type DashboardWidgetCompareWith added in v1.5.0

type DashboardWidgetCompareWith struct {
	OffsetDuration string                                 `pulumi:"offsetDuration"`
	Presentation   DashboardWidgetCompareWithPresentation `pulumi:"presentation"`
}

type DashboardWidgetCompareWithArgs added in v1.5.0

type DashboardWidgetCompareWithArgs struct {
	OffsetDuration pulumi.StringInput                          `pulumi:"offsetDuration"`
	Presentation   DashboardWidgetCompareWithPresentationInput `pulumi:"presentation"`
}

func (DashboardWidgetCompareWithArgs) ElementType added in v1.5.0

func (DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutput added in v1.5.0

func (i DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput

func (DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutputWithContext added in v1.5.0

func (i DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutputWithContext(ctx context.Context) DashboardWidgetCompareWithOutput

type DashboardWidgetCompareWithArray added in v1.5.0

type DashboardWidgetCompareWithArray []DashboardWidgetCompareWithInput

func (DashboardWidgetCompareWithArray) ElementType added in v1.5.0

func (DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutput added in v1.5.0

func (i DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput

func (DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutputWithContext added in v1.5.0

func (i DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutputWithContext(ctx context.Context) DashboardWidgetCompareWithArrayOutput

type DashboardWidgetCompareWithArrayInput added in v1.5.0

type DashboardWidgetCompareWithArrayInput interface {
	pulumi.Input

	ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput
	ToDashboardWidgetCompareWithArrayOutputWithContext(context.Context) DashboardWidgetCompareWithArrayOutput
}

type DashboardWidgetCompareWithArrayOutput added in v1.5.0

type DashboardWidgetCompareWithArrayOutput struct{ *pulumi.OutputState }

func (DashboardWidgetCompareWithArrayOutput) ElementType added in v1.5.0

func (DashboardWidgetCompareWithArrayOutput) Index added in v1.5.0

func (DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutput added in v1.5.0

func (o DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput

func (DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutputWithContext added in v1.5.0

func (o DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutputWithContext(ctx context.Context) DashboardWidgetCompareWithArrayOutput

type DashboardWidgetCompareWithInput added in v1.5.0

type DashboardWidgetCompareWithInput interface {
	pulumi.Input

	ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput
	ToDashboardWidgetCompareWithOutputWithContext(context.Context) DashboardWidgetCompareWithOutput
}

type DashboardWidgetCompareWithOutput added in v1.5.0

type DashboardWidgetCompareWithOutput struct{ *pulumi.OutputState }

func (DashboardWidgetCompareWithOutput) ElementType added in v1.5.0

func (DashboardWidgetCompareWithOutput) OffsetDuration added in v1.5.0

func (DashboardWidgetCompareWithOutput) Presentation added in v1.5.0

func (DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutput added in v1.5.0

func (o DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput

func (DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutputWithContext added in v1.5.0

func (o DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutputWithContext(ctx context.Context) DashboardWidgetCompareWithOutput

type DashboardWidgetCompareWithPresentation added in v1.5.0

type DashboardWidgetCompareWithPresentation struct {
	Color string `pulumi:"color"`
	Name  string `pulumi:"name"`
}

type DashboardWidgetCompareWithPresentationArgs added in v1.5.0

type DashboardWidgetCompareWithPresentationArgs struct {
	Color pulumi.StringInput `pulumi:"color"`
	Name  pulumi.StringInput `pulumi:"name"`
}

func (DashboardWidgetCompareWithPresentationArgs) ElementType added in v1.5.0

func (DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutput added in v1.5.0

func (i DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput

func (DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutputWithContext added in v1.5.0

func (i DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutputWithContext(ctx context.Context) DashboardWidgetCompareWithPresentationOutput

type DashboardWidgetCompareWithPresentationInput added in v1.5.0

type DashboardWidgetCompareWithPresentationInput interface {
	pulumi.Input

	ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput
	ToDashboardWidgetCompareWithPresentationOutputWithContext(context.Context) DashboardWidgetCompareWithPresentationOutput
}

type DashboardWidgetCompareWithPresentationOutput added in v1.5.0

type DashboardWidgetCompareWithPresentationOutput struct{ *pulumi.OutputState }

func (DashboardWidgetCompareWithPresentationOutput) Color added in v1.5.0

func (DashboardWidgetCompareWithPresentationOutput) ElementType added in v1.5.0

func (DashboardWidgetCompareWithPresentationOutput) Name added in v1.5.0

func (DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutput added in v1.5.0

func (o DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput

func (DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutputWithContext added in v1.5.0

func (o DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutputWithContext(ctx context.Context) DashboardWidgetCompareWithPresentationOutput

type DashboardWidgetInput added in v1.5.0

type DashboardWidgetInput interface {
	pulumi.Input

	ToDashboardWidgetOutput() DashboardWidgetOutput
	ToDashboardWidgetOutputWithContext(context.Context) DashboardWidgetOutput
}

type DashboardWidgetMetric added in v1.5.0

type DashboardWidgetMetric struct {
	Name   string   `pulumi:"name"`
	Scope  *string  `pulumi:"scope"`
	Units  *string  `pulumi:"units"`
	Values []string `pulumi:"values"`
}

type DashboardWidgetMetricArgs added in v1.5.0

type DashboardWidgetMetricArgs struct {
	Name   pulumi.StringInput      `pulumi:"name"`
	Scope  pulumi.StringPtrInput   `pulumi:"scope"`
	Units  pulumi.StringPtrInput   `pulumi:"units"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (DashboardWidgetMetricArgs) ElementType added in v1.5.0

func (DashboardWidgetMetricArgs) ElementType() reflect.Type

func (DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutput added in v1.5.0

func (i DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutput() DashboardWidgetMetricOutput

func (DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutputWithContext added in v1.5.0

func (i DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutputWithContext(ctx context.Context) DashboardWidgetMetricOutput

type DashboardWidgetMetricArray added in v1.5.0

type DashboardWidgetMetricArray []DashboardWidgetMetricInput

func (DashboardWidgetMetricArray) ElementType added in v1.5.0

func (DashboardWidgetMetricArray) ElementType() reflect.Type

func (DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutput added in v1.5.0

func (i DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput

func (DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutputWithContext added in v1.5.0

func (i DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutputWithContext(ctx context.Context) DashboardWidgetMetricArrayOutput

type DashboardWidgetMetricArrayInput added in v1.5.0

type DashboardWidgetMetricArrayInput interface {
	pulumi.Input

	ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput
	ToDashboardWidgetMetricArrayOutputWithContext(context.Context) DashboardWidgetMetricArrayOutput
}

type DashboardWidgetMetricArrayOutput added in v1.5.0

type DashboardWidgetMetricArrayOutput struct{ *pulumi.OutputState }

func (DashboardWidgetMetricArrayOutput) ElementType added in v1.5.0

func (DashboardWidgetMetricArrayOutput) Index added in v1.5.0

func (DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutput added in v1.5.0

func (o DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput

func (DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutputWithContext added in v1.5.0

func (o DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutputWithContext(ctx context.Context) DashboardWidgetMetricArrayOutput

type DashboardWidgetMetricInput added in v1.5.0

type DashboardWidgetMetricInput interface {
	pulumi.Input

	ToDashboardWidgetMetricOutput() DashboardWidgetMetricOutput
	ToDashboardWidgetMetricOutputWithContext(context.Context) DashboardWidgetMetricOutput
}

type DashboardWidgetMetricOutput added in v1.5.0

type DashboardWidgetMetricOutput struct{ *pulumi.OutputState }

func (DashboardWidgetMetricOutput) ElementType added in v1.5.0

func (DashboardWidgetMetricOutput) Name added in v1.5.0

func (DashboardWidgetMetricOutput) Scope added in v1.5.0

func (DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutput added in v1.5.0

func (o DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutput() DashboardWidgetMetricOutput

func (DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutputWithContext added in v1.5.0

func (o DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutputWithContext(ctx context.Context) DashboardWidgetMetricOutput

func (DashboardWidgetMetricOutput) Units added in v1.5.0

func (DashboardWidgetMetricOutput) Values added in v1.5.0

type DashboardWidgetOutput added in v1.5.0

type DashboardWidgetOutput struct{ *pulumi.OutputState }

func (DashboardWidgetOutput) Column added in v1.5.0

func (DashboardWidgetOutput) CompareWiths added in v1.5.0

func (DashboardWidgetOutput) DrilldownDashboardId added in v1.5.0

func (o DashboardWidgetOutput) DrilldownDashboardId() pulumi.IntPtrOutput

func (DashboardWidgetOutput) Duration added in v1.5.0

func (DashboardWidgetOutput) ElementType added in v1.5.0

func (DashboardWidgetOutput) ElementType() reflect.Type

func (DashboardWidgetOutput) EndTime added in v1.5.0

func (DashboardWidgetOutput) EntityIds added in v1.5.0

func (DashboardWidgetOutput) Facet added in v1.5.0

func (DashboardWidgetOutput) Height added in v1.5.0

func (DashboardWidgetOutput) Limit added in v1.5.0

func (DashboardWidgetOutput) Metrics added in v1.5.0

func (DashboardWidgetOutput) Notes added in v1.5.0

func (DashboardWidgetOutput) Nrql added in v1.5.0

func (DashboardWidgetOutput) OrderBy added in v1.5.0

func (DashboardWidgetOutput) RawMetricName added in v1.5.0

func (o DashboardWidgetOutput) RawMetricName() pulumi.StringPtrOutput

func (DashboardWidgetOutput) Row added in v1.5.0

func (DashboardWidgetOutput) Source added in v1.5.0

func (DashboardWidgetOutput) ThresholdRed added in v1.5.0

func (DashboardWidgetOutput) ThresholdYellow added in v1.5.0

func (o DashboardWidgetOutput) ThresholdYellow() pulumi.Float64PtrOutput

func (DashboardWidgetOutput) Title added in v1.5.0

The title of the dashboard.

func (DashboardWidgetOutput) ToDashboardWidgetOutput added in v1.5.0

func (o DashboardWidgetOutput) ToDashboardWidgetOutput() DashboardWidgetOutput

func (DashboardWidgetOutput) ToDashboardWidgetOutputWithContext added in v1.5.0

func (o DashboardWidgetOutput) ToDashboardWidgetOutputWithContext(ctx context.Context) DashboardWidgetOutput

func (DashboardWidgetOutput) Visualization added in v1.5.0

func (o DashboardWidgetOutput) Visualization() pulumi.StringOutput

func (DashboardWidgetOutput) WidgetId added in v1.5.0

func (DashboardWidgetOutput) Width added in v1.5.0

type GetAlertChannelConfig added in v1.5.0

type GetAlertChannelConfig struct {
	ApiKey                *string           `pulumi:"apiKey"`
	AuthPassword          *string           `pulumi:"authPassword"`
	AuthType              *string           `pulumi:"authType"`
	AuthUsername          *string           `pulumi:"authUsername"`
	BaseUrl               *string           `pulumi:"baseUrl"`
	Channel               *string           `pulumi:"channel"`
	Headers               map[string]string `pulumi:"headers"`
	IncludeJsonAttachment *string           `pulumi:"includeJsonAttachment"`
	Key                   *string           `pulumi:"key"`
	Payload               map[string]string `pulumi:"payload"`
	PayloadType           *string           `pulumi:"payloadType"`
	Recipients            *string           `pulumi:"recipients"`
	Region                *string           `pulumi:"region"`
	RouteKey              *string           `pulumi:"routeKey"`
	ServiceKey            *string           `pulumi:"serviceKey"`
	Tags                  *string           `pulumi:"tags"`
	Teams                 *string           `pulumi:"teams"`
	Url                   *string           `pulumi:"url"`
	UserId                *string           `pulumi:"userId"`
}

type GetAlertChannelConfigArgs added in v1.5.0

type GetAlertChannelConfigArgs struct {
	ApiKey                pulumi.StringPtrInput `pulumi:"apiKey"`
	AuthPassword          pulumi.StringPtrInput `pulumi:"authPassword"`
	AuthType              pulumi.StringPtrInput `pulumi:"authType"`
	AuthUsername          pulumi.StringPtrInput `pulumi:"authUsername"`
	BaseUrl               pulumi.StringPtrInput `pulumi:"baseUrl"`
	Channel               pulumi.StringPtrInput `pulumi:"channel"`
	Headers               pulumi.StringMapInput `pulumi:"headers"`
	IncludeJsonAttachment pulumi.StringPtrInput `pulumi:"includeJsonAttachment"`
	Key                   pulumi.StringPtrInput `pulumi:"key"`
	Payload               pulumi.StringMapInput `pulumi:"payload"`
	PayloadType           pulumi.StringPtrInput `pulumi:"payloadType"`
	Recipients            pulumi.StringPtrInput `pulumi:"recipients"`
	Region                pulumi.StringPtrInput `pulumi:"region"`
	RouteKey              pulumi.StringPtrInput `pulumi:"routeKey"`
	ServiceKey            pulumi.StringPtrInput `pulumi:"serviceKey"`
	Tags                  pulumi.StringPtrInput `pulumi:"tags"`
	Teams                 pulumi.StringPtrInput `pulumi:"teams"`
	Url                   pulumi.StringPtrInput `pulumi:"url"`
	UserId                pulumi.StringPtrInput `pulumi:"userId"`
}

func (GetAlertChannelConfigArgs) ElementType added in v1.5.0

func (GetAlertChannelConfigArgs) ElementType() reflect.Type

func (GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutput added in v1.5.0

func (i GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutput() GetAlertChannelConfigOutput

func (GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutputWithContext added in v1.5.0

func (i GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutputWithContext(ctx context.Context) GetAlertChannelConfigOutput

type GetAlertChannelConfigInput added in v1.5.0

type GetAlertChannelConfigInput interface {
	pulumi.Input

	ToGetAlertChannelConfigOutput() GetAlertChannelConfigOutput
	ToGetAlertChannelConfigOutputWithContext(context.Context) GetAlertChannelConfigOutput
}

type GetAlertChannelConfigOutput added in v1.5.0

type GetAlertChannelConfigOutput struct{ *pulumi.OutputState }

func (GetAlertChannelConfigOutput) ApiKey added in v1.5.0

func (GetAlertChannelConfigOutput) AuthPassword added in v1.5.0

func (GetAlertChannelConfigOutput) AuthType added in v1.5.0

func (GetAlertChannelConfigOutput) AuthUsername added in v1.5.0

func (GetAlertChannelConfigOutput) BaseUrl added in v1.5.0

func (GetAlertChannelConfigOutput) Channel added in v1.5.0

func (GetAlertChannelConfigOutput) ElementType added in v1.5.0

func (GetAlertChannelConfigOutput) Headers added in v1.5.0

func (GetAlertChannelConfigOutput) IncludeJsonAttachment added in v1.5.0

func (o GetAlertChannelConfigOutput) IncludeJsonAttachment() pulumi.StringPtrOutput

func (GetAlertChannelConfigOutput) Key added in v1.5.0

func (GetAlertChannelConfigOutput) Payload added in v1.5.0

func (GetAlertChannelConfigOutput) PayloadType added in v1.5.0

func (GetAlertChannelConfigOutput) Recipients added in v1.5.0

func (GetAlertChannelConfigOutput) Region added in v1.5.0

func (GetAlertChannelConfigOutput) RouteKey added in v1.5.0

func (GetAlertChannelConfigOutput) ServiceKey added in v1.5.0

func (GetAlertChannelConfigOutput) Tags added in v1.5.0

func (GetAlertChannelConfigOutput) Teams added in v1.5.0

func (GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutput added in v1.5.0

func (o GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutput() GetAlertChannelConfigOutput

func (GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutputWithContext added in v1.5.0

func (o GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutputWithContext(ctx context.Context) GetAlertChannelConfigOutput

func (GetAlertChannelConfigOutput) Url added in v1.5.0

func (GetAlertChannelConfigOutput) UserId added in v1.5.0

type GetApplicationArgs

type GetApplicationArgs struct {
	// The name of the application in New Relic.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getApplication.

type GetApplicationResult

type GetApplicationResult struct {
	// A list of host IDs associated with the application.
	HostIds []int `pulumi:"hostIds"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of instance IDs associated with the application.
	InstanceIds []int  `pulumi:"instanceIds"`
	Name        string `pulumi:"name"`
}

A collection of values returned by getApplication.

func GetApplication added in v1.5.0

func GetApplication(ctx *pulumi.Context, args *GetApplicationArgs, opts ...pulumi.InvokeOption) (*GetApplicationResult, error)

type GetKeyTransactionArgs

type GetKeyTransactionArgs struct {
	// The name of the key transaction in New Relic.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getKeyTransaction.

type GetKeyTransactionResult

type GetKeyTransactionResult struct {
	// id is the provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

A collection of values returned by getKeyTransaction.

func GetKeyTransaction added in v1.5.0

func GetKeyTransaction(ctx *pulumi.Context, args *GetKeyTransactionArgs, opts ...pulumi.InvokeOption) (*GetKeyTransactionResult, error)

type InfraAlertCondition

type InfraAlertCondition struct {
	pulumi.CustomResourceState

	// The operator used to evaluate the threshold value.  Valid values are `above`, `below`, and `equal`.  Supported by the `infraMetric` and `infraProcessRunning` condition types.
	Comparison pulumi.StringPtrOutput `pulumi:"comparison"`
	// The timestamp the alert condition was created.
	CreatedAt pulumi.IntOutput `pulumi:"createdAt"`
	// Identifies the threshold parameters for opening a critical alert violation. See Thresholds below for details.
	Critical InfraAlertConditionCriticalPtrOutput `pulumi:"critical"`
	// Whether the condition is turned on or off.  Valid values are `true` and `false`.  Defaults to `true`.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The metric event; for example, `SystemSample` or `StorageSample`.  Supported by the `infraMetric` condition type.
	Event pulumi.StringOutput `pulumi:"event"`
	// For alerts on integrations, use this instead of `event`.  Supported by the `infraMetric` condition type.
	IntegrationProvider pulumi.StringPtrOutput `pulumi:"integrationProvider"`
	// The Infrastructure alert condition's name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the alert policy where this condition should be used.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Any filters applied to processes; for example: `commandName = 'java'`.  Supported by the `infraProcessRunning` condition type.
	ProcessWhere pulumi.StringPtrOutput `pulumi:"processWhere"`
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"`
	// The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`.  The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues.  Supported by the `infraMetric` condition type.
	Select pulumi.StringPtrOutput `pulumi:"select"`
	// The type of Infrastructure alert condition.  Valid values are  `infraProcessRunning`, `infraMetric`, and `infraHostNotReporting`.
	Type pulumi.StringOutput `pulumi:"type"`
	// The timestamp the alert condition was last updated.
	UpdatedAt pulumi.IntOutput `pulumi:"updatedAt"`
	// Determines how much time will pass before a violation is automatically closed. Setting the time limit to 0 prevents a violation from being force-closed.
	ViolationCloseTimer pulumi.IntPtrOutput `pulumi:"violationCloseTimer"`
	// Identifies the threshold parameters for opening a warning alert violation. See Thresholds below for details.
	Warning InfraAlertConditionWarningPtrOutput `pulumi:"warning"`
	// If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
	Where pulumi.StringPtrOutput `pulumi:"where"`
}

Use this resource to create and manage Infrastructure alert conditions in New Relic.

## 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 `infraMetric` and `infraProcessRunning` alert condition types.
  • `timeFunction` - (Optional) Indicates if the condition needs to be sustained or to just break the threshold once; `all` or `any`. Supported by the `infraMetric` alert condition type.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/r/infra_alert_condition.html.markdown.

func GetInfraAlertCondition

func GetInfraAlertCondition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InfraAlertConditionState, opts ...pulumi.ResourceOption) (*InfraAlertCondition, error)

GetInfraAlertCondition gets an existing InfraAlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInfraAlertCondition

func NewInfraAlertCondition(ctx *pulumi.Context,
	name string, args *InfraAlertConditionArgs, opts ...pulumi.ResourceOption) (*InfraAlertCondition, error)

NewInfraAlertCondition registers a new resource with the given unique name, arguments, and options.

type InfraAlertConditionArgs

type InfraAlertConditionArgs struct {
	// The operator used to evaluate the threshold value.  Valid values are `above`, `below`, and `equal`.  Supported by the `infraMetric` and `infraProcessRunning` condition types.
	Comparison pulumi.StringPtrInput
	// Identifies the threshold parameters for opening a critical alert violation. See Thresholds below for details.
	Critical InfraAlertConditionCriticalPtrInput
	// Whether the condition is turned on or off.  Valid values are `true` and `false`.  Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// The metric event; for example, `SystemSample` or `StorageSample`.  Supported by the `infraMetric` condition type.
	Event pulumi.StringPtrInput
	// For alerts on integrations, use this instead of `event`.  Supported by the `infraMetric` condition type.
	IntegrationProvider pulumi.StringPtrInput
	// The Infrastructure alert condition's name.
	Name pulumi.StringPtrInput
	// The ID of the alert policy where this condition should be used.
	PolicyId pulumi.IntInput
	// Any filters applied to processes; for example: `commandName = 'java'`.  Supported by the `infraProcessRunning` condition type.
	ProcessWhere pulumi.StringPtrInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`.  The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues.  Supported by the `infraMetric` condition type.
	Select pulumi.StringPtrInput
	// The type of Infrastructure alert condition.  Valid values are  `infraProcessRunning`, `infraMetric`, and `infraHostNotReporting`.
	Type pulumi.StringInput
	// Determines how much time will pass before a violation is automatically closed. Setting the time limit to 0 prevents a violation from being force-closed.
	ViolationCloseTimer pulumi.IntPtrInput
	// Identifies the threshold parameters for opening a warning alert violation. See Thresholds below for details.
	Warning InfraAlertConditionWarningPtrInput
	// If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
	Where pulumi.StringPtrInput
}

The set of arguments for constructing a InfraAlertCondition resource.

func (InfraAlertConditionArgs) ElementType added in v1.5.0

func (InfraAlertConditionArgs) ElementType() reflect.Type

type InfraAlertConditionCritical added in v1.5.0

type InfraAlertConditionCritical struct {
	Duration     int      `pulumi:"duration"`
	TimeFunction *string  `pulumi:"timeFunction"`
	Value        *float64 `pulumi:"value"`
}

type InfraAlertConditionCriticalArgs added in v1.5.0

type InfraAlertConditionCriticalArgs struct {
	Duration     pulumi.IntInput        `pulumi:"duration"`
	TimeFunction pulumi.StringPtrInput  `pulumi:"timeFunction"`
	Value        pulumi.Float64PtrInput `pulumi:"value"`
}

func (InfraAlertConditionCriticalArgs) ElementType added in v1.5.0

func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutput added in v1.5.0

func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput

func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutputWithContext added in v1.5.0

func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutputWithContext(ctx context.Context) InfraAlertConditionCriticalOutput

func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutput added in v1.5.0

func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput

func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutputWithContext added in v1.5.0

func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput

type InfraAlertConditionCriticalInput added in v1.5.0

type InfraAlertConditionCriticalInput interface {
	pulumi.Input

	ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput
	ToInfraAlertConditionCriticalOutputWithContext(context.Context) InfraAlertConditionCriticalOutput
}

type InfraAlertConditionCriticalOutput added in v1.5.0

type InfraAlertConditionCriticalOutput struct{ *pulumi.OutputState }

func (InfraAlertConditionCriticalOutput) Duration added in v1.5.0

func (InfraAlertConditionCriticalOutput) ElementType added in v1.5.0

func (InfraAlertConditionCriticalOutput) TimeFunction added in v1.5.0

func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutput added in v1.5.0

func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput

func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutputWithContext added in v1.5.0

func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutputWithContext(ctx context.Context) InfraAlertConditionCriticalOutput

func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutput added in v1.5.0

func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput

func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutputWithContext added in v1.5.0

func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput

func (InfraAlertConditionCriticalOutput) Value added in v1.5.0

type InfraAlertConditionCriticalPtrInput added in v1.5.0

type InfraAlertConditionCriticalPtrInput interface {
	pulumi.Input

	ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput
	ToInfraAlertConditionCriticalPtrOutputWithContext(context.Context) InfraAlertConditionCriticalPtrOutput
}

func InfraAlertConditionCriticalPtr added in v1.5.0

type InfraAlertConditionCriticalPtrOutput added in v1.5.0

type InfraAlertConditionCriticalPtrOutput struct{ *pulumi.OutputState }

func (InfraAlertConditionCriticalPtrOutput) Duration added in v1.5.0

func (InfraAlertConditionCriticalPtrOutput) Elem added in v1.5.0

func (InfraAlertConditionCriticalPtrOutput) ElementType added in v1.5.0

func (InfraAlertConditionCriticalPtrOutput) TimeFunction added in v1.5.0

func (InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutput added in v1.5.0

func (o InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput

func (InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutputWithContext added in v1.5.0

func (o InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput

func (InfraAlertConditionCriticalPtrOutput) Value added in v1.5.0

type InfraAlertConditionState

type InfraAlertConditionState struct {
	// The operator used to evaluate the threshold value.  Valid values are `above`, `below`, and `equal`.  Supported by the `infraMetric` and `infraProcessRunning` condition types.
	Comparison pulumi.StringPtrInput
	// The timestamp the alert condition was created.
	CreatedAt pulumi.IntPtrInput
	// Identifies the threshold parameters for opening a critical alert violation. See Thresholds below for details.
	Critical InfraAlertConditionCriticalPtrInput
	// Whether the condition is turned on or off.  Valid values are `true` and `false`.  Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// The metric event; for example, `SystemSample` or `StorageSample`.  Supported by the `infraMetric` condition type.
	Event pulumi.StringPtrInput
	// For alerts on integrations, use this instead of `event`.  Supported by the `infraMetric` condition type.
	IntegrationProvider pulumi.StringPtrInput
	// The Infrastructure alert condition's name.
	Name pulumi.StringPtrInput
	// The ID of the alert policy where this condition should be used.
	PolicyId pulumi.IntPtrInput
	// Any filters applied to processes; for example: `commandName = 'java'`.  Supported by the `infraProcessRunning` condition type.
	ProcessWhere pulumi.StringPtrInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`.  The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues.  Supported by the `infraMetric` condition type.
	Select pulumi.StringPtrInput
	// The type of Infrastructure alert condition.  Valid values are  `infraProcessRunning`, `infraMetric`, and `infraHostNotReporting`.
	Type pulumi.StringPtrInput
	// The timestamp the alert condition was last updated.
	UpdatedAt pulumi.IntPtrInput
	// Determines how much time will pass before a violation is automatically closed. Setting the time limit to 0 prevents a violation from being force-closed.
	ViolationCloseTimer pulumi.IntPtrInput
	// Identifies the threshold parameters for opening a warning alert violation. See Thresholds below for details.
	Warning InfraAlertConditionWarningPtrInput
	// If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
	Where pulumi.StringPtrInput
}

func (InfraAlertConditionState) ElementType added in v1.5.0

func (InfraAlertConditionState) ElementType() reflect.Type

type InfraAlertConditionWarning added in v1.5.0

type InfraAlertConditionWarning struct {
	Duration     int      `pulumi:"duration"`
	TimeFunction *string  `pulumi:"timeFunction"`
	Value        *float64 `pulumi:"value"`
}

type InfraAlertConditionWarningArgs added in v1.5.0

type InfraAlertConditionWarningArgs struct {
	Duration     pulumi.IntInput        `pulumi:"duration"`
	TimeFunction pulumi.StringPtrInput  `pulumi:"timeFunction"`
	Value        pulumi.Float64PtrInput `pulumi:"value"`
}

func (InfraAlertConditionWarningArgs) ElementType added in v1.5.0

func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutput added in v1.5.0

func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput

func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutputWithContext added in v1.5.0

func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutputWithContext(ctx context.Context) InfraAlertConditionWarningOutput

func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutput added in v1.5.0

func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput

func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutputWithContext added in v1.5.0

func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput

type InfraAlertConditionWarningInput added in v1.5.0

type InfraAlertConditionWarningInput interface {
	pulumi.Input

	ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput
	ToInfraAlertConditionWarningOutputWithContext(context.Context) InfraAlertConditionWarningOutput
}

type InfraAlertConditionWarningOutput added in v1.5.0

type InfraAlertConditionWarningOutput struct{ *pulumi.OutputState }

func (InfraAlertConditionWarningOutput) Duration added in v1.5.0

func (InfraAlertConditionWarningOutput) ElementType added in v1.5.0

func (InfraAlertConditionWarningOutput) TimeFunction added in v1.5.0

func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutput added in v1.5.0

func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput

func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutputWithContext added in v1.5.0

func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutputWithContext(ctx context.Context) InfraAlertConditionWarningOutput

func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutput added in v1.5.0

func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput

func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutputWithContext added in v1.5.0

func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput

func (InfraAlertConditionWarningOutput) Value added in v1.5.0

type InfraAlertConditionWarningPtrInput added in v1.5.0

type InfraAlertConditionWarningPtrInput interface {
	pulumi.Input

	ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput
	ToInfraAlertConditionWarningPtrOutputWithContext(context.Context) InfraAlertConditionWarningPtrOutput
}

func InfraAlertConditionWarningPtr added in v1.5.0

type InfraAlertConditionWarningPtrOutput added in v1.5.0

type InfraAlertConditionWarningPtrOutput struct{ *pulumi.OutputState }

func (InfraAlertConditionWarningPtrOutput) Duration added in v1.5.0

func (InfraAlertConditionWarningPtrOutput) Elem added in v1.5.0

func (InfraAlertConditionWarningPtrOutput) ElementType added in v1.5.0

func (InfraAlertConditionWarningPtrOutput) TimeFunction added in v1.5.0

func (InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutput added in v1.5.0

func (o InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput

func (InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutputWithContext added in v1.5.0

func (o InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput

func (InfraAlertConditionWarningPtrOutput) Value added in v1.5.0

type LookupAlertChannelArgs added in v1.5.0

type LookupAlertChannelArgs struct {
	// The name of the alert channel in New Relic.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getAlertChannel.

type LookupAlertChannelResult added in v1.5.0

type LookupAlertChannelResult struct {
	// Alert channel configuration.
	Config GetAlertChannelConfig `pulumi:"config"`
	// id is the provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// A list of policy IDs associated with the alert channel.
	PolicyIds []int `pulumi:"policyIds"`
	// Alert channel type, either: `email`, `opsgenie`, `pagerduty`, `slack`, `victorops`, or `webhook`.
	Type string `pulumi:"type"`
}

A collection of values returned by getAlertChannel.

type LookupAlertPolicyArgs added in v1.5.0

type LookupAlertPolicyArgs struct {
	IncidentPreference *string `pulumi:"incidentPreference"`
	// The name of the alert policy in New Relic.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getAlertPolicy.

type LookupAlertPolicyResult added in v1.5.0

type LookupAlertPolicyResult struct {
	// The time the policy was created.
	CreatedAt string `pulumi:"createdAt"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
	IncidentPreference *string `pulumi:"incidentPreference"`
	Name               string  `pulumi:"name"`
	// The time the policy was last updated.
	UpdatedAt string `pulumi:"updatedAt"`
}

A collection of values returned by getAlertPolicy.

type NrqlAlertCondition

type NrqlAlertCondition struct {
	pulumi.CustomResourceState

	// Whether to enable the alert condition.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Number of expected groups when using outlier detection.
	ExpectedGroups pulumi.IntPtrOutput `pulumi:"expectedGroups"`
	// Whether to look for a convergence of groups when using outlier detection.
	IgnoreOverlap pulumi.BoolPtrOutput `pulumi:"ignoreOverlap"`
	// The title of the condition.
	Name pulumi.StringOutput `pulumi:"name"`
	// A NRQL query.
	Nrql NrqlAlertConditionNrqlOutput `pulumi:"nrql"`
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"`
	// A list of terms for this condition.
	Terms NrqlAlertConditionTermArrayOutput `pulumi:"terms"`
	Type  pulumi.StringPtrOutput            `pulumi:"type"`
	// Possible values are single_value, sum.
	ValueFunction pulumi.StringPtrOutput `pulumi:"valueFunction"`
	// 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.
	ViolationTimeLimitSeconds pulumi.IntPtrOutput `pulumi:"violationTimeLimitSeconds"`
}

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. - `timeFunction` - (Required) `all` or `any`.

## NRQL

The `nrql` attribute supports the following arguments:

- `query` - (Required) The NRQL query to execute for the condition. - `sinceValue` - (Required) The value to be used in the `SINCE <X> MINUTES AGO` clause for the NRQL query. Must be between `1` and `20`.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/r/nrql_alert_condition.html.markdown.

func GetNrqlAlertCondition

func GetNrqlAlertCondition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NrqlAlertConditionState, opts ...pulumi.ResourceOption) (*NrqlAlertCondition, error)

GetNrqlAlertCondition gets an existing NrqlAlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNrqlAlertCondition

func NewNrqlAlertCondition(ctx *pulumi.Context,
	name string, args *NrqlAlertConditionArgs, opts ...pulumi.ResourceOption) (*NrqlAlertCondition, error)

NewNrqlAlertCondition registers a new resource with the given unique name, arguments, and options.

type NrqlAlertConditionArgs

type NrqlAlertConditionArgs struct {
	// Whether to enable the alert condition.
	Enabled pulumi.BoolPtrInput
	// Number of expected groups when using outlier detection.
	ExpectedGroups pulumi.IntPtrInput
	// Whether to look for a convergence of groups when using outlier detection.
	IgnoreOverlap pulumi.BoolPtrInput
	// The title of the condition.
	Name pulumi.StringPtrInput
	// A NRQL query.
	Nrql NrqlAlertConditionNrqlInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// A list of terms for this condition.
	Terms NrqlAlertConditionTermArrayInput
	Type  pulumi.StringPtrInput
	// Possible values are single_value, sum.
	ValueFunction pulumi.StringPtrInput
	// 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.
	ViolationTimeLimitSeconds pulumi.IntPtrInput
}

The set of arguments for constructing a NrqlAlertCondition resource.

func (NrqlAlertConditionArgs) ElementType added in v1.5.0

func (NrqlAlertConditionArgs) ElementType() reflect.Type

type NrqlAlertConditionNrql added in v1.5.0

type NrqlAlertConditionNrql struct {
	Query      string `pulumi:"query"`
	SinceValue string `pulumi:"sinceValue"`
}

type NrqlAlertConditionNrqlArgs added in v1.5.0

type NrqlAlertConditionNrqlArgs struct {
	Query      pulumi.StringInput `pulumi:"query"`
	SinceValue pulumi.StringInput `pulumi:"sinceValue"`
}

func (NrqlAlertConditionNrqlArgs) ElementType added in v1.5.0

func (NrqlAlertConditionNrqlArgs) ElementType() reflect.Type

func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutput added in v1.5.0

func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput

func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutputWithContext added in v1.5.0

func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlOutput

func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutput added in v1.5.0

func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput

func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutputWithContext added in v1.5.0

func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput

type NrqlAlertConditionNrqlInput added in v1.5.0

type NrqlAlertConditionNrqlInput interface {
	pulumi.Input

	ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput
	ToNrqlAlertConditionNrqlOutputWithContext(context.Context) NrqlAlertConditionNrqlOutput
}

type NrqlAlertConditionNrqlOutput added in v1.5.0

type NrqlAlertConditionNrqlOutput struct{ *pulumi.OutputState }

func (NrqlAlertConditionNrqlOutput) ElementType added in v1.5.0

func (NrqlAlertConditionNrqlOutput) Query added in v1.5.0

func (NrqlAlertConditionNrqlOutput) SinceValue added in v1.5.0

func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutput added in v1.5.0

func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput

func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutputWithContext added in v1.5.0

func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlOutput

func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutput added in v1.5.0

func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput

func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext added in v1.5.0

func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput

type NrqlAlertConditionNrqlPtrInput added in v1.5.0

type NrqlAlertConditionNrqlPtrInput interface {
	pulumi.Input

	ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput
	ToNrqlAlertConditionNrqlPtrOutputWithContext(context.Context) NrqlAlertConditionNrqlPtrOutput
}

func NrqlAlertConditionNrqlPtr added in v1.5.0

func NrqlAlertConditionNrqlPtr(v *NrqlAlertConditionNrqlArgs) NrqlAlertConditionNrqlPtrInput

type NrqlAlertConditionNrqlPtrOutput added in v1.5.0

type NrqlAlertConditionNrqlPtrOutput struct{ *pulumi.OutputState }

func (NrqlAlertConditionNrqlPtrOutput) Elem added in v1.5.0

func (NrqlAlertConditionNrqlPtrOutput) ElementType added in v1.5.0

func (NrqlAlertConditionNrqlPtrOutput) Query added in v1.5.0

func (NrqlAlertConditionNrqlPtrOutput) SinceValue added in v1.5.0

func (NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutput added in v1.5.0

func (o NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput

func (NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext added in v1.5.0

func (o NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput

type NrqlAlertConditionState

type NrqlAlertConditionState struct {
	// Whether to enable the alert condition.
	Enabled pulumi.BoolPtrInput
	// Number of expected groups when using outlier detection.
	ExpectedGroups pulumi.IntPtrInput
	// Whether to look for a convergence of groups when using outlier detection.
	IgnoreOverlap pulumi.BoolPtrInput
	// The title of the condition.
	Name pulumi.StringPtrInput
	// A NRQL query.
	Nrql NrqlAlertConditionNrqlPtrInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntPtrInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// A list of terms for this condition.
	Terms NrqlAlertConditionTermArrayInput
	Type  pulumi.StringPtrInput
	// Possible values are single_value, sum.
	ValueFunction pulumi.StringPtrInput
	// 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.
	ViolationTimeLimitSeconds pulumi.IntPtrInput
}

func (NrqlAlertConditionState) ElementType added in v1.5.0

func (NrqlAlertConditionState) ElementType() reflect.Type

type NrqlAlertConditionTerm added in v1.5.0

type NrqlAlertConditionTerm struct {
	Duration     int     `pulumi:"duration"`
	Operator     *string `pulumi:"operator"`
	Priority     *string `pulumi:"priority"`
	Threshold    float64 `pulumi:"threshold"`
	TimeFunction string  `pulumi:"timeFunction"`
}

type NrqlAlertConditionTermArgs added in v1.5.0

type NrqlAlertConditionTermArgs struct {
	Duration     pulumi.IntInput       `pulumi:"duration"`
	Operator     pulumi.StringPtrInput `pulumi:"operator"`
	Priority     pulumi.StringPtrInput `pulumi:"priority"`
	Threshold    pulumi.Float64Input   `pulumi:"threshold"`
	TimeFunction pulumi.StringInput    `pulumi:"timeFunction"`
}

func (NrqlAlertConditionTermArgs) ElementType added in v1.5.0

func (NrqlAlertConditionTermArgs) ElementType() reflect.Type

func (NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutput added in v1.5.0

func (i NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutput() NrqlAlertConditionTermOutput

func (NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutputWithContext added in v1.5.0

func (i NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutputWithContext(ctx context.Context) NrqlAlertConditionTermOutput

type NrqlAlertConditionTermArray added in v1.5.0

type NrqlAlertConditionTermArray []NrqlAlertConditionTermInput

func (NrqlAlertConditionTermArray) ElementType added in v1.5.0

func (NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutput added in v1.5.0

func (i NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput

func (NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutputWithContext added in v1.5.0

func (i NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutputWithContext(ctx context.Context) NrqlAlertConditionTermArrayOutput

type NrqlAlertConditionTermArrayInput added in v1.5.0

type NrqlAlertConditionTermArrayInput interface {
	pulumi.Input

	ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput
	ToNrqlAlertConditionTermArrayOutputWithContext(context.Context) NrqlAlertConditionTermArrayOutput
}

type NrqlAlertConditionTermArrayOutput added in v1.5.0

type NrqlAlertConditionTermArrayOutput struct{ *pulumi.OutputState }

func (NrqlAlertConditionTermArrayOutput) ElementType added in v1.5.0

func (NrqlAlertConditionTermArrayOutput) Index added in v1.5.0

func (NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutput added in v1.5.0

func (o NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput

func (NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutputWithContext added in v1.5.0

func (o NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutputWithContext(ctx context.Context) NrqlAlertConditionTermArrayOutput

type NrqlAlertConditionTermInput added in v1.5.0

type NrqlAlertConditionTermInput interface {
	pulumi.Input

	ToNrqlAlertConditionTermOutput() NrqlAlertConditionTermOutput
	ToNrqlAlertConditionTermOutputWithContext(context.Context) NrqlAlertConditionTermOutput
}

type NrqlAlertConditionTermOutput added in v1.5.0

type NrqlAlertConditionTermOutput struct{ *pulumi.OutputState }

func (NrqlAlertConditionTermOutput) Duration added in v1.5.0

func (NrqlAlertConditionTermOutput) ElementType added in v1.5.0

func (NrqlAlertConditionTermOutput) Operator added in v1.5.0

func (NrqlAlertConditionTermOutput) Priority added in v1.5.0

func (NrqlAlertConditionTermOutput) Threshold added in v1.5.0

func (NrqlAlertConditionTermOutput) TimeFunction added in v1.5.0

func (NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutput added in v1.5.0

func (o NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutput() NrqlAlertConditionTermOutput

func (NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutputWithContext added in v1.5.0

func (o NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutputWithContext(ctx context.Context) NrqlAlertConditionTermOutput

type Provider added in v1.5.0

type Provider struct {
	pulumi.ProviderResourceState
}

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](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

> This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/index.html.markdown.

func NewProvider added in v1.5.0

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

type ProviderArgs added in v1.5.0

type ProviderArgs struct {
	ApiKey               pulumi.StringPtrInput
	ApiUrl               pulumi.StringPtrInput
	CacertFile           pulumi.StringPtrInput
	InfraApiUrl          pulumi.StringPtrInput
	InfrastructureApiUrl pulumi.StringPtrInput
	InsecureSkipVerify   pulumi.BoolPtrInput
	InsightsAccountId    pulumi.StringPtrInput
	InsightsInsertKey    pulumi.StringPtrInput
	InsightsInsertUrl    pulumi.StringPtrInput
	InsightsQueryKey     pulumi.StringPtrInput
	InsightsQueryUrl     pulumi.StringPtrInput
	NerdgraphApiUrl      pulumi.StringPtrInput
	PersonalApiKey       pulumi.StringPtrInput
	SyntheticsApiUrl     pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType added in v1.5.0

func (ProviderArgs) ElementType() reflect.Type

Directories

Path Synopsis
nolint: lll nolint: lll
nolint: lll nolint: lll
nolint: lll nolint: lll nolint: lll nolint: lll
nolint: lll nolint: lll nolint: lll nolint: lll
nolint: lll nolint: lll nolint: lll nolint: lll nolint: lll nolint: lll nolint: lll
nolint: lll nolint: lll nolint: lll nolint: lll nolint: lll nolint: lll nolint: lll

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL