newrelic.KeyTransaction
Explore with Pulumi AI
Use this resource to create a new Key Transaction in New Relic.
NOTE: For more information on Key Transactions, head over to this page in New Relic’s docs.
Example Usage
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 pulumi
import pulumi_newrelic as newrelic
foo = newrelic.KeyTransaction("foo",
application_guid="MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy",
apdex_index=0.5,
browser_apdex_target=0.5,
metric_name="WebTransaction/Function/__main__:foo_bar",
name="Sample Key Transaction")
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewKeyTransaction(ctx, "foo", &newrelic.KeyTransactionArgs{
ApplicationGuid: pulumi.String("MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy"),
ApdexIndex: pulumi.Float64(0.5),
BrowserApdexTarget: pulumi.Float64(0.5),
MetricName: pulumi.String("WebTransaction/Function/__main__:foo_bar"),
Name: pulumi.String("Sample Key Transaction"),
})
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 foo = new NewRelic.KeyTransaction("foo", new()
{
ApplicationGuid = "MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy",
ApdexIndex = 0.5,
BrowserApdexTarget = 0.5,
MetricName = "WebTransaction/Function/__main__:foo_bar",
Name = "Sample Key Transaction",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.KeyTransaction;
import com.pulumi.newrelic.KeyTransactionArgs;
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 foo = new KeyTransaction("foo", KeyTransactionArgs.builder()
.applicationGuid("MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy")
.apdexIndex(0.5)
.browserApdexTarget(0.5)
.metricName("WebTransaction/Function/__main__:foo_bar")
.name("Sample Key Transaction")
.build());
}
}
resources:
foo:
type: newrelic:KeyTransaction
properties:
applicationGuid: MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy
apdexIndex: 0.5
browserApdexTarget: 0.5
metricName: WebTransaction/Function/__main__:foo_bar
name: Sample Key Transaction
Create KeyTransaction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KeyTransaction(name: string, args: KeyTransactionArgs, opts?: CustomResourceOptions);
@overload
def KeyTransaction(resource_name: str,
args: KeyTransactionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KeyTransaction(resource_name: str,
opts: Optional[ResourceOptions] = None,
apdex_index: Optional[float] = None,
application_guid: Optional[str] = None,
browser_apdex_target: Optional[float] = None,
metric_name: Optional[str] = None,
name: Optional[str] = None)
func NewKeyTransaction(ctx *Context, name string, args KeyTransactionArgs, opts ...ResourceOption) (*KeyTransaction, error)
public KeyTransaction(string name, KeyTransactionArgs args, CustomResourceOptions? opts = null)
public KeyTransaction(String name, KeyTransactionArgs args)
public KeyTransaction(String name, KeyTransactionArgs args, CustomResourceOptions options)
type: newrelic:KeyTransaction
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 KeyTransactionArgs
- 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 KeyTransactionArgs
- 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 KeyTransactionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyTransactionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeyTransactionArgs
- 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 keyTransactionResource = new NewRelic.KeyTransaction("keyTransactionResource", new()
{
ApdexIndex = 0,
ApplicationGuid = "string",
BrowserApdexTarget = 0,
MetricName = "string",
Name = "string",
});
example, err := newrelic.NewKeyTransaction(ctx, "keyTransactionResource", &newrelic.KeyTransactionArgs{
ApdexIndex: pulumi.Float64(0),
ApplicationGuid: pulumi.String("string"),
BrowserApdexTarget: pulumi.Float64(0),
MetricName: pulumi.String("string"),
Name: pulumi.String("string"),
})
var keyTransactionResource = new KeyTransaction("keyTransactionResource", KeyTransactionArgs.builder()
.apdexIndex(0)
.applicationGuid("string")
.browserApdexTarget(0)
.metricName("string")
.name("string")
.build());
key_transaction_resource = newrelic.KeyTransaction("keyTransactionResource",
apdex_index=0,
application_guid="string",
browser_apdex_target=0,
metric_name="string",
name="string")
const keyTransactionResource = new newrelic.KeyTransaction("keyTransactionResource", {
apdexIndex: 0,
applicationGuid: "string",
browserApdexTarget: 0,
metricName: "string",
name: "string",
});
type: newrelic:KeyTransaction
properties:
apdexIndex: 0
applicationGuid: string
browserApdexTarget: 0
metricName: string
name: string
KeyTransaction 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 KeyTransaction resource accepts the following input properties:
- Apdex
Index double - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- Application
Guid string - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- Browser
Apdex doubleTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- Metric
Name string - The name of the underlying metric monitored by the key transaction to be created.
- Name string
- The name of the key transaction.
- Apdex
Index float64 - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- Application
Guid string - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- Browser
Apdex float64Target A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- Metric
Name string - The name of the underlying metric monitored by the key transaction to be created.
- Name string
- The name of the key transaction.
- apdex
Index Double - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application
Guid String - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser
Apdex DoubleTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- metric
Name String - The name of the underlying metric monitored by the key transaction to be created.
- name String
- The name of the key transaction.
- apdex
Index number - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application
Guid string - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser
Apdex numberTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- metric
Name string - The name of the underlying metric monitored by the key transaction to be created.
- name string
- The name of the key transaction.
- apdex_
index float - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application_
guid str - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser_
apdex_ floattarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- metric_
name str - The name of the underlying metric monitored by the key transaction to be created.
- name str
- The name of the key transaction.
- apdex
Index Number - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application
Guid String - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser
Apdex NumberTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- metric
Name String - The name of the underlying metric monitored by the key transaction to be created.
- name String
- The name of the key transaction.
Outputs
All input properties are implicitly available as output properties. Additionally, the KeyTransaction resource produces the following output properties:
Look up Existing KeyTransaction Resource
Get an existing KeyTransaction 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?: KeyTransactionState, opts?: CustomResourceOptions): KeyTransaction
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apdex_index: Optional[float] = None,
application_guid: Optional[str] = None,
browser_apdex_target: Optional[float] = None,
domain: Optional[str] = None,
metric_name: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None) -> KeyTransaction
func GetKeyTransaction(ctx *Context, name string, id IDInput, state *KeyTransactionState, opts ...ResourceOption) (*KeyTransaction, error)
public static KeyTransaction Get(string name, Input<string> id, KeyTransactionState? state, CustomResourceOptions? opts = null)
public static KeyTransaction get(String name, Output<String> id, KeyTransactionState 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.
- Apdex
Index double - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- Application
Guid string - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- Browser
Apdex doubleTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- Domain string
- The domain of the entity monitored by the key transaction.
- Metric
Name string - The name of the underlying metric monitored by the key transaction to be created.
- Name string
- The name of the key transaction.
- Type string
- The type of the entity monitored by the key transaction.
- Apdex
Index float64 - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- Application
Guid string - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- Browser
Apdex float64Target A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- Domain string
- The domain of the entity monitored by the key transaction.
- Metric
Name string - The name of the underlying metric monitored by the key transaction to be created.
- Name string
- The name of the key transaction.
- Type string
- The type of the entity monitored by the key transaction.
- apdex
Index Double - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application
Guid String - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser
Apdex DoubleTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- domain String
- The domain of the entity monitored by the key transaction.
- metric
Name String - The name of the underlying metric monitored by the key transaction to be created.
- name String
- The name of the key transaction.
- type String
- The type of the entity monitored by the key transaction.
- apdex
Index number - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application
Guid string - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser
Apdex numberTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- domain string
- The domain of the entity monitored by the key transaction.
- metric
Name string - The name of the underlying metric monitored by the key transaction to be created.
- name string
- The name of the key transaction.
- type string
- The type of the entity monitored by the key transaction.
- apdex_
index float - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application_
guid str - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser_
apdex_ floattarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- domain str
- The domain of the entity monitored by the key transaction.
- metric_
name str - The name of the underlying metric monitored by the key transaction to be created.
- name str
- The name of the key transaction.
- type str
- The type of the entity monitored by the key transaction.
- apdex
Index Number - A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
- application
Guid String - The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
- browser
Apdex NumberTarget A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
NOTE: It may be noted that the
metric_name
andapplication_guid
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 ofapplication_guid
and/ormetric_name
of anewrelic.KeyTransaction
resource created (to try updating these values) would result inpulumi preview
prompting a forced destruction and re-creation of the resource.- domain String
- The domain of the entity monitored by the key transaction.
- metric
Name String - The name of the underlying metric monitored by the key transaction to be created.
- name String
- The name of the key transaction.
- type String
- The type of the entity monitored by the key transaction.
Import
A Key Transaction in New Relic may be imported into Terraform using its GUID specified in the <id>
field, in the following command.
bash
$ pulumi import newrelic:index/keyTransaction:KeyTransaction foo <id>
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.