Template variables
Check out the Templating documentation for an introduction to the templating feature and the different types of template variables.
Where a subscription ID is not specified, a default subscription must be specified in the data source configuration, which will be used.
Query | Description |
---|---|
workspace(“myWorkspace”).Heartbeat | distinct Computer | Returns a list of Virtual Machines |
workspace(“$workspace”).Heartbeat | distinct Computer | Returns a list of Virtual Machines with template variable |
workspace(“$workspace”).Perf | distinct ObjectName | Returns a list of objects from the Perf table |
workspace(“$workspace”).Perf | where ObjectName == “$object” | distinct CounterName | Returns a list of metric names from the Perf table |
Example of a time series query using variables: