newrelic.plugins.ApplicationSettings
Explore with Pulumi AI
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.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const app = new newrelic.plugins.ApplicationSettings("app", {
name: "my-app",
appApdexThreshold: 0.7,
endUserApdexThreshold: 0.8,
enableRealUserMonitoring: false,
});
import pulumi
import pulumi_newrelic as newrelic
app = newrelic.plugins.ApplicationSettings("app",
name="my-app",
app_apdex_threshold=0.7,
end_user_apdex_threshold=0.8,
enable_real_user_monitoring=False)
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/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{
Name: pulumi.String("my-app"),
AppApdexThreshold: pulumi.Float64(0.7),
EndUserApdexThreshold: pulumi.Float64(0.8),
EnableRealUserMonitoring: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var app = new NewRelic.Plugins.ApplicationSettings("app", new()
{
Name = "my-app",
AppApdexThreshold = 0.7,
EndUserApdexThreshold = 0.8,
EnableRealUserMonitoring = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.plugins.ApplicationSettings;
import com.pulumi.newrelic.plugins.ApplicationSettingsArgs;
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 app = new ApplicationSettings("app", ApplicationSettingsArgs.builder()
.name("my-app")
.appApdexThreshold("0.7")
.endUserApdexThreshold("0.8")
.enableRealUserMonitoring(false)
.build());
}
}
resources:
app:
type: newrelic:plugins:ApplicationSettings
properties:
name: my-app
appApdexThreshold: '0.7'
endUserApdexThreshold: '0.8'
enableRealUserMonitoring: false
Notes
NOTE: Applications that have reported data in the last twelve hours cannot be deleted.
Create ApplicationSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationSettings(name: string, args: ApplicationSettingsArgs, opts?: CustomResourceOptions);
@overload
def ApplicationSettings(resource_name: str,
args: ApplicationSettingsArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var applicationSettingsResource = new NewRelic.Plugins.ApplicationSettings("applicationSettingsResource", new()
{
AppApdexThreshold = 0,
EnableRealUserMonitoring = false,
EndUserApdexThreshold = 0,
Name = "string",
});
example, err := plugins.NewApplicationSettings(ctx, "applicationSettingsResource", &plugins.ApplicationSettingsArgs{
AppApdexThreshold: pulumi.Float64(0),
EnableRealUserMonitoring: pulumi.Bool(false),
EndUserApdexThreshold: pulumi.Float64(0),
Name: pulumi.String("string"),
})
var applicationSettingsResource = new ApplicationSettings("applicationSettingsResource", ApplicationSettingsArgs.builder()
.appApdexThreshold(0)
.enableRealUserMonitoring(false)
.endUserApdexThreshold(0)
.name("string")
.build());
application_settings_resource = newrelic.plugins.ApplicationSettings("applicationSettingsResource",
app_apdex_threshold=0,
enable_real_user_monitoring=False,
end_user_apdex_threshold=0,
name="string")
const applicationSettingsResource = new newrelic.plugins.ApplicationSettings("applicationSettingsResource", {
appApdexThreshold: 0,
enableRealUserMonitoring: false,
endUserApdexThreshold: 0,
name: "string",
});
type: newrelic:plugins:ApplicationSettings
properties:
appApdexThreshold: 0
enableRealUserMonitoring: false
endUserApdexThreshold: 0
name: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ApplicationSettings resource accepts the following input properties:
- App
Apdex doubleThreshold - The apdex threshold for the New Relic application.
- Enable
Real boolUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- End
User doubleApdex Threshold - The user's apdex threshold for the New Relic application.
- Name string
- The name of the application in New Relic APM.
- App
Apdex float64Threshold - The apdex threshold for the New Relic application.
- Enable
Real boolUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- End
User float64Apdex Threshold - The user's apdex threshold for the New Relic application.
- Name string
- The name of the application in New Relic APM.
- app
Apdex DoubleThreshold - The apdex threshold for the New Relic application.
- enable
Real BooleanUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end
User DoubleApdex Threshold - The user's apdex threshold for the New Relic application.
- name String
- The name of the application in New Relic APM.
- app
Apdex numberThreshold - The apdex threshold for the New Relic application.
- enable
Real booleanUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end
User numberApdex Threshold - The user's apdex threshold for the New Relic application.
- name string
- The name of the application in New Relic APM.
- app_
apdex_ floatthreshold - The apdex threshold for the New Relic application.
- enable_
real_ booluser_ monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end_
user_ floatapdex_ threshold - The user's apdex threshold for the New Relic application.
- name str
- The name of the application in New Relic APM.
- app
Apdex NumberThreshold - The apdex threshold for the New Relic application.
- enable
Real BooleanUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end
User NumberApdex Threshold - 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 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.
- App
Apdex doubleThreshold - The apdex threshold for the New Relic application.
- Enable
Real boolUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- End
User doubleApdex Threshold - The user's apdex threshold for the New Relic application.
- Name string
- The name of the application in New Relic APM.
- App
Apdex float64Threshold - The apdex threshold for the New Relic application.
- Enable
Real boolUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- End
User float64Apdex Threshold - The user's apdex threshold for the New Relic application.
- Name string
- The name of the application in New Relic APM.
- app
Apdex DoubleThreshold - The apdex threshold for the New Relic application.
- enable
Real BooleanUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end
User DoubleApdex Threshold - The user's apdex threshold for the New Relic application.
- name String
- The name of the application in New Relic APM.
- app
Apdex numberThreshold - The apdex threshold for the New Relic application.
- enable
Real booleanUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end
User numberApdex Threshold - The user's apdex threshold for the New Relic application.
- name string
- The name of the application in New Relic APM.
- app_
apdex_ floatthreshold - The apdex threshold for the New Relic application.
- enable_
real_ booluser_ monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end_
user_ floatapdex_ threshold - The user's apdex threshold for the New Relic application.
- name str
- The name of the application in New Relic APM.
- app
Apdex NumberThreshold - The apdex threshold for the New Relic application.
- enable
Real BooleanUser Monitoring - Enable or disable real user monitoring for the New Relic application.
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
- end
User NumberApdex Threshold - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelic
Terraform Provider.