- 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.
12 lines
959 B
C#
12 lines
959 B
C#
namespace Gateway.Api.Domain;
|
|
|
|
public enum NotificationChannel { Mail, WhatsApp, Ntfy }
|
|
public enum AlarmCondition { Active, Inactive, Above, Below }
|
|
public sealed record NotificationIntegration(NotificationChannel Channel, string Endpoint, bool HasApiKey);
|
|
public sealed record UpdateNotificationKeyRequest(string? ApiKey, bool ClearApiKey = false);
|
|
public sealed record AlarmDestination(NotificationChannel Channel, string Recipient, string Template = "stoerung", string PersonName = "SE-Inno", int Priority = 0, string Tags = "alarm");
|
|
public sealed record AlarmRule(Guid Id, string Name, Guid PointId, AlarmCondition Condition, double Threshold,
|
|
double Hysteresis, bool Enabled, bool NotifyRecovery, string Message, IReadOnlyList<AlarmDestination> Destinations);
|
|
public sealed record NotificationDelivery(long Id, Guid RuleId, string Title, string Message,
|
|
AlarmDestination Destination, string State, DateTimeOffset CreatedAtUtc, string? Result);
|