blob: 54d36b2943fe439803b8ee82b9f1fd38e27457a4 [file] [log] [blame]
#pragma once
#include <nlohmann/json.hpp>
#include <map>
#include <string>
#include <vector>
/** @brief Array of services to monitor */
using ServiceMonitorData = std::vector<std::string>;
using json = nlohmann::json;
extern bool gVerbose;
/** @brief Parse input json file(s) for services to monitor
*
* @note This function will throw exceptions for an invalid json file
* @note See phosphor-service-monitor-default.json for example of json file
* format
*
* @param[in] filePaths - The file(s) to parse
*
* @return Service(s) to monitor for errors
*/
ServiceMonitorData parseServiceFiles(const std::vector<std::string>& filePaths);