m/p/api: use protobuf.Duration in Management.Node

This switches Management.Node message's time_since_heartbeat backing
type from int64 to google.protobuf.Duration in order to enable duration
based predicates in Management.GetNodes filter expressions.

Change-Id: Ia2663475d1b9ee535dc5578f16d53b70c6686b7c
Reviewed-on: https://review.monogon.dev/c/monogon/+/776
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/proto/api/management.proto b/metropolis/proto/api/management.proto
index b48e2b1..d481339 100644
--- a/metropolis/proto/api/management.proto
+++ b/metropolis/proto/api/management.proto
@@ -2,6 +2,8 @@
 package metropolis.proto.api;
 option go_package = "source.monogon.dev/metropolis/proto/api";
 
+import "google/protobuf/duration.proto";
+
 import "metropolis/proto/common/common.proto";
 import "metropolis/proto/ext/authorization.proto";
 
@@ -140,7 +142,7 @@
     // time_since_heartbeat is the duration since the last of the node's
     // heartbeats was received, expressed in nanoseconds. It is only valid with
     // the health status of either HEALTHY or HEARTBEAT_TIMEOUT.
-    int64 time_since_heartbeat = 6;
+    google.protobuf.Duration time_since_heartbeat = 6;
 }
 
 message ApproveNodeRequest {