Static list of environment as a variable for segment

Can I have static list of environment as a variable for segment?

Hi Susmita

Yes, you can have a static list of environments as a variable for a segment in Dynatrace.

Dynatrace segments support variables whose values can be configured statically or dynamically. The static approach is ideal when your environment names (e.g., Production, Staging, Dev) are stable and do not need to be discovered from your data.

You define the static list of values directly using the Dynatrace Query Language (DQL) data command within the variable configuration.
The following DQL query defines a variable (let’s call it $env_name) with a static list of three environments:

data
record(env_name="Production"), 
record(env_name="Staging"), 
record(env_name="Development")

You can also check the official documentation here

Best,
Anderson