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 periodically updated cached message stats #1464

Merged
merged 6 commits into from Feb 12, 2023
Merged

Conversation

andreaskoepf
Copy link
Collaborator

@andreaskoepf andreaskoepf commented Feb 11, 2023

  • add new endpoints:
    GET /api/v1/stats/cached
    GET /api/v1/stats/cached/{name}
    POST /api/v1/cached/update

Initially available stats:

    "human_messages_by_lang"
    "human_messages_by_role"
    "message_trees_by_state"
    "message_trees_states_by_lang"
    "users_accepted_tos"
  • default update period is set to 1h, update is not executed during server startup but after first period...

@andreaskoepf andreaskoepf merged commit 3cbea43 into main Feb 12, 2023
@andreaskoepf andreaskoepf deleted the cached_stats branch February 12, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants