Find the data for a specific metric or KPI in the Argument by name or by wildcard. Metric and KPI name searches are case insensitive. 

If a wildcard is used and more than one entry matches the expression the first found will be returned - this is not usually what was intended so care should be taken when using wildcards to ensure that they match a single entry.

var issues = metrics.get('Critical Issues'); //find a metric by name

var issues = metrics.get('Critical*');    //find a metric by wildcard

Note that the returned list of facts may include multiple data points depending on previous date/time filters and the input data set. By default metrics data for the day is provided to the KPI calculations and for the last 30 days for KPI inputs. Both of these defaults can be changed on a per KPI basis.

Did this answer your question?