Commit graph

34 commits

Author SHA1 Message Date
Pēteris Caune
71e8112c95
Clean up CSS 2024-04-10 09:52:58 +03:00
Pēteris Caune
d7948d9939
Show status changes (flips) in check's log page
Fixes: #447
2024-04-09 12:39:42 +03:00
Pēteris Caune
c99c357709
Improve styling for live-loaded log events
Live-loaded notification events used blue border which
looked bad both in light mode and dark mode. Now fixed to use red.
2024-04-08 10:07:54 +03:00
Pēteris Caune
855fac0973
Implement filtering by event type in the Log page
Fixes: #873
2024-03-21 11:04:45 +02:00
Pēteris Caune
47894f6add
Rearrange the log page to make room for more filters
* Switch from nouislider to simpler <input type="range">
* Move it to a sidebar

Also, fix a bug in _get_events where the "start" local variable
got clobbered, and made the date range for the Notification
query wrong.
2024-03-19 18:47:13 +02:00
Michael Boateng
9770bc1ea0
Add auto-refresh functionality to log page (#963)
Add auto-refresh functionality to log page

Fixes: #957

---------

Co-authored-by: Pēteris Caune <cuu508@gmail.com>
2024-02-23 11:36:31 +02:00
Pēteris Caune
a26ca60046
Fix run ID display in dark mode 2022-11-10 12:28:03 +02:00
Pēteris Caune
7458770b41
Improve alerting logic when run IDs are used
* Add Check.last_start_rid field
* Fill Check.last_start_rid on every start event
* Clear Check.last_start on every "fail" event
* Clear Check.last_start on success event if either case is true:
 - the event's rid matches Check.last_start_rid
 - the event does not specify rid

In human terms, the alerting logic will be: we track the
execution time of the most recent "start" event only. It would
take a major redesign to track the execution time of all
concurrent "start" events and send alerts when *any* of them
overshoots the time budget. So, whenever we see a "start" event,
the timer resets.

Example:

* 00:00 client sends start signal with rid=A, timer starts
* 00:10 client sends start signal with rid=B, timer resets
* 00:20 client sends success signal with rid=A, timer
  does not reset because rid A does not match the rid seen in
  the most recent start signal (it was B)
* 00:30 the grace time runs out, the check's status shows
  as started + failed

At this point the check can be reset to a healthy state in 3
different ways:

* send a success signal with rid=B
* send a failure signal with any rid value or without it
* send a success signal without a rid value
2022-11-09 19:01:22 +02:00
seidnerj
c82c1a3a4a
Added duration to ping details (#720)
* Added duration to ping details. This is useful on a device with a small screen, since the duration cannot be seen in the main view so now one can see it in the ping's details.
* Changed terms across the board from "delta" to "duration"
* timedelta is now consistently imported as "td" across the entire project (even in Django generated migration files)
2022-11-01 09:18:34 +02:00
Pēteris Caune
b4f11aa899
Fix horizontal scrollbar in events view on small screens 2022-10-26 14:43:14 +03:00
Pēteris Caune
4312154552
Fix contrast for slider labels and pips 2022-09-09 15:05:09 +03:00
Pēteris Caune
37bbe5a9c7
Add date filters in the Log page 2022-09-09 14:16:17 +03:00
Pēteris Caune
10014af352
Optimize HTML output of the events log 2022-09-05 16:01:14 +03:00
Pēteris Caune
580eaceeb5
Optimize HTML output in /checks/<uuid>/log/
* Don't use 'date' and 'time' CSS classes in HTML output
* Replace the span.ua-body CSS class with code tags
2022-04-04 10:24:31 +03:00
Pēteris Caune
1d20be94ff
Optimize HTML output in /checks/<uuid>/log/
* Simplify the "n" cell
* Don't send details URLs, construct them on client side
* Strip microseconds in timestamps
2022-04-04 09:51:07 +03:00
Pēteris Caune
059a855b3f
Fix more contrast issues 2021-06-18 17:07:27 +03:00
Pēteris Caune
c5229d6505
Add CSS for dark mode 2021-06-16 15:23:34 +03:00
Pēteris Caune
70ef9c1904
Remove unused CSS 2020-12-08 11:25:09 +02:00
Pēteris Caune
052700a642
Make log events fit better on mobile screens. 2019-11-05 10:45:39 +02:00
Pēteris Caune
b3e290b284
Show elapsed times in ping log 2018-12-25 13:01:49 +02:00
Pēteris Caune
bee1cbca80
Better ellipsizing of long log lines. 2018-08-19 20:06:42 +03:00
Pēteris Caune
3ecd6bd422
Can toggle integrations in Details page by clicking on them. 2018-08-19 16:02:17 +03:00
Pēteris Caune
458c4cfeeb
Hook up buttons in the log page. 2018-08-17 15:09:36 +03:00
Pēteris Caune
ea8e08acd2
Log page redesign WIP 2018-08-17 11:40:45 +03:00
Pēteris Caune
3fc84ca0ff
Foundation for "fail" pings (cc: #151) 2018-05-17 19:41:13 +03:00
Pēteris Caune
cbd755585a Layout tweaks for the "Log" page. 2018-03-18 23:01:24 +02:00
Pēteris Caune
218d0c6873 Remove Check.last_ping_body field. CSS tweaks for the "Ping Details" modal. 2018-03-18 15:54:57 +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
a4375aa5b5 Fix HTML validation issues 2016-06-30 21:45:25 +03:00
Pēteris Caune
f4939f4c91 Use local timezone for dates and times in ping log. 2016-05-18 12:33:25 +03:00
Pēteris Caune
1e3285423f Ping objects get "n" field, their serial numbers, used in "log page". "fillnpings" management command initially populates this field (it touches every ping so it takes time to complete).
Check.n_pings now stores the total number of pings the check has ever received. Running "prunepings" command doesn't affect this field. +a new "prunepingsslow" command which works in smaller chunks so is appropriate for initial pruning of a huge api_ping table.
2016-01-03 18:11:12 +02:00
Pēteris Caune
f178981334 Log: instead of timeline, show placeholders for "expected but not received" pings. 2016-01-03 02:43:56 +02:00
Pēteris Caune
aa2bc72293 Better style for Log page. 2015-11-10 02:40:31 +02:00
Pēteris Caune
3bafac24ba Split style.css in smaller files. Email instructions in welcome page. 2015-08-01 21:56:05 +03:00