Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Add more counts in moderation statistics (#92)
Browse files Browse the repository at this point in the history
* Add more counts in moderation statistics

* fix field indices
  • Loading branch information
langma authored Aug 31, 2023
1 parent 79e98ea commit f40c0e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 6 additions & 4 deletions proto/speechly/analytics/v1/analytics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ message ModerationStatisticsPeriod {
// period start time
string start_time = 1;
// if grouping by users, the user id, or "OTHER"
string user_id = 5;
string user_id = 2;
// total amount of moderation events for this period.
int32 count = 2;
int32 count = 3;
// total amount of flagged events.
int32 flagged = 3;
int32 flagged = 4;
// total amount of not flagged (OK) events for this period.
int32 not_flagged = 5;
// amount of moderation decisions made.
int32 decisions = 4;
int32 decisions = 6;
}

// A single time series entry for user statistics.
Expand Down
6 changes: 6 additions & 0 deletions proto/speechly/analytics/v1/analytics_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ message ModerationStatisticsResponse {
Aggregation aggregation = 5;
// Aggregated results.
repeated ModerationStatisticsPeriod items = 6;
// Total number of events in this response.
int32 total_events = 7;
// Total number of flagged events in this response.
int32 total_flagged = 8;
// Total number of non-flagged (OK) events in this response.
int32 total_not_flagged = 9;
}

// Request for getting user statistics.
Expand Down

0 comments on commit f40c0e5

Please sign in to comment.