You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!options.value)thrownewError('"value" is missing')
Currently it is not possible to report a metric of zero because the library checks the value as shown above. Shouldn't the library rather check if the value is undefined, null, or an empty string?
This would allow the library to report values of zero.
if(options.value==undefined||options.value==='')thrownewError('"value" is missing')
Happy to submit a PR.
The text was updated successfully, but these errors were encountered:
zabbix-promise/lib/utils.js
Line 39 in 2bd01c2
Currently it is not possible to report a metric of zero because the library checks the
value
as shown above. Shouldn't the library rather check if the value isundefined
,null
, or an empty string?This would allow the library to report values of zero.
Happy to submit a PR.
The text was updated successfully, but these errors were encountered: