fix: byHost realTime metrics API (#17681)

This commit is contained in:
jiuker
2023-07-19 14:50:30 +08:00
committed by GitHub
parent 6426b74770
commit a99cd825ab
4 changed files with 21 additions and 3 deletions

View File

@@ -214,6 +214,9 @@ func (client *peerRESTClient) GetMetrics(ctx context.Context, t madmin.MetricTyp
for disk := range opts.disks {
values.Set(peerRESTDisk, disk)
}
for host := range opts.hosts {
values.Add(peerRESTHost, host)
}
values.Set(peerRESTJobID, opts.jobID)
values.Set(peerRESTDepID, opts.depID)