@@ -78,13 +78,13 @@ private ResponseFieldsSnippet buildInfo() {
78
78
}
79
79
80
80
private ResponseFieldsSnippet osInfo () {
81
- return responseFields (beneathPath ("os" ), osInfoField ("name" , "Name" ), osInfoField ("version" , "Version" ),
82
- osInfoField ("arch" , "Architecture" ));
81
+ return responseFields (beneathPath ("os" ), osInfoField ("name" , "Name of the operating system" ),
82
+ osInfoField ("version" , "Version of the operating system" ),
83
+ osInfoField ("arch" , "Architecture of the operating system" ));
83
84
}
84
85
85
86
private FieldDescriptor osInfoField (String field , String desc ) {
86
- return fieldWithPath (field )
87
- .description ("Operating System " + desc + " (as obtained from the 'os." + field + "' system property)." )
87
+ return fieldWithPath (field ).description (desc + " (as obtained from the 'os." + field + "' system property)." )
88
88
.type (JsonFieldType .STRING )
89
89
.optional ();
90
90
}
@@ -95,7 +95,20 @@ private ResponseFieldsSnippet processInfo() {
95
95
fieldWithPath ("parentPid" ).description ("Parent Process ID (or -1)." ).type (JsonFieldType .NUMBER ),
96
96
fieldWithPath ("owner" ).description ("Process owner." ).type (JsonFieldType .STRING ),
97
97
fieldWithPath ("cpus" ).description ("Number of CPUs available to the process." )
98
- .type (JsonFieldType .NUMBER ));
98
+ .type (JsonFieldType .NUMBER ),
99
+ fieldWithPath ("memory" ).description ("Memory information." ),
100
+ fieldWithPath ("memory.heap" ).description ("Heap memory." ),
101
+ fieldWithPath ("memory.heap.init" ).description ("The number of bytes initially requested by the JVM." ),
102
+ fieldWithPath ("memory.heap.used" ).description ("The number of bytes currently being used." ),
103
+ fieldWithPath ("memory.heap.committed" ).description ("The number of bytes committed for JVM use." ),
104
+ fieldWithPath ("memory.heap.max" )
105
+ .description ("The maximum number of bytes that can be used by the JVM (or -1)." ),
106
+ fieldWithPath ("memory.nonHeap" ).description ("Non-heap memory." ),
107
+ fieldWithPath ("memory.nonHeap.init" ).description ("The number of bytes initially requested by the JVM." ),
108
+ fieldWithPath ("memory.nonHeap.used" ).description ("The number of bytes currently being used." ),
109
+ fieldWithPath ("memory.nonHeap.committed" ).description ("The number of bytes committed for JVM use." ),
110
+ fieldWithPath ("memory.nonHeap.max" )
111
+ .description ("The maximum number of bytes that can be used by the JVM (or -1)." ));
99
112
}
100
113
101
114
@ Configuration (proxyBeanMethods = false )
0 commit comments