Skip to content

Admin queries #173

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

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,3 +871,17 @@ class EvaluationRunState(Enum):
RUNNING = "RUNNING"
SUCCESS = "SUCCESS"
FAILED = "FAILED"


class AdminQueries(Enum):
# default values for parameters can be found in file admin_queries.py
USERS_TO_PROJECTS = "USERS_TO_PROJECTS" # parameter options: organization_id
ACTIVE_USERS_GLOBAL = "ACTIVE_USERS_GLOBAL" # parameter options: min_msg_count, period (days, weeks or months), slices, organization_id
ACTIVE_USERS_BY_ORG = "ACTIVE_USERS_BY_ORG" # parameter options: min_msg_count, period (days, weeks or months), slices, organization_id
MESSAGES_CREATED = "MESSAGES_CREATED" # parameter options: period (days, weeks or months), slices, organization_id
MESSAGES_CREATED_BY_PROJECT = "MESSAGES_CREATED_BY_PROJECT" # parameter options: period (days, weeks or months), slices, organization_id
MESSAGES_FEEDBACK_PER_PROJECT = "MESSAGES_FEEDBACK_PER_PROJECT" # parameter options: period (days, weeks or months), slices, organization_id
AVG_MESSAGES_PER_CONVERSATION_GLOBAL = (
"AVG_MESSAGES_PER_CONVERSATION_GLOBAL" # parameter options: organization_id
)
AVG_MESSAGES_PER_CONVERSATION = "AVG_MESSAGES_PER_CONVERSATION" # parameter options: period (days, weeks or months), slices, organization_id
Loading