Skip to content

Commit

Permalink
Accept anonymize parameter in ServerHealthInfo (#242)
Browse files Browse the repository at this point in the history
This will be passed as is to the minio healthinfo api. It will be used
by minio to decide whether to perform "strict" or "standard"
anonymization.
  • Loading branch information
anjalshireesh authored Oct 30, 2023
1 parent d822cfb commit cd6ff27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion health.go
Original file line number Diff line number Diff line change
Expand Up @@ -1099,9 +1099,10 @@ type HealthInfoVersionStruct struct {

// ServerHealthInfo - Connect to a minio server and call Health Info Management API
// to fetch server's information represented by HealthInfo structure
func (adm *AdminClient) ServerHealthInfo(ctx context.Context, types []HealthDataType, deadline time.Duration) (*http.Response, string, error) {
func (adm *AdminClient) ServerHealthInfo(ctx context.Context, types []HealthDataType, deadline time.Duration, anonymize string) (*http.Response, string, error) {
v := url.Values{}
v.Set("deadline", deadline.Truncate(1*time.Second).String())
v.Set("anonymize", anonymize)
for _, d := range HealthDataTypesList { // Init all parameters to false.
v.Set(string(d), "false")
}
Expand Down

0 comments on commit cd6ff27

Please sign in to comment.