[skip ci] Add desc comments for GetSystemInfoMetrics (#9339)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-10-06 19:30:37 +08:00 committed by GitHub
parent e03b6be678
commit 5f309f64ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()