1. Packages
  2. Wavefront
  3. API Docs
  4. CloudIntegrationNewRelic
Wavefront v3.1.1 published on Monday, Mar 11, 2024 by Pulumi

wavefront.CloudIntegrationNewRelic

Explore with Pulumi AI

wavefront logo
Wavefront v3.1.1 published on Monday, Mar 11, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as wavefront from "@pulumi/wavefront";
    
    const newrelic = new wavefront.CloudIntegrationNewRelic("newrelic", {apiKey: "example-api-key"});
    
    import pulumi
    import pulumi_wavefront as wavefront
    
    newrelic = wavefront.CloudIntegrationNewRelic("newrelic", api_key="example-api-key")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-wavefront/sdk/v3/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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Wavefront = Pulumi.Wavefront;
    
    return await Deployment.RunAsync(() => 
    {
        var newrelic = new Wavefront.CloudIntegrationNewRelic("newrelic", new()
        {
            ApiKey = "example-api-key",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.wavefront.CloudIntegrationNewRelic;
    import com.pulumi.wavefront.CloudIntegrationNewRelicArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var newrelic = new CloudIntegrationNewRelic("newrelic", CloudIntegrationNewRelicArgs.builder()        
                .apiKey("example-api-key")
                .build());
    
        }
    }
    
    resources:
      newrelic:
        type: wavefront:CloudIntegrationNewRelic
        properties:
          apiKey: example-api-key
    

    Create CloudIntegrationNewRelic Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CloudIntegrationNewRelic(name: string, args: CloudIntegrationNewRelicArgs, opts?: CustomResourceOptions);
    @overload
    def CloudIntegrationNewRelic(resource_name: str,
                                 args: CloudIntegrationNewRelicArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudIntegrationNewRelic(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 api_key: Optional[str] = None,
                                 service: Optional[str] = None,
                                 additional_tags: Optional[Mapping[str, 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_refresh_rate_in_minutes: Optional[int] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var cloudIntegrationNewRelicResource = new Wavefront.CloudIntegrationNewRelic("cloudIntegrationNewRelicResource", new()
    {
        ApiKey = "string",
        Service = "string",
        AdditionalTags = 
        {
            { "string", "string" },
        },
        AppFilterRegex = "string",
        ForceSave = false,
        HostFilterRegex = "string",
        MetricFilters = new[]
        {
            new Wavefront.Inputs.CloudIntegrationNewRelicMetricFilterArgs
            {
                AppName = "string",
                MetricFilterRegex = "string",
            },
        },
        Name = "string",
        ServiceRefreshRateInMinutes = 0,
    });
    
    example, err := wavefront.NewCloudIntegrationNewRelic(ctx, "cloudIntegrationNewRelicResource", &wavefront.CloudIntegrationNewRelicArgs{
    	ApiKey:  pulumi.String("string"),
    	Service: pulumi.String("string"),
    	AdditionalTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	AppFilterRegex:  pulumi.String("string"),
    	ForceSave:       pulumi.Bool(false),
    	HostFilterRegex: pulumi.String("string"),
    	MetricFilters: wavefront.CloudIntegrationNewRelicMetricFilterArray{
    		&wavefront.CloudIntegrationNewRelicMetricFilterArgs{
    			AppName:           pulumi.String("string"),
    			MetricFilterRegex: pulumi.String("string"),
    		},
    	},
    	Name:                        pulumi.String("string"),
    	ServiceRefreshRateInMinutes: pulumi.Int(0),
    })
    
    var cloudIntegrationNewRelicResource = new CloudIntegrationNewRelic("cloudIntegrationNewRelicResource", CloudIntegrationNewRelicArgs.builder()        
        .apiKey("string")
        .service("string")
        .additionalTags(Map.of("string", "string"))
        .appFilterRegex("string")
        .forceSave(false)
        .hostFilterRegex("string")
        .metricFilters(CloudIntegrationNewRelicMetricFilterArgs.builder()
            .appName("string")
            .metricFilterRegex("string")
            .build())
        .name("string")
        .serviceRefreshRateInMinutes(0)
        .build());
    
    cloud_integration_new_relic_resource = wavefront.CloudIntegrationNewRelic("cloudIntegrationNewRelicResource",
        api_key="string",
        service="string",
        additional_tags={
            "string": "string",
        },
        app_filter_regex="string",
        force_save=False,
        host_filter_regex="string",
        metric_filters=[wavefront.CloudIntegrationNewRelicMetricFilterArgs(
            app_name="string",
            metric_filter_regex="string",
        )],
        name="string",
        service_refresh_rate_in_minutes=0)
    
    const cloudIntegrationNewRelicResource = new wavefront.CloudIntegrationNewRelic("cloudIntegrationNewRelicResource", {
        apiKey: "string",
        service: "string",
        additionalTags: {
            string: "string",
        },
        appFilterRegex: "string",
        forceSave: false,
        hostFilterRegex: "string",
        metricFilters: [{
            appName: "string",
            metricFilterRegex: "string",
        }],
        name: "string",
        serviceRefreshRateInMinutes: 0,
    });
    
    type: wavefront:CloudIntegrationNewRelic
    properties:
        additionalTags:
            string: string
        apiKey: string
        appFilterRegex: string
        forceSave: false
        hostFilterRegex: string
        metricFilters:
            - appName: string
              metricFilterRegex: string
        name: string
        service: string
        serviceRefreshRateInMinutes: 0
    

    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<CloudIntegrationNewRelicMetricFilter>
    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<CloudIntegrationNewRelicMetricFilter>
    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 CloudIntegrationNewRelicMetricFilter[]
    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 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<CloudIntegrationNewRelicMetricFilter>
    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<CloudIntegrationNewRelicMetricFilter>
    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 CloudIntegrationNewRelicMetricFilter[]
    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, CloudIntegrationNewRelicMetricFilterArgs

    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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Wavefront pulumi/pulumi-wavefront
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the wavefront Terraform Provider.
    wavefront logo
    Wavefront v3.1.1 published on Monday, Mar 11, 2024 by Pulumi