# HG changeset patch # User Sebastien Jodogne # Date 1755006466 -7200 # Node ID 08f05cf975020b893301abf27b5ff95350b262d4 # Parent 05049a4d6782e0262a5cecb4c284df810290b792 added OrthancPluginSetMetricsIntegerValue to the code model diff -r 05049a4d6782 -r 08f05cf97502 OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json --- a/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Tue Aug 12 11:48:07 2025 +0200 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Tue Aug 12 15:47:46 2025 +0200 @@ -5122,6 +5122,44 @@ "args": [ { "name": "arg0", + "sdk_name": "name", + "sdk_type": "const char *" + }, + { + "name": "arg1", + "sdk_name": "value", + "sdk_type": "int64_t" + }, + { + "name": "arg2", + "sdk_enumeration": "OrthancPluginMetricsType", + "sdk_name": "type", + "sdk_type": "enumeration" + } + ], + "c_function": "OrthancPluginSetMetricsIntegerValue", + "documentation": { + "args": { + "name": "The name of the metrics to be set.", + "type": "The type of the metrics. This parameter is only taken into consideration the first time this metrics is set.", + "value": "The value of the metrics." + }, + "description": [ + "This function sets the value of an integer metrics to monitor the behavior of the plugin through tools such as Prometheus. The values of all the metrics are stored within the Orthanc context." + ], + "summary": "Set the value of an integer metrics." + }, + "return_sdk_type": "void", + "since_sdk": [ + 1, + 12, + 1 + ] + }, + { + "args": [ + { + "name": "arg0", "sdk_name": "threadName", "sdk_type": "const char *" } diff -r 05049a4d6782 -r 08f05cf97502 OrthancServer/Resources/CodeModel/GenerateCodeModel.py --- a/OrthancServer/Resources/CodeModel/GenerateCodeModel.py Tue Aug 12 11:48:07 2025 +0200 +++ b/OrthancServer/Resources/CodeModel/GenerateCodeModel.py Tue Aug 12 15:47:46 2025 +0200 @@ -246,6 +246,7 @@ elif arg['sdk_type'] in [ 'float', 'int32_t', + 'int64_t', 'uint8_t', 'uint16_t', 'uint32_t',