diff Core/Enumerations.cpp @ 3174:8ea7c4546c3a

primitives to collect metrics in Orthanc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Jan 2019 15:15:48 +0100
parents ce272138f15e
children 810772486249
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Tue Jan 29 10:34:00 2019 +0100
+++ b/Core/Enumerations.cpp	Tue Jan 29 15:15:48 2019 +0100
@@ -1103,6 +1103,10 @@
                 
       case MimeType_Woff:
         return MIME_WOFF;
+
+      case MimeType_PrometheusText:
+        // https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format
+        return "text/plain; version=0.0.4";
                 
       default:
         throw OrthancException(ErrorCode_ParameterOutOfRange);