1. Packages
  2. Dynatrace
  3. API Docs
  4. BusinessEventsMetrics
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.BusinessEventsMetrics

Explore with Pulumi AI

Create BusinessEventsMetrics Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BusinessEventsMetrics(name: string, args: BusinessEventsMetricsArgs, opts?: CustomResourceOptions);
@overload
def BusinessEventsMetrics(resource_name: str,
                          args: BusinessEventsMetricsArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def BusinessEventsMetrics(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          enabled: Optional[bool] = None,
                          key: Optional[str] = None,
                          matcher: Optional[str] = None,
                          measure: Optional[str] = None,
                          dimensions: Optional[Sequence[str]] = None,
                          measure_attribute: Optional[str] = None)
func NewBusinessEventsMetrics(ctx *Context, name string, args BusinessEventsMetricsArgs, opts ...ResourceOption) (*BusinessEventsMetrics, error)
public BusinessEventsMetrics(string name, BusinessEventsMetricsArgs args, CustomResourceOptions? opts = null)
public BusinessEventsMetrics(String name, BusinessEventsMetricsArgs args)
public BusinessEventsMetrics(String name, BusinessEventsMetricsArgs args, CustomResourceOptions options)
type: dynatrace:BusinessEventsMetrics
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BusinessEventsMetricsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BusinessEventsMetricsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BusinessEventsMetricsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BusinessEventsMetricsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BusinessEventsMetricsArgs
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 businessEventsMetricsResource = new Dynatrace.BusinessEventsMetrics("businessEventsMetricsResource", new()
{
    Enabled = false,
    Key = "string",
    Matcher = "string",
    Measure = "string",
    Dimensions = new[]
    {
        "string",
    },
    MeasureAttribute = "string",
});
Copy
example, err := dynatrace.NewBusinessEventsMetrics(ctx, "businessEventsMetricsResource", &dynatrace.BusinessEventsMetricsArgs{
	Enabled: pulumi.Bool(false),
	Key:     pulumi.String("string"),
	Matcher: pulumi.String("string"),
	Measure: pulumi.String("string"),
	Dimensions: pulumi.StringArray{
		pulumi.String("string"),
	},
	MeasureAttribute: pulumi.String("string"),
})
Copy
var businessEventsMetricsResource = new BusinessEventsMetrics("businessEventsMetricsResource", BusinessEventsMetricsArgs.builder()
    .enabled(false)
    .key("string")
    .matcher("string")
    .measure("string")
    .dimensions("string")
    .measureAttribute("string")
    .build());
Copy
business_events_metrics_resource = dynatrace.BusinessEventsMetrics("businessEventsMetricsResource",
    enabled=False,
    key="string",
    matcher="string",
    measure="string",
    dimensions=["string"],
    measure_attribute="string")
Copy
const businessEventsMetricsResource = new dynatrace.BusinessEventsMetrics("businessEventsMetricsResource", {
    enabled: false,
    key: "string",
    matcher: "string",
    measure: "string",
    dimensions: ["string"],
    measureAttribute: "string",
});
Copy
type: dynatrace:BusinessEventsMetrics
properties:
    dimensions:
        - string
    enabled: false
    key: string
    matcher: string
    measure: string
    measureAttribute: string
Copy

BusinessEventsMetrics 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 BusinessEventsMetrics resource accepts the following input properties:

Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
Key This property is required. string
Key
Matcher This property is required. string
See our documentation
Measure This property is required. string
Possible Values: ATTRIBUTE, OCCURRENCE
Dimensions List<string>
no documentation available
MeasureAttribute string
Attribute
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
Key This property is required. string
Key
Matcher This property is required. string
See our documentation
Measure This property is required. string
Possible Values: ATTRIBUTE, OCCURRENCE
Dimensions []string
no documentation available
MeasureAttribute string
Attribute
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
key This property is required. String
Key
matcher This property is required. String
See our documentation
measure This property is required. String
Possible Values: ATTRIBUTE, OCCURRENCE
dimensions List<String>
no documentation available
measureAttribute String
Attribute
enabled This property is required. boolean
This setting is enabled (true) or disabled (false)
key This property is required. string
Key
matcher This property is required. string
See our documentation
measure This property is required. string
Possible Values: ATTRIBUTE, OCCURRENCE
dimensions string[]
no documentation available
measureAttribute string
Attribute
enabled This property is required. bool
This setting is enabled (true) or disabled (false)
key This property is required. str
Key
matcher This property is required. str
See our documentation
measure This property is required. str
Possible Values: ATTRIBUTE, OCCURRENCE
dimensions Sequence[str]
no documentation available
measure_attribute str
Attribute
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
key This property is required. String
Key
matcher This property is required. String
See our documentation
measure This property is required. String
Possible Values: ATTRIBUTE, OCCURRENCE
dimensions List<String>
no documentation available
measureAttribute String
Attribute

Outputs

All input properties are implicitly available as output properties. Additionally, the BusinessEventsMetrics 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 BusinessEventsMetrics Resource

Get an existing BusinessEventsMetrics 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?: BusinessEventsMetricsState, opts?: CustomResourceOptions): BusinessEventsMetrics
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dimensions: Optional[Sequence[str]] = None,
        enabled: Optional[bool] = None,
        key: Optional[str] = None,
        matcher: Optional[str] = None,
        measure: Optional[str] = None,
        measure_attribute: Optional[str] = None) -> BusinessEventsMetrics
func GetBusinessEventsMetrics(ctx *Context, name string, id IDInput, state *BusinessEventsMetricsState, opts ...ResourceOption) (*BusinessEventsMetrics, error)
public static BusinessEventsMetrics Get(string name, Input<string> id, BusinessEventsMetricsState? state, CustomResourceOptions? opts = null)
public static BusinessEventsMetrics get(String name, Output<String> id, BusinessEventsMetricsState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:BusinessEventsMetrics    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Dimensions List<string>
no documentation available
Enabled bool
This setting is enabled (true) or disabled (false)
Key string
Key
Matcher string
See our documentation
Measure string
Possible Values: ATTRIBUTE, OCCURRENCE
MeasureAttribute string
Attribute
Dimensions []string
no documentation available
Enabled bool
This setting is enabled (true) or disabled (false)
Key string
Key
Matcher string
See our documentation
Measure string
Possible Values: ATTRIBUTE, OCCURRENCE
MeasureAttribute string
Attribute
dimensions List<String>
no documentation available
enabled Boolean
This setting is enabled (true) or disabled (false)
key String
Key
matcher String
See our documentation
measure String
Possible Values: ATTRIBUTE, OCCURRENCE
measureAttribute String
Attribute
dimensions string[]
no documentation available
enabled boolean
This setting is enabled (true) or disabled (false)
key string
Key
matcher string
See our documentation
measure string
Possible Values: ATTRIBUTE, OCCURRENCE
measureAttribute string
Attribute
dimensions Sequence[str]
no documentation available
enabled bool
This setting is enabled (true) or disabled (false)
key str
Key
matcher str
See our documentation
measure str
Possible Values: ATTRIBUTE, OCCURRENCE
measure_attribute str
Attribute
dimensions List<String>
no documentation available
enabled Boolean
This setting is enabled (true) or disabled (false)
key String
Key
matcher String
See our documentation
measure String
Possible Values: ATTRIBUTE, OCCURRENCE
measureAttribute String
Attribute

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.