0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-14 08:58:29 +00:00
Commit graph

25 commits

Author SHA1 Message Date
Pēteris Caune
e048ec4c48
Fix "class Foo(object):" -> "class Foo:"
In Python 3 these are equivalent, and shorter is better.
2024-10-29 17:57:50 +02:00
Pēteris Caune
5d99c544ee
Increase the precision in hc.lib.date.format_approx_duration
Format durations in one of the following forms:

* "{x} days {y} h"
* "{y} h {z} min"
* "{z} min {w} sec"
2023-10-02 12:50:59 +03:00
Pēteris Caune
58d7c8cc55
Simplify DowntimeSummary 2023-09-27 17:16:16 +03:00
Pēteris Caune
f7af738c76
Add monthly uptime percentage display in Check Details page
Fixes: 
2023-09-27 13:44:35 +03:00
Pēteris Caune
e48d361331
Fix time interval formatting in check details - downtime summary
In hc.lib.date.format_approx_duration, we were calling
timedeltaobj.total_seconds() and basing all calculations off that.
This method returns float, so the final result was "2.0 hours" or
"3.0 days" and similar. We now convert it to int, to get "2 hours",
"3 days" etc.
2023-09-26 10:30:34 +03:00
Pēteris Caune
05d2d0065e
Remove usage of backports.zoneinfo 2023-09-06 12:54:27 +03:00
Pēteris Caune
9483556a1f
Improve type hints and fix bugs revealed by type checker 2023-08-29 16:07:54 +03:00
Pēteris Caune
0a724a44c7
Change timezone.now import in hc.lib.date and fix tests 2023-05-04 11:02:09 +03:00
Pēteris Caune
86262ef620
Make datetime.datetime imports consistent everywhere 2022-12-01 15:36:35 +02:00
Pēteris Caune
818ccad56f
Fix week, month boundary calculation to use user's timezone 2022-12-01 13:46:21 +02:00
Pēteris Caune
12f6f59e0a
Refactor and improve type hints 2022-11-30 14:02:03 +02:00
Pēteris Caune
ac2f2fefc2
Improve sendreports tests 2022-11-30 12:17:16 +02:00
Pēteris Caune
796c6b9272
Add Check.downtimes_by_boundary, add hc.lib.date.week_boundaries
cc: 
2022-11-30 10:49:42 +02:00
Pēteris Caune
161430fb10
Sort imports and add "from __future__ import annotations" 2022-10-17 16:52:15 +03:00
Pēteris Caune
d243f502d3
Fix off-by-one-month error in monthly reports, downtime columns
Fixes: 
2021-07-02 15:22:51 +03:00
Pēteris Caune
df44ee58c0
Add an option for weekly reports (in addition to monthly) 2021-05-24 13:44:34 +03:00
Pēteris Caune
5979204691
Fix downtime summary to handle months when the check didn't exist
Fixes: 
2021-02-03 14:27:06 +02:00
Pēteris Caune
cdad632082
Show sub-second durations with higher precision, 2 digits after decimal point. Fixes 2020-01-17 14:41:41 +02:00
Pēteris Caune
9cbd3bfc5a
In monthly reports, no downtime stats for the current month (month has just started) 2019-11-06 10:41:14 +02:00
Pēteris Caune
2bb769f7bb
Send monthly reports on 1st of every month, not randomly during the month 2019-10-12 20:07:09 +03:00
Pēteris Caune
b7320b1b69
In monthly report, show months in ascending order. Cleanup. 2019-07-20 10:17:00 +03:00
Pēteris Caune
b74e56a273
Experimental: show the number of outages and total downtime in monthly reports. () 2019-07-19 17:32:39 +03:00
Pēteris Caune
954ca4576b
Improved logic for displaying job execution times in log. Fixes 2019-03-01 14:39:44 +02:00
Pēteris Caune
b3e290b284
Show elapsed times in ping log 2018-12-25 13:01:49 +02:00
Pēteris Caune
56168b17d0 Usability tweaks in api_check_changelist admin view. 2016-12-21 12:50:06 +02:00