Spring Boot 3 · Example Payload

Spring Boot 3 Get Metric Example

EnterpriseFrameworkJavaMicroservicesREST APISpring Boot

Spring Boot 3 Get Metric Example is an example object payload from Spring Boot 3, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "http://localhost:8080/actuator/metrics/jvm.memory.used?tag=area:heap",
    "headers": {
      "Accept": "application/json"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "name": "jvm.memory.used",
      "description": "The amount of used memory",
      "baseUnit": "bytes",
      "measurements": [
        {
          "statistic": "VALUE",
          "value": 186142720
        }
      ],
      "availableTags": [
        {
          "tag": "area",
          "values": ["heap", "nonheap"]
        },
        {
          "tag": "id",
          "values": ["G1 Eden Space", "G1 Survivor Space", "G1 Old Gen"]
        }
      ]
    }
  }
}