using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Host.Backend.Historian { /// /// OPC-UA-free surface for the Wonderware Historian subsystem inside Galaxy.Host. /// Implementations read via the aahClient* SDK; the Proxy side maps returned samples /// to OPC UA DataValue. /// public interface IHistorianDataSource : IDisposable { Task> ReadRawAsync( string tagName, DateTime startTime, DateTime endTime, int maxValues, CancellationToken ct = default); Task> ReadAggregateAsync( string tagName, DateTime startTime, DateTime endTime, double intervalMs, string aggregateColumn, CancellationToken ct = default); Task> ReadAtTimeAsync( string tagName, DateTime[] timestamps, CancellationToken ct = default); Task> ReadEventsAsync( string? sourceName, DateTime startTime, DateTime endTime, int maxEvents, CancellationToken ct = default); HistorianHealthSnapshot GetHealthSnapshot(); } }