wavefront.CloudIntegrationNewRelic
Explore with Pulumi AI
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", {
name: "Test Integration",
apiKey: "example-api-key",
});
import pulumi
import pulumi_wavefront as wavefront
newrelic = wavefront.CloudIntegrationNewRelic("newrelic",
name="Test Integration",
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{
Name: pulumi.String("Test Integration"),
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()
{
Name = "Test Integration",
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()
.name("Test Integration")
.apiKey("example-api-key")
.build());
}
}
resources:
newrelic:
type: wavefront:CloudIntegrationNewRelic
properties:
name: Test Integration
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.
Constructor 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=[{
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudIntegrationNewRelic resource accepts the following input properties:
- Api
Key string - New Relic REST API key.
- Service string
- A value denoting which cloud service this service integrates with.
- Dictionary<string, string>
- A list of point tag key-values to add to every point ingested using this integration.
- App
Filter stringRegex - 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 stringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- Metric
Filters List<CloudIntegration New Relic Metric Filter> - See Metric Filter.
- Name string
- The human-readable name of this integration.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- Api
Key string - New Relic REST API key.
- Service string
- A value denoting which cloud service this service integrates with.
- map[string]string
- A list of point tag key-values to add to every point ingested using this integration.
- App
Filter stringRegex - 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 stringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- Metric
Filters []CloudIntegration New Relic Metric Filter Args - See Metric Filter.
- Name string
- The human-readable name of this integration.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- api
Key String - New Relic REST API key.
- service String
- A value denoting which cloud service this service integrates with.
- Map<String,String>
- A list of point tag key-values to add to every point ingested using this integration.
- app
Filter StringRegex - A regular expression that an application name must match (case-insensitively) in order to collect metrics.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- host
Filter StringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric
Filters List<CloudIntegration New Relic Metric Filter> - See Metric Filter.
- name String
- The human-readable name of this integration.
- service
Refresh IntegerRate In Minutes - How often, in minutes, to refresh the service.
- api
Key string - New Relic REST API key.
- service string
- A value denoting which cloud service this service integrates with.
- {[key: string]: string}
- A list of point tag key-values to add to every point ingested using this integration.
- app
Filter stringRegex - A regular expression that an application name must match (case-insensitively) in order to collect metrics.
- force
Save boolean - Forces this resource to save, even if errors are present.
- host
Filter stringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric
Filters CloudIntegration New Relic Metric Filter[] - See Metric Filter.
- name string
- The human-readable name of this integration.
- service
Refresh numberRate In Minutes - 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.
- Mapping[str, str]
- A list of point tag key-values to add to every point ingested using this integration.
- app_
filter_ strregex - 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_ strregex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric_
filters Sequence[CloudIntegration New Relic Metric Filter Args] - See Metric Filter.
- name str
- The human-readable name of this integration.
- service_
refresh_ intrate_ in_ minutes - How often, in minutes, to refresh the service.
- api
Key String - New Relic REST API key.
- service String
- A value denoting which cloud service this service integrates with.
- Map<String>
- A list of point tag key-values to add to every point ingested using this integration.
- app
Filter StringRegex - A regular expression that an application name must match (case-insensitively) in order to collect metrics.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- host
Filter StringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric
Filters List<Property Map> - See Metric Filter.
- name String
- The human-readable name of this integration.
- service
Refresh NumberRate In Minutes - 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.
- Dictionary<string, string>
- A list of point tag key-values to add to every point ingested using this integration.
- Api
Key string - New Relic REST API key.
- App
Filter stringRegex - 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 stringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- Metric
Filters List<CloudIntegration New Relic Metric Filter> - See Metric Filter.
- Name string
- The human-readable name of this integration.
- Service string
- A value denoting which cloud service this service integrates with.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- map[string]string
- A list of point tag key-values to add to every point ingested using this integration.
- Api
Key string - New Relic REST API key.
- App
Filter stringRegex - 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 stringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- Metric
Filters []CloudIntegration New Relic Metric Filter Args - See Metric Filter.
- Name string
- The human-readable name of this integration.
- Service string
- A value denoting which cloud service this service integrates with.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- Map<String,String>
- A list of point tag key-values to add to every point ingested using this integration.
- api
Key String - New Relic REST API key.
- app
Filter StringRegex - A regular expression that an application name must match (case-insensitively) in order to collect metrics.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- host
Filter StringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric
Filters List<CloudIntegration New Relic Metric Filter> - See Metric Filter.
- name String
- The human-readable name of this integration.
- service String
- A value denoting which cloud service this service integrates with.
- service
Refresh IntegerRate In Minutes - How often, in minutes, to refresh the service.
- {[key: string]: string}
- A list of point tag key-values to add to every point ingested using this integration.
- api
Key string - New Relic REST API key.
- app
Filter stringRegex - A regular expression that an application name must match (case-insensitively) in order to collect metrics.
- force
Save boolean - Forces this resource to save, even if errors are present.
- host
Filter stringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric
Filters CloudIntegration New Relic Metric Filter[] - See Metric Filter.
- name string
- The human-readable name of this integration.
- service string
- A value denoting which cloud service this service integrates with.
- service
Refresh numberRate In Minutes - How often, in minutes, to refresh the service.
- 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_ strregex - 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_ strregex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric_
filters Sequence[CloudIntegration New Relic Metric Filter Args] - 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_ intrate_ in_ minutes - How often, in minutes, to refresh the service.
- Map<String>
- A list of point tag key-values to add to every point ingested using this integration.
- api
Key String - New Relic REST API key.
- app
Filter StringRegex - A regular expression that an application name must match (case-insensitively) in order to collect metrics.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- host
Filter StringRegex - A regular expression that a host name must match (case-insensitively) in order to collect metrics.
- metric
Filters 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.
- service
Refresh NumberRate In Minutes - How often, in minutes, to refresh the service.
Supporting Types
CloudIntegrationNewRelicMetricFilter, CloudIntegrationNewRelicMetricFilterArgs
- App
Name string - The name of a NewRelic App.
- Metric
Filter stringRegex - A regular expression that a metric name must match (case-insensitively) in order to be ingested.
- App
Name string - The name of a NewRelic App.
- Metric
Filter stringRegex - A regular expression that a metric name must match (case-insensitively) in order to be ingested.
- app
Name String - The name of a NewRelic App.
- metric
Filter StringRegex - A regular expression that a metric name must match (case-insensitively) in order to be ingested.
- app
Name string - The name of a NewRelic App.
- metric
Filter stringRegex - 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_ strregex - A regular expression that a metric name must match (case-insensitively) in order to be ingested.
- app
Name String - The name of a NewRelic App.
- metric
Filter StringRegex - 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.