Add a new /all/msgpack endpoint in the API #3593#3616
Closed
yogendrarau wants to merge 1 commit into
Closed
Conversation
Add a compact binary alternative to the /all endpoint, which returns a very large JSON payload. The new GET /api/4/all/msgpack endpoint returns the same dictionary of all plugin stats serialized to MessagePack using msgspec (~25% smaller than JSON on a typical payload). - GlancesMsgpackResponse mirrors GlancesJSONResponse; msgspec encodes datetime as ISO 8601 strings, so the decoded payload matches /all. - msgspec is optional: the endpoint returns HTTP 501 if it is missing, and it is added to the "web" optional-dependencies group. - Add a RESTful test, document the endpoint, and regenerate openapi.json. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
|
Hi @yogendrarau first of all thanks for the PR. As said in the #3593 issue, the feature is targeted in the Glances v5 version. This version will break the API and integrate new features (like the /all/msgpack option). Sorry but i must reject the PR for the moment. Feel free to contribute again the Glances v5 will be opened to PR. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a compact binary alternative to the /all endpoint, which returns a very large JSON payload. The new GET /api/4/all/msgpack endpoint returns the same dictionary of all plugin stats serialized to MessagePack using msgspec (~25% smaller than JSON on a typical payload).
Resume