I want to restrict my output to last 7 days everytime the dashboard refreshes. I have a tile which bring me all the failed job list. I want to restrict it programatically to get only last 7 days. My tile code looks like this.
I tried all these possible options, but the issue seems to be that I can’t combine fetch command with my command. I thought it would have easier to implement. “cloud.aws.amazonmwaa.dagDurationFailedByAccountIdDAGEnvironmentRegion:filter(eq(“environment”,“sandbox-test”))”
Hi @sandytheSeeker , from the screenshot you seem to be running the query in Data explorer , if you are after DQL queries you need to use something like Notebooks
As p_devulapalli mentioned it looks like you’re trying to use our new query language on classic dashboards which unfortunately is not supported. If you are using Dynatrace SaaS you could try the new dashboards app. Within the new dashboards app you will be able to query logs, metrics, events and other data using DQL allowing for things such as the fetch command.
On new dashboards to set a timeframe on a specific tile edit the tile and custom timeframes can be found under the query or you can set it in the query as well:
Alternatively on old dashboards you can set the default timeframe for a dashboard or a specific tile. For the whole dashboard edit the dashboard and then instead of the tiles tab, select the settings tab on the right as seen below:
I have found above useful and didn’t know if we have that timeframe configure option at edit tile level. I was trying to implement it at metric logic level.