Commit graph

230 commits

Author SHA1 Message Date
Pēteris Caune
dec006890c Badges can now return either SVG or JSON 2017-06-29 15:48:59 +03:00
Pēteris Caune
a62350cdad In the "List checks" API response, the "next_ping" date was incorrect for checks using cron syntax. Fixed. 2017-06-29 14:41:13 +03:00
Tomasz Wójcik
27f917ce02 Return consistent date formats in API 2017-06-28 13:02:11 +02:00
Pēteris Caune
47d93c2522 Stricter UUID validation. 2017-06-08 17:02:26 +03:00
Pēteris Caune
dc76e4bdde Add Profile.bill_to field which goes on invoices. 2017-06-08 15:07:57 +03:00
Pēteris Caune
74f7c50a65 Fix deprecation warnings. 2017-06-02 22:39:53 +03:00
Pēteris Caune
207b0f9048 Adding on_delete keywords, more to come. 2017-05-28 13:38:38 +03:00
Pēteris Caune
94cdfe1e64 Check.schedule contains user input and needs to be escaped. 2017-05-12 11:15:23 +03:00
Pēteris Caune
2481aa5a23 Telegram integration. 2017-05-11 12:57:28 +03:00
Pēteris Caune
6920439f92 1KB for message bodies is not enough--email headers alone can take 5KB. Changing to 10KB 2017-05-09 16:21:31 +03:00
Pēteris Caune
3862cd6b06 Adding Check.last_ping_body field, and an UI to show it (#116) 2017-05-09 13:47:23 +03:00
Pēteris Caune
859a9ed735 Pricing page tweaks. Limit free accounts to 20 checks per account. 2017-05-07 16:58:44 +03:00
Pēteris Caune
09e5129bbe sendalerts reuses database connection. 2017-05-07 15:31:10 +03:00
Pēteris Caune
d7d21b0959 Pause before next report to avoid hitting sending quota 2017-04-24 22:35:16 +03:00
Pēteris Caune
9dcb1678f3 --no-threads flag for sendalerts command 2017-03-28 20:04:24 +01:00
Pēteris Caune
c073cb0b3a Lightweight 'server status' API endpoint, to be used by external load balancers 2017-03-27 11:18:08 +01:00
Pēteris Caune
d739d8ff62 DRY: use channel.get_kind_display() 2017-03-16 18:12:30 +02:00
Ronald Ip
7900a201c1
Add --no-loop option to sendalerts management command.
Allow `sendalerts` to be run by an external scheduler, on a one-shot
basis, exiting after all alerts have been sent.
2017-03-11 18:29:50 +08:00
Pēteris Caune
5dafc07c29 Return 403 when API key is wrong. Return 404 when resource not found. Return 405 when request method is wrong. Return 400 when request syntax is wrong. 2017-03-10 10:35:21 +02:00
Pēteris Caune
31eca9c8e8 API: fix updating kind=cron to kind=simple 2017-03-10 09:54:16 +02:00
Pēteris Caune
d1b4643b45 Obsolete 2017-03-06 14:38:47 +02:00
Pēteris Caune
d5cb669172 /bounce handles long payloads. 2017-03-05 22:32:42 +02:00
Pēteris Caune
68d591c677 No CSRF check for /bounce endpoint 2017-03-05 22:14:09 +02:00
Pēteris Caune
0d24d650f2 "X-Bounce-Url" header in email messages. An API endpoint to handle bounce notifications. (#112) 2017-03-05 21:42:36 +02:00
Pēteris Caune
20b046cba7 API call for updating checks 2017-02-19 13:46:05 +02:00
Pēteris Caune
b63f19f415 Simplify: remove djmail and django-ses-backend dependencies. 2017-01-29 11:44:22 +02:00
Pēteris Caune
6a1c5dd3b7 "Unsubscribe" link in alert emails. Fixes #111 2017-01-28 12:17:22 +02:00
Pēteris Caune
c16eeda004 Webhooks support POST, cleanup. 2017-01-21 18:29:55 +02:00
Pēteris Caune
ae4144b1cd More tests for sendreports. 2017-01-15 16:24:08 +02:00
Pēteris Caune
b8aabd711c Testcase for sendreports 2017-01-15 13:07:19 +02:00
Pēteris Caune
a0241a9a74 Fix tests. 2017-01-04 15:32:14 +02:00
Pēteris Caune
b93336a44d API support for cron syntax 2017-01-04 15:27:59 +02:00
Pēteris Caune
6d7c885ede /admin/api/channel/ knows Discord 2016-12-31 15:53:26 +02:00
Pēteris Caune
e5126925ec Discord integration 2016-12-30 14:26:54 +02:00
Pēteris Caune
52cd2a9c8e API rejects too long check names 2016-12-21 17:38:25 +02:00
Pēteris Caune
56168b17d0 Usability tweaks in api_check_changelist admin view. 2016-12-21 12:50:06 +02:00
Pēteris Caune
0b6d484bd5 "prunenotifications" management command 2016-12-15 18:54:03 +02:00
Pēteris Caune
c6d5e64286 Warn about obsolete update_alert_after trigger. 2016-12-14 12:20:08 +02:00
Pēteris Caune
fdc1bfcd57 Log page now lists sent notifications. Slack notification handles simple/cron check kinds. 2016-12-14 11:15:45 +02:00
Pēteris Caune
5a4c3ce8ea Fix tests. 2016-12-13 21:37:29 +02:00
Pēteris Caune
6ada656df4 UI for entering cron expression and setting timezone. 2016-12-13 13:09:53 +02:00
Pēteris Caune
8633a5a892 Check model supports cron-style schedule 2016-12-05 11:08:06 +02:00
Pēteris Caune
ce57a1cc8b Calculate alert_after in Python code instead of a database trigger. This will allow complex calculations down the road. 2016-11-04 16:30:19 +02:00
Pēteris Caune
3456dd9f6e OpsGenie integration. Fixes #93 2016-10-17 13:25:14 +03:00
Pēteris Caune
ac4ba079d3 Validate channel values. Don't allow ftp addresses, http://localhost addresses, invalid email addresses 2016-10-02 17:52:48 +03:00
Pēteris Caune
b1ad0415da Fix AttributeError in Ping admin 2016-09-24 21:37:18 +03:00
Pēteris Caune
22ac7e0517 Use a whitelist for allowed values in the unique field. 2016-09-23 14:09:20 +03:00
Pēteris Caune
c5568b6dd1 Move json validation code to a separate file, add support for array and enum, add tests. 2016-09-23 14:08:31 +03:00
Pēteris Caune
1c5182278e Merge branch 'foozmeat-issue-82' 2016-09-23 12:12:03 +03:00
James Moore
96cb68d503 made the unique field more flexible 2016-09-22 15:51:03 -07:00