Domain Detective

API Reference

Class

UptimeMonitor

Namespace DomainDetective.Monitoring
Assembly DomainDetective
Implements
IDisposable
Modifiers sealed

Minimal scheduler for uptime probes over HTTP(S) with optional notifications and JSON snapshots.

Inheritance

  • Object
  • UptimeMonitor

Constructors

public UptimeMonitor(IEnumerable<String> urls, TimeSpan interval, String snapshotDirectory = null) #

Initializes a new instance of the UptimeMonitor class.

Parameters

urls System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
interval System.TimeSpan requiredposition: 1
snapshotDirectory System.String = null optionalposition: 2

Methods

public virtual Void Dispose() #
Returns: Void

Executes the dispose operation.

public Void Start() #
Returns: Void

Executes the start operation.

public Void Stop() #
Returns: Void

Executes the stop operation.

Properties

public INotificationSender Notifier { get; set; } #

Gets or sets the notifier value.

public Int32 MaxStatusCodeOk { get; set; } #

Gets or sets the max status code ok value.

public Int32 MinStatusCodeOk { get; set; } #

Gets or sets the min status code ok value.

public Int32 SlowTtfbMsThreshold { get; set; } #

Gets or sets the slow ttfb ms threshold value.

public Func<UptimeProbeAnalysis, CancellationToken, Task> OnDown { get; set; } #

Gets or sets the on down value.

public Func<UptimeProbeAnalysis, CancellationToken, Task> OnSlow { get; set; } #

Gets or sets the on slow value.

public Func<UptimeProbeAnalysis, CancellationToken, Task> OnUp { get; set; } #

Gets or sets the on up value.

public Func<UptimeProbeAnalysis, String, CancellationToken, Task> OnAny { get; set; } #

Gets or sets the on any value.

{{ include "footer" }}