Fix active monitoring add action in the host page

This commit is contained in:
emanuele-f 2020-04-30 15:00:09 +02:00
parent 4084412e40
commit abf91c2702
3 changed files with 30 additions and 17 deletions

View file

@ -525,6 +525,16 @@ end
-- ##############################################
--! @brief Check if the specified measurement is available
--! @return true if available, false otherwise
function am_utils.isMeasurementAvailable(measurement)
loadAmPlugins()
return(loaded_measurements[measurement] ~= nil)
end
-- ##############################################
--! @brief Get a list of granularities allowed the the measurements
--! @param measurement the measurement key for which the granularities should be returned
--! @return a list of allowed granularities <titlae, value> for the gui.