Browse Source

Improve the note about start signals and alerting logic

cc: #547
pull/551/head
Pēteris Caune 3 years ago
parent
commit
74f56a5501
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 15 additions and 4 deletions
  1. +6
    -2
      templates/docs/measuring_script_run_time.html
  2. +9
    -2
      templates/docs/measuring_script_run_time.md

+ 6
- 2
templates/docs/measuring_script_run_time.html View File

@ -4,8 +4,12 @@
It will store the "start" events and display the job execution times. SITE_NAME
calculates the job execution times as the time gaps between adjacent "start" and
"complete" events.</p>
<p>Signaling a start kicks off a separate timer: the job now <strong>must</strong> signal a
success within its configured "Grace Time," or it will get marked as "down."</p>
<h2>Alerting Logic</h2>
<p>SITE_NAME applies an additional alerting rule for jobs that use the <code>/start</code> signal.</p>
<p>If a job sends a "start" signal, but then does not send a "complete"
signal within its configured grace time, SITE_NAME will assume the job
has failed. It will mark the job as "down" and send out alerts.</p>
<h2>Usage Example</h2>
<p>Below is a code example in Python:</p>
<div class="highlight"><pre><span></span><code><span class="kn">import</span> <span class="nn">requests</span>
<span class="n">URL</span> <span class="o">=</span> <span class="s2">&quot;PING_URL&quot;</span>


+ 9
- 2
templates/docs/measuring_script_run_time.md View File

@ -6,8 +6,15 @@
calculates the job execution times as the time gaps between adjacent "start" and
"complete" events.
Signaling a start kicks off a separate timer: the job now **must** signal a
success within its configured "Grace Time," or it will get marked as "down."
## Alerting Logic
SITE_NAME applies an additional alerting rule for jobs that use the `/start` signal.
If a job sends a "start" signal, but then does not send a "complete"
signal within its configured grace time, SITE_NAME will assume the job
has failed. It will mark the job as "down" and send out alerts.
## Usage Example
Below is a code example in Python:


Loading…
Cancel
Save