- Introduced LtdFeatureTests to validate BACnet and OPC UA point updates, trend logging, and alarm rule functionality. - Added OpcUaClientTests to ensure proper OPC UA client configuration, point value synchronization, and session management. - Created OpcUaFeatureTests to test OPC UA server capabilities, including browsing, reading, writing, and subscription notifications. - Implemented native_bacnet_test.py for isolated BACnet wire testing, covering discovery, read/write operations, and command processing. - Added ui-theme-tabs.test.cjs to verify theme switching, tab interactions, and protocol form accessibility in the UI.
74 lines
2.3 KiB
C#
74 lines
2.3 KiB
C#
namespace Gateway.Api.Domain;
|
|
|
|
/// <summary>A reusable group of trend logs, equivalent to an LTD saved selection.</summary>
|
|
public sealed record GatewayTrendSelection(
|
|
Guid Id,
|
|
string Name,
|
|
string? Description,
|
|
Guid OwnerId,
|
|
bool Shared,
|
|
IReadOnlyList<Guid> TrendLogIds,
|
|
DateTimeOffset CreatedAtUtc,
|
|
DateTimeOffset UpdatedAtUtc);
|
|
|
|
public sealed record CreateTrendSelectionRequest(string Name, string? Description, bool Shared, IReadOnlyList<Guid> TrendLogIds);
|
|
public sealed record UpdateTrendSelectionRequest(string? Name, string? Description, bool? Shared, IReadOnlyList<Guid>? TrendLogIds);
|
|
|
|
/// <summary>Scheduled CSV export and optional mail dispatch for one saved selection.</summary>
|
|
public sealed record CsvRunnerJob(
|
|
Guid Id,
|
|
string Name,
|
|
Guid SelectionId,
|
|
string Time,
|
|
int RangeHours,
|
|
string Delimiter,
|
|
bool Enabled,
|
|
bool MailEnabled,
|
|
string? MailTo,
|
|
string MailSubject,
|
|
string MailMessage,
|
|
string? LastRunLocalDate,
|
|
CsvRunnerJobResult? LastResult,
|
|
DateTimeOffset CreatedAtUtc,
|
|
DateTimeOffset UpdatedAtUtc);
|
|
|
|
public sealed record CsvRunnerJobResult(bool Success, string? FilePath, string? Error, DateTimeOffset RanAtUtc);
|
|
public sealed record CsvRunnerExecution(Guid Id, Guid JobId, string Name, string State, DateTimeOffset EnqueuedAtUtc);
|
|
|
|
public sealed record CreateCsvRunnerJobRequest(
|
|
string Name,
|
|
Guid SelectionId,
|
|
string Time,
|
|
int RangeHours,
|
|
string Delimiter,
|
|
bool Enabled,
|
|
bool MailEnabled,
|
|
string? MailTo,
|
|
string? MailSubject,
|
|
string? MailMessage);
|
|
|
|
public sealed record UpdateCsvRunnerJobRequest(
|
|
string? Name,
|
|
Guid? SelectionId,
|
|
string? Time,
|
|
int? RangeHours,
|
|
string? Delimiter,
|
|
bool? Enabled,
|
|
bool? MailEnabled,
|
|
string? MailTo,
|
|
string? MailSubject,
|
|
string? MailMessage);
|
|
|
|
public sealed record MailIntegrationView(bool MailConfigured, string Endpoint);
|
|
public sealed record UpdateMailIntegrationRequest(string? ApiKey, bool ClearApiKey = false);
|
|
|
|
public sealed record TrendExportRow(
|
|
DateTimeOffset TimestampUtc,
|
|
string TrendLogName,
|
|
uint BacnetObjectInstance,
|
|
string PointName,
|
|
System.Text.Json.JsonElement Value,
|
|
PointProtocol SourceProtocol,
|
|
string? Status,
|
|
string Unit = "");
|