API Reference
CmdletStartUptimeMonitor
Starts background HTTP(S) uptime monitoring for one or more URLs.
Inheritance
- AsyncPSCmdlet
- CmdletStartUptimeMonitor
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
public CmdletStartUptimeMonitor() #Methods
BeginProcessingAsync() #Initializes and starts the uptime monitor with the configured options.
Returns
A completed task.
Inherited Methods
public PathInfo CurrentProviderLocation(String providerId) #PathInfoParameters
- providerId String
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
public Collection<String> GetResolvedProviderPathFromPSPath(String path, out ProviderInfo provider) #Collection<String>Parameters
- path String
- provider ProviderInfo
public override String GetResourceString(String baseName, String resourceId) #StringParameters
- baseName String
- resourceId String
public String GetUnresolvedProviderPathFromPSPath(String path) #StringParameters
- path String
public Object GetVariableValue(String name, Object defaultValue) #ObjectParameters
- name String
public Boolean ShouldContinue(String query, String caption) #BooleanParameters
- query String
- caption String
- hasSecurityImpact Boolean
- yesToAll Boolean
- noToAll Boolean
public Boolean ShouldProcess(String verboseDescription, String verboseWarning, String caption) #BooleanParameters
- verboseDescription String
- verboseWarning String
- caption String
- shouldProcessReason ShouldProcessReason
public Void ThrowTerminatingError(ErrorRecord errorRecord) #VoidParameters
- errorRecord ErrorRecord
public Void WriteCommandDetail(String text) #VoidParameters
- text String
public Void WriteError(ErrorRecord errorRecord) #VoidParameters
- errorRecord ErrorRecord
public Void WriteInformation(InformationRecord informationRecord) #VoidParameters
- informationRecord InformationRecord
public Void WriteObject(Object sendToPipeline) #VoidParameters
- sendToPipeline Object
public Void WriteProgress(ProgressRecord progressRecord) #VoidParameters
- progressRecord ProgressRecord
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.
Inherited Properties
public PSEventManager Events { get; } #public PSHost Host { get; } #public CommandInvocationIntrinsics InvokeCommand { get; } #public ProviderIntrinsics InvokeProvider { get; } #public JobManager JobManager { get; } #public JobRepository JobRepository { get; } #public InvocationInfo MyInvocation { get; } #public PagingParameters PagingParameters { get; } #public String ParameterSetName { get; } #public SessionState SessionState { get; } #public ICommandRuntime CommandRuntime { get; set; } #public Boolean Stopping { get; } #public CommandOrigin CommandOrigin { get; } #