Mercurial > hg > orthanc
changeset 6618:97e5d43c335b
CPP wrapper: SetMetrics for int
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Fri, 13 Mar 2026 18:12:54 +0100 |
| parents | 55e17dc7ef0d |
| children | 94ce05ebc75c |
| files | OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h |
| diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Thu Mar 12 18:23:12 2026 +0100 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Fri Mar 13 18:12:54 2026 +0100 @@ -1031,6 +1031,13 @@ value, OrthancPluginMetricsType_Default); } + inline void SetMetricsValue(const char* name, + int64_t value) + { + OrthancPluginSetMetricsIntegerValue(GetGlobalContext(), name, + value, OrthancPluginMetricsType_Default); + } + class MetricsTimer : public boost::noncopyable { private:
