Skip to content

Track web client sessions for game admins #71

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

Open
oestrich opened this issue Mar 23, 2019 · 2 comments
Open

Track web client sessions for game admins #71

oestrich opened this issue Mar 23, 2019 · 2 comments
Labels

Comments

@oestrich
Copy link
Owner

A simple report to see the number of opened web client sessions for a time range.

Report:

  • Select from/to range, default to the last week
  • Filter down to only sessions opened in that time period
  • Display a table with the sessions and how long they were open

Ties with #70

@janxious
Copy link

janxious commented Oct 7, 2019

This sounds interesting. Do you track things like this in ets? Anywhere to start reading for implementation hints?

@oestrich
Copy link
Owner Author

oestrich commented Oct 7, 2019

The main admin section has a large part of what you'd need already. I'm tracking sessions in ecto already. So it'd be mostly copy pasting the admin stuff and adding in filters (since it's a straight list right now in the admin.) These are the important links for the admin section:

And if you're curious how the tracking works:

When a session starts, it tells the presence server that it's online, which saves (via ets) that session's info. That also broadcasts a message to the main node (Statistics.Server) which does the actual saving into ecto. It's a big convoluted but before I pulled out GrapevineData the telnet node didn't have a nice way to using ecto things. I haven't gotten around to unwinding this to using the database directly.

@oestrich oestrich added the good first issue Good for newcomers label Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants