import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * > **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. * * > **WARNING:** We encourage you to use this resource to manage all application settings together, not just a few, to avoid potential issues like incompatibility or unexpected behavior. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const app = new newrelic.plugins.ApplicationSettings("app", { * guid: "Mxxxxxxxxxxxxxxxxxxxxx", * name: "Sample New Relic APM Application", * appApdexThreshold: 0.7, * useServerSideConfig: true, * transactionTracers: [{ * explainQueryPlans: [{ * queryPlanThresholdType: "VALUE", * queryPlanThresholdValue: 0.5, * }], * sql: { * recordSql: "RAW", * }, * stackTraceThresholdValue: 0.5, * transactionThresholdType: "VALUE", * transactionThresholdValue: 0.5, * }], * errorCollectors: [{ * expectedErrorClasses: [], * expectedErrorCodes: [], * ignoredErrorClasses: [], * ignoredErrorCodes: [], * }], * enableSlowSql: true, * tracerType: "NONE", * enableThreadProfiler: true, * }); * ``` * ## Notes * * > **NOTE:** The `newrelic.plugins.ApplicationSettings` resource cannot be deleted directly via Terraform. It can only reset application settings to their initial state. * * ## Import * * Applications can be imported using notation `applicationGuid`, e.g. * * ```sh * $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main Mzk1NzUyNHQVRJNTxBUE18QVBQTElDc4ODU1MzYx * ``` */ export declare class ApplicationSettings extends pulumi.CustomResource { /** * Get an existing ApplicationSettings resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ApplicationSettingsState, opts?: pulumi.CustomResourceOptions): ApplicationSettings; /** * Returns true if the given object is an instance of ApplicationSettings. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ApplicationSettings; /** * The acceptable response time limit (Apdex threshold) for the application. */ readonly appApdexThreshold: pulumi.Output; /** * Dummy field to support backward compatibility of previous version.should be removed with next major version. */ readonly enableRealUserMonitoring: pulumi.Output; /** * Enable or disable the collection of slowest database queries in your traces. */ readonly enableSlowSql: pulumi.Output; /** * Enable or disable the collection of thread profiling data. */ readonly enableThreadProfiler: pulumi.Output; /** * Dummy field to support backward compatibility of previous version.should be removed with next major version. */ readonly endUserApdexThreshold: pulumi.Output; /** * Configuration block for error collection. Including this block enables the error collector. The following arguments are supported: */ readonly errorCollectors: pulumi.Output; /** * The GUID of the application in New Relic APM. * * > **NOTE:** While the attribute `guid` is not mandatory at a schema level, it is recommended to use `guid` over `name`, as support for using `name` with this resource shall eventually be discontinued. Please see the note under `name` for more details. */ readonly guid: pulumi.Output; readonly isImported: pulumi.Output; /** * A custom name or alias you can give the application in New Relic APM. * * > **NOTE:** Please refrain from using the deprecated attribute `name`with the resource `newrelic.plugins.ApplicationSettings` and use `guid` instead. For more information on the usage of `guid` against `name` and associated implications if the resource is upgraded from an older version of the New Relic Terraform Provider, please see the note in this section below. */ readonly name: pulumi.Output; /** * Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`. */ readonly tracerType: pulumi.Output; /** * Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported: */ readonly transactionTracers: pulumi.Output; /** * Enable or disable server side monitoring for the New Relic application. */ readonly useServerSideConfig: pulumi.Output; /** * Create a ApplicationSettings resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: ApplicationSettingsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApplicationSettings resources. */ export interface ApplicationSettingsState { /** * The acceptable response time limit (Apdex threshold) for the application. */ appApdexThreshold?: pulumi.Input; /** * Dummy field to support backward compatibility of previous version.should be removed with next major version. */ enableRealUserMonitoring?: pulumi.Input; /** * Enable or disable the collection of slowest database queries in your traces. */ enableSlowSql?: pulumi.Input; /** * Enable or disable the collection of thread profiling data. */ enableThreadProfiler?: pulumi.Input; /** * Dummy field to support backward compatibility of previous version.should be removed with next major version. */ endUserApdexThreshold?: pulumi.Input; /** * Configuration block for error collection. Including this block enables the error collector. The following arguments are supported: */ errorCollectors?: pulumi.Input[] | undefined>; /** * The GUID of the application in New Relic APM. * * > **NOTE:** While the attribute `guid` is not mandatory at a schema level, it is recommended to use `guid` over `name`, as support for using `name` with this resource shall eventually be discontinued. Please see the note under `name` for more details. */ guid?: pulumi.Input; isImported?: pulumi.Input; /** * A custom name or alias you can give the application in New Relic APM. * * > **NOTE:** Please refrain from using the deprecated attribute `name`with the resource `newrelic.plugins.ApplicationSettings` and use `guid` instead. For more information on the usage of `guid` against `name` and associated implications if the resource is upgraded from an older version of the New Relic Terraform Provider, please see the note in this section below. */ name?: pulumi.Input; /** * Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`. */ tracerType?: pulumi.Input; /** * Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported: */ transactionTracers?: pulumi.Input[] | undefined>; /** * Enable or disable server side monitoring for the New Relic application. */ useServerSideConfig?: pulumi.Input; } /** * The set of arguments for constructing a ApplicationSettings resource. */ export interface ApplicationSettingsArgs { /** * The acceptable response time limit (Apdex threshold) for the application. */ appApdexThreshold?: pulumi.Input; /** * Dummy field to support backward compatibility of previous version.should be removed with next major version. */ enableRealUserMonitoring?: pulumi.Input; /** * Enable or disable the collection of slowest database queries in your traces. */ enableSlowSql?: pulumi.Input; /** * Enable or disable the collection of thread profiling data. */ enableThreadProfiler?: pulumi.Input; /** * Dummy field to support backward compatibility of previous version.should be removed with next major version. */ endUserApdexThreshold?: pulumi.Input; /** * Configuration block for error collection. Including this block enables the error collector. The following arguments are supported: */ errorCollectors?: pulumi.Input[] | undefined>; /** * The GUID of the application in New Relic APM. * * > **NOTE:** While the attribute `guid` is not mandatory at a schema level, it is recommended to use `guid` over `name`, as support for using `name` with this resource shall eventually be discontinued. Please see the note under `name` for more details. */ guid?: pulumi.Input; /** * A custom name or alias you can give the application in New Relic APM. * * > **NOTE:** Please refrain from using the deprecated attribute `name`with the resource `newrelic.plugins.ApplicationSettings` and use `guid` instead. For more information on the usage of `guid` against `name` and associated implications if the resource is upgraded from an older version of the New Relic Terraform Provider, please see the note in this section below. */ name?: pulumi.Input; /** * Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`. */ tracerType?: pulumi.Input; /** * Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported: */ transactionTracers?: pulumi.Input[] | undefined>; /** * Enable or disable server side monitoring for the New Relic application. */ useServerSideConfig?: pulumi.Input; } //# sourceMappingURL=applicationSettings.d.ts.map