From 5f309f64eecb924d76ed694a498d8f4d404a571d Mon Sep 17 00:00:00 2001 From: dragondriver Date: Wed, 6 Oct 2021 19:30:37 +0800 Subject: [PATCH] [skip ci] Add desc comments for GetSystemInfoMetrics (#9339) Signed-off-by: dragondriver --- internal/util/metricsinfo/cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/util/metricsinfo/cache.go b/internal/util/metricsinfo/cache.go index 17ee460d16..d8a14abd0e 100644 --- a/internal/util/metricsinfo/cache.go +++ b/internal/util/metricsinfo/cache.go @@ -86,6 +86,7 @@ func (manager *MetricsCacheManager) IsSystemInfoMetricsValid() bool { (time.Since(manager.systemInfoMetricsLastUpdatedTime) < retention) } +// GetSystemInfoMetrics returns the cached system information metrics. func (manager *MetricsCacheManager) GetSystemInfoMetrics() (*milvuspb.GetMetricsResponse, error) { retention := manager.GetRetention()