• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

allegro / ralph_pricing / 2003 / 2
77%
develop: 77%

Build:
DEFAULT BRANCH: develop
Ran 24 Nov 2016 02:24PM UTC
Files 201
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Nov 2016 02:19PM UTC coverage: 84.451% (-1.1%) from 85.525%
DJANGO_VERSION=1.10.2 TEST_DATABASE_ENGINE=sqlite

push

travis-ci

mkurek
Notifications about anomalies in usages (#544)

Detect missing values and unusually big changes in uploaded usage types and notify their owners.

This PR adds management command which should be launched on daily basis (e.g. from cron). It analyzes usage types uploaded during the month-wide window, which ends on the date give via -e argument.

It looks for two types of anomalies: missing usage types for given day, and unusually big changes of values between two consecutive days, where by "unusually big" it understands a relative change calculated with (d1 - d2) / d2, compared to the value stored in UsageType.change_tolerance (0.2 by default). In case of detecting any of such anomalies, all the owners of a given usage type will be notified by e-mail.

It also implements a "tolerance margin" for missing values, accounting for the cases where usage types are not expected due to longer upload frequency (e.g. monthly instead of daily), and/or where the owners shouldn't receive e-mails because they won't be able to react anyway (e.g. during the weekends).

8864 of 10496 relevant lines covered (84.45%)

0.84 hits per line

Source Files on job 2003.2 (DJANGO_VERSION=1.10.2 TEST_DATABASE_ENGINE=sqlite)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2003
  • Travis Job 2003.2
  • 1ffc40e8 on github
  • Prev Job for DJANGO_VERSION=1.10.2 TEST_DATABASE_ENGINE=sqlite on develop (#2002.2)
  • Next Job for DJANGO_VERSION=1.10.2 TEST_DATABASE_ENGINE=sqlite on develop (#2007.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc