feat(adminui): #954 OpcUaClient driver form field for AlarmRefreshRequiredMinInterval (+ round-trip and factory-parse tests)
This commit is contained in:
+10
@@ -229,6 +229,12 @@
|
||||
<InputNumber DisplayName="Subscription priority (0-255)" aria-describedby="@FieldId("field-24-error")" id="@FieldId("field-24")" @bind-Value="_form.OpcUa.SubscriptionPriority" @bind-Value:after="EmitAsync" class="form-control form-control-sm" />
|
||||
<div id="@FieldId("field-24-error")" class="field-error">@if (_fieldEditContext is not null) { <ValidationMessage For="@(() => _form.OpcUa.SubscriptionPriority)" /> }</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="@FieldId("field-31")" class="form-label">Alarm RefreshRequired min interval (s)</label>
|
||||
<InputNumber DisplayName="Alarm RefreshRequired min interval (s)" aria-describedby="@FieldIds("field-31-error", "field-31-hint")" id="@FieldId("field-31")" @bind-Value="_form.OpcUa.AlarmRefreshRequiredMinIntervalSeconds" @bind-Value:after="EmitAsync" class="form-control form-control-sm" />
|
||||
<div id="@FieldId("field-31-error")" class="field-error">@if (_fieldEditContext is not null) { <ValidationMessage For="@(() => _form.OpcUa.AlarmRefreshRequiredMinIntervalSeconds)" /> }</div>
|
||||
<div id="@FieldId("field-31-hint")" class="form-text">Minimum spacing between RefreshRequired-triggered alarm ConditionRefresh sweeps. Default 10; 0 = no limit (#946).</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-check form-switch mt-4">
|
||||
<InputCheckbox aria-describedby="@FieldIds("rejectUnkRevocation-hint")" @bind-Value="_form.OpcUa.RejectUnknownRevocationStatus" @bind-Value:after="EmitAsync" class="form-check-input" id="@FieldId("rejectUnkRevocation")" />
|
||||
@@ -376,6 +382,8 @@
|
||||
public int TimeoutSeconds { get; set; } = 10;
|
||||
public int SessionTimeoutSeconds { get; set; } = 120;
|
||||
public int KeepAliveIntervalSeconds { get; set; } = 5;
|
||||
// #954: double (not int) so a hand-authored sub-second value is not truncated to 0 (= limit off) on save.
|
||||
public double AlarmRefreshRequiredMinIntervalSeconds { get; set; } = 10;
|
||||
public int MaxDiscoveredNodes { get; set; } = 10_000;
|
||||
public int MaxBrowseDepth { get; set; } = 10;
|
||||
|
||||
@@ -418,6 +426,7 @@
|
||||
TimeoutSeconds = (int)r.Timeout.TotalSeconds,
|
||||
SessionTimeoutSeconds = (int)r.SessionTimeout.TotalSeconds,
|
||||
KeepAliveIntervalSeconds = (int)r.KeepAliveInterval.TotalSeconds,
|
||||
AlarmRefreshRequiredMinIntervalSeconds = r.AlarmRefreshRequiredMinInterval.TotalSeconds,
|
||||
MaxDiscoveredNodes = r.MaxDiscoveredNodes,
|
||||
MaxBrowseDepth = r.MaxBrowseDepth,
|
||||
SecurityMode = r.SecurityMode,
|
||||
@@ -458,6 +467,7 @@
|
||||
Timeout = TimeSpan.FromSeconds(TimeoutSeconds),
|
||||
SessionTimeout = TimeSpan.FromSeconds(SessionTimeoutSeconds),
|
||||
KeepAliveInterval = TimeSpan.FromSeconds(KeepAliveIntervalSeconds),
|
||||
AlarmRefreshRequiredMinInterval = TimeSpan.FromSeconds(Math.Max(AlarmRefreshRequiredMinIntervalSeconds, 0)),
|
||||
MaxDiscoveredNodes = MaxDiscoveredNodes,
|
||||
MaxBrowseDepth = MaxBrowseDepth,
|
||||
SecurityMode = SecurityMode,
|
||||
|
||||
Reference in New Issue
Block a user