Local create metric (original) (raw)

Metrics dashboard allows you to create your own metrics. This is useful when you want to debug or simply see the shape of data. In this tutorial you will learn how to create your own metric that will show up on the Metrics dashboard.

Steps to follow

--DataXQuery-- T1 = Select COUNT(deviceDetails.deviceId) AS deviceCount FROM DataXProcessedInput WHERE deviceDetails.homeId=150;

DeviceCount = CreateMetrics(T1, deviceCount);

OUTPUT DeviceCount TO Metrics;

View Metrics

Note

OUTPUT GarageDoorStatusOneForLocked, GarageDoorSlidingMinutesOpenedIn5minutes, GarageMinutesOpenedInAnHour TO Metrics;

New Metric