Commit 690e509d authored by Spyros Trigazis's avatar Spyros Trigazis Committed by Michele Tartara
Browse files

Add MonD's latest API Version in lib/constants.py



Extract the version number from MonD's own file into the constants file, so that
is can be accessed from other parts of the system as well (e.g.: to perform
queries over the MonD protocol).
Signed-off-by: default avatarSpyros Trigazis <strigazi@gmail.com>
Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent f30d0610
......@@ -2257,6 +2257,9 @@ CPUAVGLOAD_WINDOW_SIZE = 600
# Mond's variable for periodical data collection
MOND_TIME_INTERVAL = _constants.MOND_TIME_INTERVAL
# MonD's latest API version
MOND_LATEST_API_VERSION = 1
# Do not re-export imported modules
del re, _vcsversion, _constants, socket, pathutils, compat
......
......@@ -63,7 +63,7 @@ type PrepResult = Config Snap ()
-- | Version of the latest supported http API.
latestAPIVersion :: Int
latestAPIVersion = 1
latestAPIVersion = C.mondLatestApiVersion
-- | A report of a data collector might be stateful or stateless.
data Report = StatelessR (IO DCReport)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment