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

dynatrace.UserActionMetrics

Explore with Pulumi AI

Create UserActionMetrics Resource

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

Constructor syntax

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

@overload
def UserActionMetrics(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      enabled: Optional[bool] = None,
                      metric_key: Optional[str] = None,
                      value: Optional[UserActionMetricsValueArgs] = None,
                      dimensions: Optional[Sequence[str]] = None,
                      filters: Optional[UserActionMetricsFiltersArgs] = None)
func NewUserActionMetrics(ctx *Context, name string, args UserActionMetricsArgs, opts ...ResourceOption) (*UserActionMetrics, error)
public UserActionMetrics(string name, UserActionMetricsArgs args, CustomResourceOptions? opts = null)
public UserActionMetrics(String name, UserActionMetricsArgs args)
public UserActionMetrics(String name, UserActionMetricsArgs args, CustomResourceOptions options)
type: dynatrace:UserActionMetrics
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. UserActionMetricsArgs
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. UserActionMetricsArgs
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. UserActionMetricsArgs
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. UserActionMetricsArgs
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. UserActionMetricsArgs
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 userActionMetricsResource = new Dynatrace.UserActionMetrics("userActionMetricsResource", new()
{
    Enabled = false,
    MetricKey = "string",
    Value = new Dynatrace.Inputs.UserActionMetricsValueArgs
    {
        Type = "string",
        FieldName = "string",
    },
    Dimensions = new[]
    {
        "string",
    },
    Filters = new Dynatrace.Inputs.UserActionMetricsFiltersArgs
    {
        Filters = new[]
        {
            new Dynatrace.Inputs.UserActionMetricsFiltersFilterArgs
            {
                FieldName = "string",
                Operator = "string",
                Value = "string",
                ValueIns = new[]
                {
                    "string",
                },
            },
        },
    },
});
Copy
example, err := dynatrace.NewUserActionMetrics(ctx, "userActionMetricsResource", &dynatrace.UserActionMetricsArgs{
	Enabled:   pulumi.Bool(false),
	MetricKey: pulumi.String("string"),
	Value: &dynatrace.UserActionMetricsValueArgs{
		Type:      pulumi.String("string"),
		FieldName: pulumi.String("string"),
	},
	Dimensions: pulumi.StringArray{
		pulumi.String("string"),
	},
	Filters: &dynatrace.UserActionMetricsFiltersArgs{
		Filters: dynatrace.UserActionMetricsFiltersFilterArray{
			&dynatrace.UserActionMetricsFiltersFilterArgs{
				FieldName: pulumi.String("string"),
				Operator:  pulumi.String("string"),
				Value:     pulumi.String("string"),
				ValueIns: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
	},
})
Copy
var userActionMetricsResource = new UserActionMetrics("userActionMetricsResource", UserActionMetricsArgs.builder()
    .enabled(false)
    .metricKey("string")
    .value(UserActionMetricsValueArgs.builder()
        .type("string")
        .fieldName("string")
        .build())
    .dimensions("string")
    .filters(UserActionMetricsFiltersArgs.builder()
        .filters(UserActionMetricsFiltersFilterArgs.builder()
            .fieldName("string")
            .operator("string")
            .value("string")
            .valueIns("string")
            .build())
        .build())
    .build());
Copy
user_action_metrics_resource = dynatrace.UserActionMetrics("userActionMetricsResource",
    enabled=False,
    metric_key="string",
    value={
        "type": "string",
        "field_name": "string",
    },
    dimensions=["string"],
    filters={
        "filters": [{
            "field_name": "string",
            "operator": "string",
            "value": "string",
            "value_ins": ["string"],
        }],
    })
Copy
const userActionMetricsResource = new dynatrace.UserActionMetrics("userActionMetricsResource", {
    enabled: false,
    metricKey: "string",
    value: {
        type: "string",
        fieldName: "string",
    },
    dimensions: ["string"],
    filters: {
        filters: [{
            fieldName: "string",
            operator: "string",
            value: "string",
            valueIns: ["string"],
        }],
    },
});
Copy
type: dynatrace:UserActionMetrics
properties:
    dimensions:
        - string
    enabled: false
    filters:
        filters:
            - fieldName: string
              operator: string
              value: string
              valueIns:
                - string
    metricKey: string
    value:
        fieldName: string
        type: string
Copy

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

Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
MetricKey This property is required. string
Metric key
Value This property is required. Pulumiverse.Dynatrace.Inputs.UserActionMetricsValue
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
Dimensions List<string>
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
Filters Pulumiverse.Dynatrace.Inputs.UserActionMetricsFilters
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
MetricKey This property is required. string
Metric key
Value This property is required. UserActionMetricsValueArgs
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
Dimensions []string
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
Filters UserActionMetricsFiltersArgs
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
metricKey This property is required. String
Metric key
value This property is required. UserActionMetricsValue
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions List<String>
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
filters UserActionMetricsFilters
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
enabled This property is required. boolean
This setting is enabled (true) or disabled (false)
metricKey This property is required. string
Metric key
value This property is required. UserActionMetricsValue
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions string[]
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
filters UserActionMetricsFilters
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
enabled This property is required. bool
This setting is enabled (true) or disabled (false)
metric_key This property is required. str
Metric key
value This property is required. UserActionMetricsValueArgs
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions Sequence[str]
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
filters UserActionMetricsFiltersArgs
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
metricKey This property is required. String
Metric key
value This property is required. Property Map
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions List<String>
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
filters Property Map
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.

Outputs

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

Get an existing UserActionMetrics 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?: UserActionMetricsState, opts?: CustomResourceOptions): UserActionMetrics
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dimensions: Optional[Sequence[str]] = None,
        enabled: Optional[bool] = None,
        filters: Optional[UserActionMetricsFiltersArgs] = None,
        metric_key: Optional[str] = None,
        value: Optional[UserActionMetricsValueArgs] = None) -> UserActionMetrics
func GetUserActionMetrics(ctx *Context, name string, id IDInput, state *UserActionMetricsState, opts ...ResourceOption) (*UserActionMetrics, error)
public static UserActionMetrics Get(string name, Input<string> id, UserActionMetricsState? state, CustomResourceOptions? opts = null)
public static UserActionMetrics get(String name, Output<String> id, UserActionMetricsState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:UserActionMetrics    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>
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
Enabled bool
This setting is enabled (true) or disabled (false)
Filters Pulumiverse.Dynatrace.Inputs.UserActionMetricsFilters
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
MetricKey string
Metric key
Value Pulumiverse.Dynatrace.Inputs.UserActionMetricsValue
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
Dimensions []string
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
Enabled bool
This setting is enabled (true) or disabled (false)
Filters UserActionMetricsFiltersArgs
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
MetricKey string
Metric key
Value UserActionMetricsValueArgs
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions List<String>
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
enabled Boolean
This setting is enabled (true) or disabled (false)
filters UserActionMetricsFilters
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
metricKey String
Metric key
value UserActionMetricsValue
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions string[]
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
enabled boolean
This setting is enabled (true) or disabled (false)
filters UserActionMetricsFilters
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
metricKey string
Metric key
value UserActionMetricsValue
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions Sequence[str]
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
enabled bool
This setting is enabled (true) or disabled (false)
filters UserActionMetricsFiltersArgs
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
metric_key str
Metric key
value UserActionMetricsValueArgs
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.
dimensions List<String>
Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like "application", "type", "apdexCategory". For example, using "type" as a dimension allows you to split chart data based on the user action type.
enabled Boolean
This setting is enabled (true) or disabled (false)
filters Property Map
Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using "type equals Xhr" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored.
metricKey String
Metric key
value Property Map
Defines the type of value to be extracted from the user action. When using user action counter, the number of user actions is counted (similar to count(*) when using USQL). When using user action field value, the value of a user action field is extracted.

Supporting Types

UserActionMetricsFilters
, UserActionMetricsFiltersArgs

Filters This property is required. []UserActionMetricsFiltersFilter
filters This property is required. UserActionMetricsFiltersFilter[]
filters This property is required. List<Property Map>

UserActionMetricsFiltersFilter
, UserActionMetricsFiltersFilterArgs

FieldName This property is required. string
Field name
Operator This property is required. string
Possible Values: EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, IN, IS_NOT_NULL, IS_NULL, LESS_THAN, LESS_THAN_OR_EQUAL_TO, LIKE, NOT_EQUAL, NOT_LIKE, STARTS_WITH
Value string
no documentation available
ValueIns List<string>
Values
FieldName This property is required. string
Field name
Operator This property is required. string
Possible Values: EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, IN, IS_NOT_NULL, IS_NULL, LESS_THAN, LESS_THAN_OR_EQUAL_TO, LIKE, NOT_EQUAL, NOT_LIKE, STARTS_WITH
Value string
no documentation available
ValueIns []string
Values
fieldName This property is required. String
Field name
operator This property is required. String
Possible Values: EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, IN, IS_NOT_NULL, IS_NULL, LESS_THAN, LESS_THAN_OR_EQUAL_TO, LIKE, NOT_EQUAL, NOT_LIKE, STARTS_WITH
value String
no documentation available
valueIns List<String>
Values
fieldName This property is required. string
Field name
operator This property is required. string
Possible Values: EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, IN, IS_NOT_NULL, IS_NULL, LESS_THAN, LESS_THAN_OR_EQUAL_TO, LIKE, NOT_EQUAL, NOT_LIKE, STARTS_WITH
value string
no documentation available
valueIns string[]
Values
field_name This property is required. str
Field name
operator This property is required. str
Possible Values: EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, IN, IS_NOT_NULL, IS_NULL, LESS_THAN, LESS_THAN_OR_EQUAL_TO, LIKE, NOT_EQUAL, NOT_LIKE, STARTS_WITH
value str
no documentation available
value_ins Sequence[str]
Values
fieldName This property is required. String
Field name
operator This property is required. String
Possible Values: EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, IN, IS_NOT_NULL, IS_NULL, LESS_THAN, LESS_THAN_OR_EQUAL_TO, LIKE, NOT_EQUAL, NOT_LIKE, STARTS_WITH
value String
no documentation available
valueIns List<String>
Values

UserActionMetricsValue
, UserActionMetricsValueArgs

Type This property is required. string
Possible Values: COUNTER, FIELD
FieldName string
Field name
Type This property is required. string
Possible Values: COUNTER, FIELD
FieldName string
Field name
type This property is required. String
Possible Values: COUNTER, FIELD
fieldName String
Field name
type This property is required. string
Possible Values: COUNTER, FIELD
fieldName string
Field name
type This property is required. str
Possible Values: COUNTER, FIELD
field_name str
Field name
type This property is required. String
Possible Values: COUNTER, FIELD
fieldName String
Field name

Package Details

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