| 690 | } |
| 691 | |
| 692 | MeasureManagerServer::ResponseType MeasureManagerServer::internal_state([[maybe_unused]] const web::json::value& body) { |
| 693 | Json::Value result; |
| 694 | result["status"] = "running"; |
| 695 | result["my_measures_dir"] = my_measures_dir.generic_string(); |
| 696 | |
| 697 | auto internalState = m_measureManager.internalState(); |
| 698 | for (const auto& key : internalState.getMemberNames()) { |
| 699 | result[key] = internalState[key]; |
| 700 | } |
| 701 | |
| 702 | return {web::http::status_codes::OK, toWebJSON(result)}; |
| 703 | } |
| 704 | |
| 705 | MeasureManagerServer::ResponseType MeasureManagerServer::reset([[maybe_unused]] const web::json::value& body) { |
| 706 | m_measureManager.reset(); |
nothing calls this directly
no test coverage detected