changeset 270:025c66961cf9

Update jvm-memory swagger spec to also contain resident memory Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025253.html
author Miloslav Zezulka <mzezulka@redhat.com>
date Mon, 02 Oct 2017 14:41:38 +0200
parents abcc0226b293
children c7af874342ed
files services/jvm-memory/src/main/resources/jvm-memory-swagger.yaml
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/services/jvm-memory/src/main/resources/jvm-memory-swagger.yaml	Tue Oct 03 14:20:18 2017 -0400
+++ b/services/jvm-memory/src/main/resources/jvm-memory-swagger.yaml	Mon Oct 02 14:41:38 2017 +0200
@@ -100,7 +100,9 @@
       jvmId:
         type: string
       timeStamp:
-        $ref: '#/definitions/timestamp'
+        allOf:
+          - $ref: '#/definitions/metric'
+          - description: UNIX timestamp in milliseconds
       metaspaceMaxCapacity:
         $ref: '#/definitions/metric'
       metaspaceMinCapacity:
@@ -109,6 +111,10 @@
         $ref: '#/definitions/metric'
       metaspaceUsed:
         $ref: '#/definitions/metric'
+      residentMemory:
+        allOf:
+          - $ref: '#/definitions/metric'
+          - description: Resident memory size in KB
       generations:
         type: array
         items:
@@ -168,13 +174,6 @@
     properties:
       $numberLong:
         type: string
-  timestamp:
-    description: UNIX timestamp in milliseconds
-    type: object
-    properties:
-      $numberLong:
-        type: string
-
   put-body:
     type: object
     properties: