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

admin/message logs: Add field for querying statistics on outgoing messages #3059

Merged
merged 4 commits into from
Jun 1, 2023

Conversation

mastercactapus
Copy link
Member

Description:
This PR adds a new stats field to the MessageLogsConnection type that will generate time-series data server-side.

Which issue(s) this PR fixes:
Backend component of #2481 (original issue: #2460)

Describe any introduced API changes:
The MessageLogConnection type got a new stats field containing timeSeries the new types for time-series are generic so that this pattern can be applied to other paginated queries as needed.

Additional Info:
Example query:

query {
  messageLogs {
    stats {
      timeSeries(input:{bucketDuration:"P1D"}) {
        count
        start
        end
      }
    }
  }
}

Forfold
Forfold previously approved these changes May 31, 2023
@mastercactapus mastercactapus merged commit db00b9e into master Jun 1, 2023
@mastercactapus mastercactapus deleted the msg-logs-timeseries-query branch June 1, 2023 14:04
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.

3 participants