30 May 2025
07:45 PM
- last edited on
02 Jun 2025
08:01 AM
by
MaciejNeumann
I am trying to convert this code from the old dash board to have it working on the new dashboard but is not showing.
The migration of the dashboard did not get this righ.
Count The no of Management Zone:
timeseries {
management_zone_count = count(dt.entities, filter: { entity.type == "MANAGEMENT_ZONE" })
}
Count the Numbers of Tag:
timeseries {
applied_tags_count = count(dt.entities, filter: { entity.type == "TAG" })
}
I also tried this but none is working -
fetch dt.metrics
| filter startsWith(metric.key, "dt.sfm.server.automatically_applied_tags")
fetch dt.entities
| filter entity.type == "TAG"
| summarize count()
fetch dt.metrics
| filter startsWith(metric.key, "dt.sfm.server.management_zones")
fetch dt.entities
| filter entity.type == "MANAGEMENT_ZONE"
| summarize count()
Any help is much appreciated.
Marwan...