New Relic

Pulumi Official
Package maintained by Pulumi
v4.16.0 published on Thursday, May 26, 2022 by Pulumi

ApplicationSettings

NOTE: Applications are not created by this resource, but are created by a reporting agent.

Use this resource to manage configuration for an application that already exists in New Relic.

Notes

NOTE: Applications that have reported data in the last twelve hours cannot be deleted.

Example Usage

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
    public MyStack()
    {
        var app = new NewRelic.Plugins.ApplicationSettings("app", new NewRelic.Plugins.ApplicationSettingsArgs
        {
            AppApdexThreshold = 0.7,
            EnableRealUserMonitoring = false,
            EndUserApdexThreshold = 0.8,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-newrelic/sdk/v4/go/newrelic/plugins"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := plugins.NewApplicationSettings(ctx, "app", &plugins.ApplicationSettingsArgs{
			AppApdexThreshold:        pulumi.Float64(0.7),
			EnableRealUserMonitoring: pulumi.Bool(false),
			EndUserApdexThreshold:    pulumi.Float64(0.8),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var app = new ApplicationSettings("app", ApplicationSettingsArgs.builder()        
            .appApdexThreshold("0.7")
            .enableRealUserMonitoring(false)
            .endUserApdexThreshold("0.8")
            .build());

        }
}
import pulumi
import pulumi_newrelic as newrelic

app = newrelic.plugins.ApplicationSettings("app",
    app_apdex_threshold=0.7,
    enable_real_user_monitoring=False,
    end_user_apdex_threshold=0.8)
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const app = new newrelic.plugins.ApplicationSettings("app", {
    appApdexThreshold: 0.7,
    enableRealUserMonitoring: false,
    endUserApdexThreshold: 0.8,
});
resources:
  app:
    type: newrelic:plugins:ApplicationSettings
    properties:
      appApdexThreshold: 0.7
      enableRealUserMonitoring: false
      endUserApdexThreshold: 0.8

Create a ApplicationSettings Resource

new ApplicationSettings(name: string, args: ApplicationSettingsArgs, opts?: CustomResourceOptions);
@overload
def ApplicationSettings(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        app_apdex_threshold: Optional[float] = None,
                        enable_real_user_monitoring: Optional[bool] = None,
                        end_user_apdex_threshold: Optional[float] = None,
                        name: Optional[str] = None)
@overload
def ApplicationSettings(resource_name: str,
                        args: ApplicationSettingsArgs,
                        opts: Optional[ResourceOptions] = None)
func NewApplicationSettings(ctx *Context, name string, args ApplicationSettingsArgs, opts ...ResourceOption) (*ApplicationSettings, error)
public ApplicationSettings(string name, ApplicationSettingsArgs args, CustomResourceOptions? opts = null)
public ApplicationSettings(String name, ApplicationSettingsArgs args)
public ApplicationSettings(String name, ApplicationSettingsArgs args, CustomResourceOptions options)
type: newrelic:plugins:ApplicationSettings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationSettingsArgs
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 ApplicationSettingsArgs
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 ApplicationSettingsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationSettingsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationSettingsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ApplicationSettings 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 ApplicationSettings resource accepts the following input properties:

AppApdexThreshold double

The appex threshold for the New Relic application.

EnableRealUserMonitoring bool

Enable or disable real user monitoring for the New Relic application.

EndUserApdexThreshold double

The user's apdex threshold for the New Relic application.

Name string

The name of the application in New Relic APM.

AppApdexThreshold float64

The appex threshold for the New Relic application.

EnableRealUserMonitoring bool

Enable or disable real user monitoring for the New Relic application.

EndUserApdexThreshold float64

The user's apdex threshold for the New Relic application.

Name string

The name of the application in New Relic APM.

appApdexThreshold Double

The appex threshold for the New Relic application.

enableRealUserMonitoring Boolean

Enable or disable real user monitoring for the New Relic application.

endUserApdexThreshold Double

The user's apdex threshold for the New Relic application.

name String

The name of the application in New Relic APM.

appApdexThreshold number

The appex threshold for the New Relic application.

enableRealUserMonitoring boolean

Enable or disable real user monitoring for the New Relic application.

endUserApdexThreshold number

The user's apdex threshold for the New Relic application.

name string

The name of the application in New Relic APM.

app_apdex_threshold float

The appex threshold for the New Relic application.

enable_real_user_monitoring bool

Enable or disable real user monitoring for the New Relic application.

end_user_apdex_threshold float

The user's apdex threshold for the New Relic application.

name str

The name of the application in New Relic APM.

appApdexThreshold Number

The appex threshold for the New Relic application.

enableRealUserMonitoring Boolean

Enable or disable real user monitoring for the New Relic application.

endUserApdexThreshold Number

The user's apdex threshold for the New Relic application.

name String

The name of the application in New Relic APM.

Outputs

All input properties are implicitly available as output properties. Additionally, the ApplicationSettings 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 ApplicationSettings Resource

Get an existing ApplicationSettings 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?: ApplicationSettingsState, opts?: CustomResourceOptions): ApplicationSettings
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_apdex_threshold: Optional[float] = None,
        enable_real_user_monitoring: Optional[bool] = None,
        end_user_apdex_threshold: Optional[float] = None,
        name: Optional[str] = None) -> ApplicationSettings
func GetApplicationSettings(ctx *Context, name string, id IDInput, state *ApplicationSettingsState, opts ...ResourceOption) (*ApplicationSettings, error)
public static ApplicationSettings Get(string name, Input<string> id, ApplicationSettingsState? state, CustomResourceOptions? opts = null)
public static ApplicationSettings get(String name, Output<String> id, ApplicationSettingsState 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:
AppApdexThreshold double

The appex threshold for the New Relic application.

EnableRealUserMonitoring bool

Enable or disable real user monitoring for the New Relic application.

EndUserApdexThreshold double

The user's apdex threshold for the New Relic application.

Name string

The name of the application in New Relic APM.

AppApdexThreshold float64

The appex threshold for the New Relic application.

EnableRealUserMonitoring bool

Enable or disable real user monitoring for the New Relic application.

EndUserApdexThreshold float64

The user's apdex threshold for the New Relic application.

Name string

The name of the application in New Relic APM.

appApdexThreshold Double

The appex threshold for the New Relic application.

enableRealUserMonitoring Boolean

Enable or disable real user monitoring for the New Relic application.

endUserApdexThreshold Double

The user's apdex threshold for the New Relic application.

name String

The name of the application in New Relic APM.

appApdexThreshold number

The appex threshold for the New Relic application.

enableRealUserMonitoring boolean

Enable or disable real user monitoring for the New Relic application.

endUserApdexThreshold number

The user's apdex threshold for the New Relic application.

name string

The name of the application in New Relic APM.

app_apdex_threshold float

The appex threshold for the New Relic application.

enable_real_user_monitoring bool

Enable or disable real user monitoring for the New Relic application.

end_user_apdex_threshold float

The user's apdex threshold for the New Relic application.

name str

The name of the application in New Relic APM.

appApdexThreshold Number

The appex threshold for the New Relic application.

enableRealUserMonitoring Boolean

Enable or disable real user monitoring for the New Relic application.

endUserApdexThreshold Number

The user's apdex threshold for the New Relic application.

name String

The name of the application in New Relic APM.

Import

Applications can be imported using notation application_id, e.g.

 $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main 6789012345

Package Details

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

This Pulumi package is based on the newrelic Terraform Provider.