Adapt to changed API in Gerrit core for creating metric fields

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I11b7ca07a61b77a68230e98fc8e77340ee57a5fe
diff --git a/java/com/google/gerrit/plugins/checks/CombinedCheckStateCache.java b/java/com/google/gerrit/plugins/checks/CombinedCheckStateCache.java
index c348550..bcbd429 100644
--- a/java/com/google/gerrit/plugins/checks/CombinedCheckStateCache.java
+++ b/java/com/google/gerrit/plugins/checks/CombinedCheckStateCache.java
@@ -87,8 +87,9 @@
               new Description("Latency for reloading combined check state")
                   .setCumulative()
                   .setUnit(Units.MILLISECONDS),
-              Field.ofBoolean(
-                  "updated", "whether reloading resulted in updating the cached value"));
+              Field.ofBoolean("updated")
+                  .description("whether reloading resulted in updating the cached value")
+                  .build());
       reloadCount = AtomicLongMap.create();
     }