Constants values are a set of values that an agent receive to configure its run-time behaviour. These values are defined in Heex Cloud by the users. They are retrieved and transmitted to the agent by agent Kernel based on the systemConf.json file. All ConstantValues are sent to the agent once identified on its first configuration. They will also get updated after the update of the configuration.
An example of constant value could be rostopics:["/demo/bool" "/gps/fix"]. In this example, the monitor retrieves the constant value rostopics to know which topics to monitor.

Usage

The API is the same for C++ and Python agents.

After the agent is ready, i.e when awaitReady returns, use the method getConstantValues() to retrieve a map of keys as string and values as vector of strings.

IntervalMonitor sampleInstance(monitorUuid, serverIp, serverPort);
sampleInstance.awaitReady()
std::unordered_map<std::string, std::vector<std::string>> constants = sampleInstance.getConstantValues()

You can then iterate through the constants variable based on your use cases.