Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BulkRetireHosts to Hosts API #137

Merged
merged 1 commit into from Sep 22, 2022
Merged

Conversation

tosuke
Copy link
Contributor

@tosuke tosuke commented Sep 7, 2022

hosts_test.go Show resolved Hide resolved
Copy link
Member

@Arthur1 Arthur1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tosuke Thank you for your pull request!

Can you just add a comment, please?

@@ -295,6 +295,15 @@ func (c *Client) RetireHost(id string) error {
return err
}

// BulkRetireHosts retires the hosts
func (c *Client) BulkRetireHosts(ids []string) error {
Copy link
Member

@Arthur1 Arthur1 Sep 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

POST /api/v0/hosts/bulk-retire endpoint places a limit on the number of hosts to retire. It is more careful to note about the limitation in the function comments. (It is not necessary to write a specific number, as the limit may change.)

@Arthur1
Copy link
Member

Arthur1 commented Sep 22, 2022

@tosuke
We will take care of the minor modifications. Thank you for your contribution!

@Arthur1 Arthur1 merged commit 5b7f6ca into mackerelio:master Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants