)]}'
{
  "commit": "c51d7ab7ba137b9a663b4b0dfdb033f533224063",
  "tree": "f9bccbcd156b145f0182f521d26164dce7835c75",
  "parents": [
    "93982a6255c1a63c7428c744bdc51b785ec77323"
  ],
  "author": {
    "name": "Fabio Ponciroli",
    "email": "ponch78@gmail.com",
    "time": "Tue Apr 13 16:11:08 2021 +0200"
  },
  "committer": {
    "name": "Fabio Ponciroli",
    "email": "ponch78@gmail.com",
    "time": "Tue Apr 13 21:09:17 2021 +0200"
  },
  "message": "Missing global metric\n\nGlobal metrics for success/failure of the checks rely on\nthe API ones exposed by default by Gerrit.\n\nSince replicas don\u0027t have a REST API those metrics are\nnot exposed.\n\nAs part if this change the calculation of response code code\nfor the HealthCheckStatusEndpoint has been moved to the\nGlobalHealthCheck.\nApart for fixing the responsability of this method, it also helps\nin the global metric exposure.\n\nBug: Issue 14381\nChange-Id: I586576d0b49da284004da7dbc4fa69ea4db469ef\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "edc32239899e59abbcb8146ab7dee87f1ffeb72b",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckMetrics.java",
      "new_id": "fb298fd67dd18e0c955d6814684f5990b221f93d",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckMetrics.java"
    },
    {
      "type": "modify",
      "old_id": "ecae202d06c034fd8520f8a04ed05285c88b9005",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java",
      "new_id": "9e0a607662ec6abfe3f0b3c7e34a49c7a16ed583",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java"
    },
    {
      "type": "modify",
      "old_id": "76e8706c5db911bafc8e2e07c1efaf091b5d903e",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/GlobalHealthCheck.java",
      "new_id": "c9066c590c21de83a89ca48861bc0edc47f88a65",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/GlobalHealthCheck.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a1c792e6a1e1214644b0eb9641b815bd0120c0b9",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/healthcheck/GlobalHealthCheckTest.java"
    },
    {
      "type": "modify",
      "old_id": "9955a3348fd13ebec457740d2f7e07331e1b0edf",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckMetricsTest.java",
      "new_id": "fb64048683e8cba6cdeb28bcc23d6148dc0eb05b",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckMetricsTest.java"
    }
  ]
}
