API Reference
Class
UptimeMonitor
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}
- interval System.TimeSpan
- snapshotDirectory System.String = null
Methods
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.