peermetrics / api

The API service for peermetrics
MIT License
3 stars 0 forks source link

API server

[!Note] This repo is only one part of the bigger peer metrics WebRTC monitoring service. Check out the full project here.

This folder contains code for the API server used to ingest the metrics sent by the SDK.

How it works

This is a public API endpoint that has two functions:

In addition to this, the api has the django admin interface to check the raw data collected.

How to run locally

To run this locally check the main project page.

Tech stack

Models

The main models from this project are:

Organization

An organization is pretty much a way to group apps

App

Used to group conferences.

Conference

The main model for data collection. Used to group: events, sessions and participants

A conference is pretty much a call between participants. A user is encouraged to not reuse conferece_ids.

Participant

A persona who takes part in a call/conference. You could say this is a user's user.

Session

A session is the presence of a participants in a conference. He can have multiple sessions if he joins multiple times.

GenericEvent

This model represents all the events that we save during a call. We differentiate between them by the category attribute.

Routes

We can group the routes into 2 categories: public (used by the SDK) and private (used accounts to query data for the charts).

Public
Private