Skip to content

Commit

Permalink
Merge pull request #25 from dell/update-API-for-IOinProgress
Browse files Browse the repository at this point in the history
Added numeric = true parameter for faster response
  • Loading branch information
bpjain2004 authored May 18, 2022
2 parents d204171 + cdc0821 commit 9b49506
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/v3/api_v3_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ func GetIsiStats(
return resp, err
}

// IsIOInProgress returns the list of clients currently performing IO on the particular array
func IsIOInProgress(ctx context.Context,
client api.Client) (resp *ExportClientList, err error) {
err = client.Get(
ctx, string(platfromStatsPath), "summary/client", nil,
ctx, string(platfromStatsPath), "summary/client", api.OrderedValues{
{[]byte("numeric"), []byte("true")}, // numeric=true returns the response faster since it does not performs reverse lookup and returns IP addresses
},
nil,
&resp)
return resp, err
Expand Down

0 comments on commit 9b49506

Please sign in to comment.