[Limits] Add metadata to SWGs

Add telemetry metadata to Sine Wave Generators to support
utilizing telemetry in a 'datum' format, to match designed
API for WTD-1223.
This commit is contained in:
Victor Woeltjen
2015-06-09 09:31:22 -07:00
parent 35b5b29d03
commit 781a1a4be5
2 changed files with 18 additions and 1 deletions

View File

@ -61,6 +61,7 @@ define(
return LIMITS;
},
evaluate: function (datum, range) {
range = range || 'sin';
if (datum[range] > RED) {
return LIMITS.rh;
}