Domain Detective

API Reference

Class

CmdletStartUptimeMonitor

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Implements
IDisposable
Modifiers sealed
Attributes
Cmdlet("Start", "DDUptimeMonitor") Alias(["Start-UptimeMonitor"])

Starts background HTTP(S) uptime monitoring for one or more URLs.

Inheritance

Examples

Start monitoring two sites with webhook alerts.


Start-DDUptimeMonitor -Url 'https://evotec.pl','https://evotec.xyz' -IntervalSeconds 60 -WebhookUrl 'https://example.com/webhook' -SnapshotDirectory .\Uptime
        

Constructors

Methods

BeginProcessingAsync() #

Initializes and starts the uptime monitor with the configured options.

Returns

A completed task.

Properties

public String[] Url { get; set; } #
Parameter(Mandatory = true, Position = 0)

One or more absolute HTTP(S) URLs to probe.

public Int32 IntervalSeconds { get; set; } #
Parameter(Mandatory = false)

Polling interval in seconds (default 60).

public String SnapshotDirectory { get; set; } #
Parameter(Mandatory = false)

Optional directory to write JSON snapshots per probe.

public String WebhookUrl { get; set; } #
Parameter(Mandatory = false)

Optional webhook URL for alerts (DOWN/SLOW).

public Int32 SlowTtfbMs { get; set; } #
Parameter(Mandatory = false)

Slow TTFB threshold in milliseconds (default 2000ms).

public ScriptBlock OnDown { get; set; } #
Parameter(Mandatory = false)

Script to execute when a URL is detected DOWN (receives one argument: probe PSCustomObject).

public ScriptBlock OnSlow { get; set; } #
Parameter(Mandatory = false)

Script to execute when a URL is SLOW (receives one argument: probe PSCustomObject).

public ScriptBlock OnUp { get; set; } #
Parameter(Mandatory = false)

Script to execute when a URL is UP within thresholds (receives one argument: probe PSCustomObject).

public ScriptBlock OnAny { get; set; } #
Parameter(Mandatory = false)

Script to execute for any result (Severity: Down|Slow|Up) with probe PSCustomObject.

{{ include "footer" }}