Skip to main content

ResQ.Core

PdieClient Class

Client for the PDIE (Predictive Disaster Intelligence Engine) service.
public sealed class PdieClient : System.IDisposable
Inheritance System.Object → PdieClient Implements System.IDisposable

Example

var client = new PdieClient("http://localhost:8000");

var alerts = await client.GetPreAlertsAsync("sector-7");
foreach (var alert in alerts)
{
    Console.WriteLine($"Alert: {alert.PredictedDisasterType} ({alert.Probability:P})");
}

Remarks

Provides access to predictive alerts and risk assessments from the intelligence layer.
Constructors
PdieClient(string)Initializes a new instance of the PdieClient class.
Methods
GetPreAlertsAsync(string, CancellationToken)Gets current pre-alerts, optionally filtered by sector.