import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a specific key transaction in New Relic that already exists. More information on Terraform's data sources can be found here. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const txn = newrelic.getKeyTransaction({ * name: "txn", * }); * const foo = new newrelic.AlertPolicy("foo", {name: "foo"}); * const fooAlertCondition = new newrelic.AlertCondition("foo", { * policyId: foo.id, * name: "foo", * type: "apm_kt_metric", * entities: [txn.then(txn => txn.id)], * metric: "error_percentage", * runbookUrl: "https://www.example.com", * terms: [{ * duration: 5, * operator: "below", * priority: "critical", * threshold: 0.75, * timeFunction: "all", * }], * }); * ``` */ export declare function getKeyTransaction(args: GetKeyTransactionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getKeyTransaction. */ export interface GetKeyTransactionArgs { /** * The account ID you would like to search for key transactions in. Defaults to `accountId` in the `provider{}` (or `NEW_RELIC_ACCOUNT_ID` in your environment) if not specified. * * > **NOTE** If the `name` specified in the configuration matches the names of multiple key transactions in the account, the data source will return the first match from the list of all matching key transactions retrieved from the API. However, when using the `guid` argument as the search criterion, only the key transaction with that particular GUID is returned, as each key transaction has a unique GUID. */ accountId?: string; /** * GUID of the key transaction in New Relic. */ guid?: string; /** * The name of the key transaction in New Relic. */ name: string; } /** * A collection of values returned by getKeyTransaction. */ export interface GetKeyTransactionResult { readonly accountId: string; /** * Domain of the key transaction in New Relic. */ readonly domain: string; /** * GUID of the key transaction in New Relic. */ readonly guid: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * Type of the key transaction in New Relic. */ readonly type: string; } /** * Use this data source to get information about a specific key transaction in New Relic that already exists. More information on Terraform's data sources can be found here. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const txn = newrelic.getKeyTransaction({ * name: "txn", * }); * const foo = new newrelic.AlertPolicy("foo", {name: "foo"}); * const fooAlertCondition = new newrelic.AlertCondition("foo", { * policyId: foo.id, * name: "foo", * type: "apm_kt_metric", * entities: [txn.then(txn => txn.id)], * metric: "error_percentage", * runbookUrl: "https://www.example.com", * terms: [{ * duration: 5, * operator: "below", * priority: "critical", * threshold: 0.75, * timeFunction: "all", * }], * }); * ``` */ export declare function getKeyTransactionOutput(args: GetKeyTransactionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getKeyTransaction. */ export interface GetKeyTransactionOutputArgs { /** * The account ID you would like to search for key transactions in. Defaults to `accountId` in the `provider{}` (or `NEW_RELIC_ACCOUNT_ID` in your environment) if not specified. * * > **NOTE** If the `name` specified in the configuration matches the names of multiple key transactions in the account, the data source will return the first match from the list of all matching key transactions retrieved from the API. However, when using the `guid` argument as the search criterion, only the key transaction with that particular GUID is returned, as each key transaction has a unique GUID. */ accountId?: pulumi.Input; /** * GUID of the key transaction in New Relic. */ guid?: pulumi.Input; /** * The name of the key transaction in New Relic. */ name: pulumi.Input; } //# sourceMappingURL=getKeyTransaction.d.ts.map