import * as pulumi from "@pulumi/pulumi"; /** * Use this resource to create a new Key Transaction in New Relic. * * > **NOTE:** For more information on Key Transactions, head over to [this page](https://docs.newrelic.com/docs/apm/transactions/key-transactions/introduction-key-transactions/) in New Relic's docs. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = new newrelic.KeyTransaction("foo", { * applicationGuid: "MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy", * apdexIndex: 0.5, * browserApdexTarget: 0.5, * metricName: "WebTransaction/Function/__main__:foo_bar", * name: "Sample Key Transaction", * }); * ``` * * ## Import * * A Key Transaction in New Relic may be imported into Terraform using its GUID specified in the `` field, in the following command. * * ```sh * $ pulumi import newrelic:index/keyTransaction:KeyTransaction foo * ``` */ export declare class KeyTransaction extends pulumi.CustomResource { /** * Get an existing KeyTransaction 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?: KeyTransactionState, opts?: pulumi.CustomResourceOptions): KeyTransaction; /** * Returns true if the given object is an instance of KeyTransaction. 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 KeyTransaction; /** * A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied). */ readonly apdexIndex: pulumi.Output; /** * The GUID of the APM Application comprising transactions, of which one would be made a key transaction. */ readonly applicationGuid: pulumi.Output; /** * A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds). * * > **NOTE:** It may be noted that the `metricName` and `applicationGuid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `applicationGuid` and/or `metricName` of a `newrelic.KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource. */ readonly browserApdexTarget: pulumi.Output; /** * The domain of the entity monitored by the key transaction. */ readonly domain: pulumi.Output; /** * The name of the underlying metric monitored by the key transaction to be created. */ readonly metricName: pulumi.Output; /** * The name of the key transaction. */ readonly name: pulumi.Output; /** * The type of the entity monitored by the key transaction. */ readonly type: pulumi.Output; /** * Create a KeyTransaction 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: KeyTransactionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering KeyTransaction resources. */ export interface KeyTransactionState { /** * A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied). */ apdexIndex?: pulumi.Input; /** * The GUID of the APM Application comprising transactions, of which one would be made a key transaction. */ applicationGuid?: pulumi.Input; /** * A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds). * * > **NOTE:** It may be noted that the `metricName` and `applicationGuid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `applicationGuid` and/or `metricName` of a `newrelic.KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource. */ browserApdexTarget?: pulumi.Input; /** * The domain of the entity monitored by the key transaction. */ domain?: pulumi.Input; /** * The name of the underlying metric monitored by the key transaction to be created. */ metricName?: pulumi.Input; /** * The name of the key transaction. */ name?: pulumi.Input; /** * The type of the entity monitored by the key transaction. */ type?: pulumi.Input; } /** * The set of arguments for constructing a KeyTransaction resource. */ export interface KeyTransactionArgs { /** * A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied). */ apdexIndex: pulumi.Input; /** * The GUID of the APM Application comprising transactions, of which one would be made a key transaction. */ applicationGuid: pulumi.Input; /** * A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds). * * > **NOTE:** It may be noted that the `metricName` and `applicationGuid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `applicationGuid` and/or `metricName` of a `newrelic.KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource. */ browserApdexTarget: pulumi.Input; /** * The name of the underlying metric monitored by the key transaction to be created. */ metricName: pulumi.Input; /** * The name of the key transaction. */ name?: pulumi.Input; } //# sourceMappingURL=keyTransaction.d.ts.map