1. Packages
  2. Dynatrace
  3. API Docs
  4. UserActionMetrics
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.UserActionMetrics

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    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 string
    The unique name of the resource.
    args UserActionMetricsArgs
    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 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 string
    The unique name of the resource.
    args UserActionMetricsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserActionMetricsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserActionMetricsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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",
                    },
                },
            },
        },
    });
    
    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"),
    				},
    			},
    		},
    	},
    })
    
    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());
    
    user_action_metrics_resource = dynatrace.UserActionMetrics("userActionMetricsResource",
        enabled=False,
        metric_key="string",
        value=dynatrace.UserActionMetricsValueArgs(
            type="string",
            field_name="string",
        ),
        dimensions=["string"],
        filters=dynatrace.UserActionMetricsFiltersArgs(
            filters=[dynatrace.UserActionMetricsFiltersFilterArgs(
                field_name="string",
                operator="string",
                value="string",
                value_ins=["string"],
            )],
        ))
    
    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"],
            }],
        },
    });
    
    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
    

    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

    The UserActionMetrics resource accepts the following input properties:

    Enabled bool
    This setting is enabled (true) or disabled (false)
    MetricKey string
    Metric key
    Value Lbrlabs.PulumiPackage.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", "name". For example, using "type" as a dimension allows you to split chart data based on the user action type.
    Filters Lbrlabs.PulumiPackage.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 bool
    This setting is enabled (true) or disabled (false)
    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 []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", "name". 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 Boolean
    This setting is enabled (true) or disabled (false)
    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 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", "name". 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 boolean
    This setting is enabled (true) or disabled (false)
    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", "name". 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 bool
    This setting is enabled (true) or disabled (false)
    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 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", "name". 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 Boolean
    This setting is enabled (true) or disabled (false)
    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.
    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", "name". 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)
    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.
    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", "name". 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 Lbrlabs.PulumiPackage.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 Lbrlabs.PulumiPackage.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", "name". 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", "name". 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", "name". 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", "name". 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", "name". 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

    UserActionMetricsFiltersFilter, UserActionMetricsFiltersFilterArgs

    FieldName string
    Operator string
    Value string
    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.
    ValueIns List<string>
    FieldName string
    Operator string
    Value string
    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.
    ValueIns []string
    fieldName String
    operator String
    value String
    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.
    valueIns List<String>
    fieldName string
    operator string
    value string
    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.
    valueIns string[]
    field_name str
    operator str
    value str
    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.
    value_ins Sequence[str]
    fieldName String
    operator String
    value String
    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.
    valueIns List<String>

    UserActionMetricsValue, UserActionMetricsValueArgs

    Type string
    Possible Values: COUNTER, FIELD
    FieldName string
    Field name
    Type string
    Possible Values: COUNTER, FIELD
    FieldName string
    Field name
    type String
    Possible Values: COUNTER, FIELD
    fieldName String
    Field name
    type string
    Possible Values: COUNTER, FIELD
    fieldName string
    Field name
    type str
    Possible Values: COUNTER, FIELD
    field_name str
    Field name
    type String
    Possible Values: COUNTER, FIELD
    fieldName String
    Field name

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs