.. index:: pair: namespace; gpr::track .. _doxid-namespacegpr_1_1track: namespace gpr::track ==================== .. toctree:: :hidden: class_gpr_track_JsonRecord.rst class_gpr_track_MlflowRestClient.rst class_gpr_track_MlflowRun.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace track { // classes class :ref:`JsonRecord`; class :ref:`MlflowRestClient`; class :ref:`MlflowRun`; // global functions std::string :ref:`sanitizeKey`(std::string_view key); std::string :ref:`jsonStringField`(std::string_view json, std::string_view key); void :ref:`setActiveRun`(:ref:`MlflowRun`* run); :ref:`MlflowRun`* :target:`activeRun`(); } // namespace track .. _details-namespacegpr_1_1track: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; sanitizeKey .. _doxid-namespacegpr_1_1track_1a5c557ead9a5ff3e81985c3345c2ca648: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string sanitizeKey(std::string_view key) MLflow key alphabet: alphanumerics, underscore, dash, dot, space, slash. .. index:: pair: function; jsonStringField .. _doxid-namespacegpr_1_1track_1afde20315da9a47dacc291c383dc99a36: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string jsonStringField(std::string_view json, std::string_view key) Extract a string field from a flat JSON response (``"key":"value"``); empty when absent. .. index:: pair: function; setActiveRun .. _doxid-namespacegpr_1_1track_1a56afacbf2d7a405f87b688bca148208c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setActiveRun(:ref:`MlflowRun`* run) The process-wide run the search components log to; nullptr when tracking is off.