Wavefront

v1.1.1 published on Wednesday, Mar 30, 2022 by Pulumi

CloudIntegrationNewRelic

Provides a Wavefront Cloud Integration for New Relic. This allows New Relic cloud integrations to be created, updated, and deleted.

Example Usage

using Pulumi;
using Wavefront = Pulumi.Wavefront;

class MyStack : Stack
{
    public MyStack()
    {
        var newrelic = new Wavefront.CloudIntegrationNewRelic("newrelic", new Wavefront.CloudIntegrationNewRelicArgs
        {
            ApiKey = "example-api-key",
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := wavefront.NewCloudIntegrationNewRelic(ctx, "newrelic", &wavefront.CloudIntegrationNewRelicArgs{
			ApiKey: pulumi.String("example-api-key"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_wavefront as wavefront

newrelic = wavefront.CloudIntegrationNewRelic("newrelic", api_key="example-api-key")
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";

const newrelic = new wavefront.CloudIntegrationNewRelic("newrelic", {
    apiKey: "example-api-key",
});

Coming soon!

Create a CloudIntegrationNewRelic Resource

new CloudIntegrationNewRelic(name: string, args: CloudIntegrationNewRelicArgs, opts?: CustomResourceOptions);
@overload
def CloudIntegrationNewRelic(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             additional_tags: Optional[Mapping[str, str]] = None,
                             api_key: Optional[str] = None,
                             app_filter_regex: Optional[str] = None,
                             force_save: Optional[bool] = None,
                             host_filter_regex: Optional[str] = None,
                             metric_filters: Optional[Sequence[CloudIntegrationNewRelicMetricFilterArgs]] = None,
                             name: Optional[str] = None,
                             service: Optional[str] = None,
                             service_refresh_rate_in_minutes: Optional[int] = None)
@overload
def CloudIntegrationNewRelic(resource_name: str,
                             args: CloudIntegrationNewRelicArgs,
                             opts: Optional[ResourceOptions] = None)
func NewCloudIntegrationNewRelic(ctx *Context, name string, args CloudIntegrationNewRelicArgs, opts ...ResourceOption) (*CloudIntegrationNewRelic, error)
public CloudIntegrationNewRelic(string name, CloudIntegrationNewRelicArgs args, CustomResourceOptions? opts = null)
public CloudIntegrationNewRelic(String name, CloudIntegrationNewRelicArgs args)
public CloudIntegrationNewRelic(String name, CloudIntegrationNewRelicArgs args, CustomResourceOptions options)
type: wavefront:CloudIntegrationNewRelic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CloudIntegrationNewRelicArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CloudIntegrationNewRelicArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CloudIntegrationNewRelicArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CloudIntegrationNewRelicArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CloudIntegrationNewRelicArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CloudIntegrationNewRelic Resource Properties

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

Inputs

The CloudIntegrationNewRelic resource accepts the following input properties:

ApiKey string

New Relic REST API key.

Service string

A value denoting which cloud service this service integrates with.

AdditionalTags Dictionary<string, string>

A list of point tag key-values to add to every point ingested using this integration.

AppFilterRegex string

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

ForceSave bool

Forces this resource to save, even if errors are present.

HostFilterRegex string

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

MetricFilters List<CloudIntegrationNewRelicMetricFilterArgs>

See Metric Filter.

Name string

The human-readable name of this integration.

ServiceRefreshRateInMinutes int

How often, in minutes, to refresh the service.

ApiKey string

New Relic REST API key.

Service string

A value denoting which cloud service this service integrates with.

AdditionalTags map[string]string

A list of point tag key-values to add to every point ingested using this integration.

AppFilterRegex string

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

ForceSave bool

Forces this resource to save, even if errors are present.

HostFilterRegex string

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

MetricFilters []CloudIntegrationNewRelicMetricFilterArgs

See Metric Filter.

Name string

The human-readable name of this integration.

ServiceRefreshRateInMinutes int

How often, in minutes, to refresh the service.

apiKey String

New Relic REST API key.

service String

A value denoting which cloud service this service integrates with.

additionalTags Map<String,String>

A list of point tag key-values to add to every point ingested using this integration.

appFilterRegex String

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

forceSave Boolean

Forces this resource to save, even if errors are present.

hostFilterRegex String

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metricFilters List<CloudIntegrationNewRelicMetricFilterArgs>

See Metric Filter.

name String

The human-readable name of this integration.

serviceRefreshRateInMinutes Integer

How often, in minutes, to refresh the service.

apiKey string

New Relic REST API key.

service string

A value denoting which cloud service this service integrates with.

additionalTags {[key: string]: string}

A list of point tag key-values to add to every point ingested using this integration.

appFilterRegex string

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

forceSave boolean

Forces this resource to save, even if errors are present.

hostFilterRegex string

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metricFilters CloudIntegrationNewRelicMetricFilterArgs[]

See Metric Filter.

name string

The human-readable name of this integration.

serviceRefreshRateInMinutes number

How often, in minutes, to refresh the service.

api_key str

New Relic REST API key.

service str

A value denoting which cloud service this service integrates with.

additional_tags Mapping[str, str]

A list of point tag key-values to add to every point ingested using this integration.

app_filter_regex str

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

force_save bool

Forces this resource to save, even if errors are present.

host_filter_regex str

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metric_filters Sequence[CloudIntegrationNewRelicMetricFilterArgs]

See Metric Filter.

name str

The human-readable name of this integration.

service_refresh_rate_in_minutes int

How often, in minutes, to refresh the service.

apiKey String

New Relic REST API key.

service String

A value denoting which cloud service this service integrates with.

additionalTags Map<String>

A list of point tag key-values to add to every point ingested using this integration.

appFilterRegex String

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

forceSave Boolean

Forces this resource to save, even if errors are present.

hostFilterRegex String

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metricFilters List<Property Map>

See Metric Filter.

name String

The human-readable name of this integration.

serviceRefreshRateInMinutes Number

How often, in minutes, to refresh the service.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing CloudIntegrationNewRelic Resource

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

public static get(name: string, id: Input<ID>, state?: CloudIntegrationNewRelicState, opts?: CustomResourceOptions): CloudIntegrationNewRelic
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        additional_tags: Optional[Mapping[str, str]] = None,
        api_key: Optional[str] = None,
        app_filter_regex: Optional[str] = None,
        force_save: Optional[bool] = None,
        host_filter_regex: Optional[str] = None,
        metric_filters: Optional[Sequence[CloudIntegrationNewRelicMetricFilterArgs]] = None,
        name: Optional[str] = None,
        service: Optional[str] = None,
        service_refresh_rate_in_minutes: Optional[int] = None) -> CloudIntegrationNewRelic
func GetCloudIntegrationNewRelic(ctx *Context, name string, id IDInput, state *CloudIntegrationNewRelicState, opts ...ResourceOption) (*CloudIntegrationNewRelic, error)
public static CloudIntegrationNewRelic Get(string name, Input<string> id, CloudIntegrationNewRelicState? state, CustomResourceOptions? opts = null)
public static CloudIntegrationNewRelic get(String name, Output<String> id, CloudIntegrationNewRelicState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AdditionalTags Dictionary<string, string>

A list of point tag key-values to add to every point ingested using this integration.

ApiKey string

New Relic REST API key.

AppFilterRegex string

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

ForceSave bool

Forces this resource to save, even if errors are present.

HostFilterRegex string

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

MetricFilters List<CloudIntegrationNewRelicMetricFilterArgs>

See Metric Filter.

Name string

The human-readable name of this integration.

Service string

A value denoting which cloud service this service integrates with.

ServiceRefreshRateInMinutes int

How often, in minutes, to refresh the service.

AdditionalTags map[string]string

A list of point tag key-values to add to every point ingested using this integration.

ApiKey string

New Relic REST API key.

AppFilterRegex string

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

ForceSave bool

Forces this resource to save, even if errors are present.

HostFilterRegex string

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

MetricFilters []CloudIntegrationNewRelicMetricFilterArgs

See Metric Filter.

Name string

The human-readable name of this integration.

Service string

A value denoting which cloud service this service integrates with.

ServiceRefreshRateInMinutes int

How often, in minutes, to refresh the service.

additionalTags Map<String,String>

A list of point tag key-values to add to every point ingested using this integration.

apiKey String

New Relic REST API key.

appFilterRegex String

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

forceSave Boolean

Forces this resource to save, even if errors are present.

hostFilterRegex String

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metricFilters List<CloudIntegrationNewRelicMetricFilterArgs>

See Metric Filter.

name String

The human-readable name of this integration.

service String

A value denoting which cloud service this service integrates with.

serviceRefreshRateInMinutes Integer

How often, in minutes, to refresh the service.

additionalTags {[key: string]: string}

A list of point tag key-values to add to every point ingested using this integration.

apiKey string

New Relic REST API key.

appFilterRegex string

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

forceSave boolean

Forces this resource to save, even if errors are present.

hostFilterRegex string

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metricFilters CloudIntegrationNewRelicMetricFilterArgs[]

See Metric Filter.

name string

The human-readable name of this integration.

service string

A value denoting which cloud service this service integrates with.

serviceRefreshRateInMinutes number

How often, in minutes, to refresh the service.

additional_tags Mapping[str, str]

A list of point tag key-values to add to every point ingested using this integration.

api_key str

New Relic REST API key.

app_filter_regex str

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

force_save bool

Forces this resource to save, even if errors are present.

host_filter_regex str

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metric_filters Sequence[CloudIntegrationNewRelicMetricFilterArgs]

See Metric Filter.

name str

The human-readable name of this integration.

service str

A value denoting which cloud service this service integrates with.

service_refresh_rate_in_minutes int

How often, in minutes, to refresh the service.

additionalTags Map<String>

A list of point tag key-values to add to every point ingested using this integration.

apiKey String

New Relic REST API key.

appFilterRegex String

A regular expression that an application name must match (case-insensitively) in order to collect metrics.

forceSave Boolean

Forces this resource to save, even if errors are present.

hostFilterRegex String

A regular expression that a host name must match (case-insensitively) in order to collect metrics.

metricFilters List<Property Map>

See Metric Filter.

name String

The human-readable name of this integration.

service String

A value denoting which cloud service this service integrates with.

serviceRefreshRateInMinutes Number

How often, in minutes, to refresh the service.

Supporting Types

CloudIntegrationNewRelicMetricFilter

AppName string

The name of a NewRelic App.

MetricFilterRegex string

A regular expression that a metric name must match (case-insensitively) in order to be ingested.

AppName string

The name of a NewRelic App.

MetricFilterRegex string

A regular expression that a metric name must match (case-insensitively) in order to be ingested.

appName String

The name of a NewRelic App.

metricFilterRegex String

A regular expression that a metric name must match (case-insensitively) in order to be ingested.

appName string

The name of a NewRelic App.

metricFilterRegex string

A regular expression that a metric name must match (case-insensitively) in order to be ingested.

app_name str

The name of a NewRelic App.

metric_filter_regex str

A regular expression that a metric name must match (case-insensitively) in order to be ingested.

appName String

The name of a NewRelic App.

metricFilterRegex String

A regular expression that a metric name must match (case-insensitively) in order to be ingested.

Import

NewRelic Integrations can be imported by using the id, e.g.

 $ pulumi import wavefront:index/cloudIntegrationNewRelic:CloudIntegrationNewRelic newrelic a411c16b-3cf7-4f03-bf11-8ca05aab898d

Package Details

Repository
https://github.com/pulumi/pulumi-wavefront
License
Apache-2.0
Notes

This Pulumi package is based on the wavefront Terraform Provider.