Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
dynatrace.UserSessionMetrics
Explore with Pulumi AI
Create UserSessionMetrics Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserSessionMetrics(name: string, args: UserSessionMetricsArgs, opts?: CustomResourceOptions);
@overload
def UserSessionMetrics(resource_name: str,
args: UserSessionMetricsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UserSessionMetrics(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
metric_key: Optional[str] = None,
value: Optional[UserSessionMetricsValueArgs] = None,
dimensions: Optional[Sequence[str]] = None,
filters: Optional[UserSessionMetricsFiltersArgs] = None)
func NewUserSessionMetrics(ctx *Context, name string, args UserSessionMetricsArgs, opts ...ResourceOption) (*UserSessionMetrics, error)
public UserSessionMetrics(string name, UserSessionMetricsArgs args, CustomResourceOptions? opts = null)
public UserSessionMetrics(String name, UserSessionMetricsArgs args)
public UserSessionMetrics(String name, UserSessionMetricsArgs args, CustomResourceOptions options)
type: dynatrace:UserSessionMetrics
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 UserSessionMetricsArgs
- 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 UserSessionMetricsArgs
- 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 UserSessionMetricsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserSessionMetricsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserSessionMetricsArgs
- 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 userSessionMetricsResource = new Dynatrace.UserSessionMetrics("userSessionMetricsResource", new()
{
Enabled = false,
MetricKey = "string",
Value = new Dynatrace.Inputs.UserSessionMetricsValueArgs
{
Type = "string",
FieldName = "string",
},
Dimensions = new[]
{
"string",
},
Filters = new Dynatrace.Inputs.UserSessionMetricsFiltersArgs
{
Filters = new[]
{
new Dynatrace.Inputs.UserSessionMetricsFiltersFilterArgs
{
FieldName = "string",
Operator = "string",
Value = "string",
ValueIns = new[]
{
"string",
},
},
},
},
});
example, err := dynatrace.NewUserSessionMetrics(ctx, "userSessionMetricsResource", &dynatrace.UserSessionMetricsArgs{
Enabled: pulumi.Bool(false),
MetricKey: pulumi.String("string"),
Value: &dynatrace.UserSessionMetricsValueArgs{
Type: pulumi.String("string"),
FieldName: pulumi.String("string"),
},
Dimensions: pulumi.StringArray{
pulumi.String("string"),
},
Filters: &dynatrace.UserSessionMetricsFiltersArgs{
Filters: dynatrace.UserSessionMetricsFiltersFilterArray{
&dynatrace.UserSessionMetricsFiltersFilterArgs{
FieldName: pulumi.String("string"),
Operator: pulumi.String("string"),
Value: pulumi.String("string"),
ValueIns: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
})
var userSessionMetricsResource = new UserSessionMetrics("userSessionMetricsResource", UserSessionMetricsArgs.builder()
.enabled(false)
.metricKey("string")
.value(UserSessionMetricsValueArgs.builder()
.type("string")
.fieldName("string")
.build())
.dimensions("string")
.filters(UserSessionMetricsFiltersArgs.builder()
.filters(UserSessionMetricsFiltersFilterArgs.builder()
.fieldName("string")
.operator("string")
.value("string")
.valueIns("string")
.build())
.build())
.build());
user_session_metrics_resource = dynatrace.UserSessionMetrics("userSessionMetricsResource",
enabled=False,
metric_key="string",
value=dynatrace.UserSessionMetricsValueArgs(
type="string",
field_name="string",
),
dimensions=["string"],
filters=dynatrace.UserSessionMetricsFiltersArgs(
filters=[dynatrace.UserSessionMetricsFiltersFilterArgs(
field_name="string",
operator="string",
value="string",
value_ins=["string"],
)],
))
const userSessionMetricsResource = new dynatrace.UserSessionMetrics("userSessionMetricsResource", {
enabled: false,
metricKey: "string",
value: {
type: "string",
fieldName: "string",
},
dimensions: ["string"],
filters: {
filters: [{
fieldName: "string",
operator: "string",
value: "string",
valueIns: ["string"],
}],
},
});
type: dynatrace:UserSessionMetrics
properties:
dimensions:
- string
enabled: false
filters:
filters:
- fieldName: string
operator: string
value: string
valueIns:
- string
metricKey: string
value:
fieldName: string
type: string
UserSessionMetrics 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 UserSessionMetrics resource accepts the following input properties:
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metric
Key string - Metric key
- Value
Pulumiverse.
Dynatrace. Inputs. User Session Metrics Value - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- Filters
Pulumiverse.
Dynatrace. Inputs. User Session Metrics Filters - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metric
Key string - Metric key
- Value
User
Session Metrics Value Args - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- Filters
User
Session Metrics Filters Args - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - metric
Key String - Metric key
- value
User
Session Metrics Value - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- filters
User
Session Metrics Filters - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - metric
Key string - Metric key
- value
User
Session Metrics Value - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- filters
User
Session Metrics Filters - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - metric_
key str - Metric key
- value
User
Session Metrics Value Args - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- filters
User
Session Metrics Filters Args - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - metric
Key String - Metric key
- value Property Map
- Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- filters Property Map
- Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserSessionMetrics 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 UserSessionMetrics Resource
Get an existing UserSessionMetrics 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?: UserSessionMetricsState, opts?: CustomResourceOptions): UserSessionMetrics
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dimensions: Optional[Sequence[str]] = None,
enabled: Optional[bool] = None,
filters: Optional[UserSessionMetricsFiltersArgs] = None,
metric_key: Optional[str] = None,
value: Optional[UserSessionMetricsValueArgs] = None) -> UserSessionMetrics
func GetUserSessionMetrics(ctx *Context, name string, id IDInput, state *UserSessionMetricsState, opts ...ResourceOption) (*UserSessionMetrics, error)
public static UserSessionMetrics Get(string name, Input<string> id, UserSessionMetricsState? state, CustomResourceOptions? opts = null)
public static UserSessionMetrics get(String name, Output<String> id, UserSessionMetricsState 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.
- 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Filters
Pulumiverse.
Dynatrace. Inputs. User Session Metrics Filters - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- Metric
Key string - Metric key
- Value
Pulumiverse.
Dynatrace. Inputs. User Session Metrics Value - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Filters
User
Session Metrics Filters Args - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- Metric
Key string - Metric key
- Value
User
Session Metrics Value Args - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - filters
User
Session Metrics Filters - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- metric
Key String - Metric key
- value
User
Session Metrics Value - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - filters
User
Session Metrics Filters - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- metric
Key string - Metric key
- value
User
Session Metrics Value - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - filters
User
Session Metrics Filters Args - Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- metric_
key str - Metric key
- value
User
Session Metrics Value Args - Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session 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 "browserFamily", "userType", "country". For example, using "userType" as a dimension allows you to split chart data based on user types.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - filters Property Map
- Defines the filters for the user session. 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 "userType equals REAL_USER" will give you only data from real users, while forcing the synthetic sessions to be ignored.
- metric
Key String - Metric key
- value Property Map
- Defines the type of value to be extracted from the user session. When using User session counter, the number of user sessions is counted (similar to count(*) when using USQL). When using User session field value, the value of a user session field is extracted.
Supporting Types
UserSessionMetricsFilters, UserSessionMetricsFiltersArgs
UserSessionMetricsFiltersFilter, UserSessionMetricsFiltersFilterArgs
- field_
name str - Field name
- operator 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
UserSessionMetricsValue, UserSessionMetricsValueArgs
- type str
- Possible Values:
COUNTER
,FIELD
- field_
name str - Field name
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.