mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
analytics: Replace CountStat.is_gauge with interval.
Groundwork for allowing stats like "Monthly Active Users". CountStat.interval is no longer as clean a value as before, so removed it from views.get_chart_data. It wasn't being used by the frontend anyway. Removing interval from logger calls in counts.py is not a big loss since we now include the frequency (which is typically also the interval) in CountStat.property.
This commit is contained in:
@@ -44,7 +44,7 @@ class Command(BaseCommand):
|
||||
days=self.DAYS_OF_DATA, business_hours_base=business_hours_base,
|
||||
non_business_hours_base=non_business_hours_base, growth=growth,
|
||||
autocorrelation=autocorrelation, spikiness=spikiness, holiday_rate=holiday_rate,
|
||||
frequency=stat.frequency, is_gauge=(stat.interval == CountStat.GAUGE),
|
||||
frequency=stat.frequency, partial_sum=(stat.interval > timedelta(days=1000)),
|
||||
random_seed=self.random_seed)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
|
||||
Reference in New Issue
Block a user