boolean isValid(Instant now, Duration ttl) {
            return (metrics != null) && !metrics.isEmpty() && now.isBefore(timestamp.plus(ttl));
        }
Convenience class for storing a metrics snapshot with its timestamp.
metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/NodeMetricsClient.java