-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
/ingester/unregister-on-shutdown
HTTP endpoint (#7739)
* add initial implementation of HTTP /ingester/unregister-on-shutdown endpoint * add method comment * add docs * clarify documentation * register endpoint * add activity tracker * add CHANGELOG entry * remove unnecessary error check * make doc * Update docs/sources/mimir/references/http-api/index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * remove duplicate /ingester in path * replace POST method with PUT * move prepareUnregisterBody struct declaration to PrepareUnregisterHandler method * remove linebreaks in PrepareUnregisterHandler method * use util.WriteJSONResponse() * only read request body for PUT requests * remove redundant tests * expand comment on loop gotcha * fix CHANGELOG number --------- Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
- Loading branch information
Showing
6 changed files
with
203 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters