forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analytics: Add APIs for submitting analytics to another server.
This adds a new API for sending basic analytics data (number of users, number of messages sent) from a Zulip server to the Zulip Cloud central analytics database, which will make it possible for servers to elect to have their usage numbers counted in published stats on the size of the Zulip ecosystem.
- Loading branch information
Showing
7 changed files
with
323 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.18 on 2019-02-02 06:02 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('zilencer', '0015_delete_billing'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='RemoteInstallationCount', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('property', models.CharField(max_length=32)), | ||
('subgroup', models.CharField(max_length=16, null=True)), | ||
('end_time', models.DateTimeField()), | ||
('value', models.BigIntegerField()), | ||
('remote_id', models.IntegerField(db_index=True)), | ||
('server', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zilencer.RemoteZulipServer')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='RemoteRealmCount', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('property', models.CharField(max_length=32)), | ||
('subgroup', models.CharField(max_length=16, null=True)), | ||
('end_time', models.DateTimeField()), | ||
('value', models.BigIntegerField()), | ||
('realm_id', models.IntegerField(db_index=True)), | ||
('remote_id', models.IntegerField(db_index=True)), | ||
('server', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zilencer.RemoteZulipServer')), | ||
], | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='remoterealmcount', | ||
unique_together=set([('server', 'realm_id', 'property', 'subgroup', 'end_time')]), | ||
), | ||
migrations.AlterIndexTogether( | ||
name='remoterealmcount', | ||
index_together=set([('property', 'end_time')]), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='remoteinstallationcount', | ||
unique_together=set([('server', 'property', 'subgroup', 'end_time')]), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.