b6895c19d4
Migration per plan 6 (HistoryTimeoutMilliseconds 30000; MaxConcurrentHistoryReads 4, MaxHistoryValuesPerPage 10000, MaxHistoryResponseBytes 4 MiB; MaxHistoryAssemblyBytesPerRequest 16 MiB) with non-null defaults and widened check constraints. Validator known set grows by HistoryRead (mapping bits still subset of connection bits; history limits positive); scope revision includes the history timeout.
30 lines
1.5 KiB
C#
30 lines
1.5 KiB
C#
using ZB.MOM.WW.OtOpcUa.Core.Abstractions.DataConnections;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.Configuration.Entities;
|
|
|
|
/// <summary>Origin-local export grant for a named authenticated peer principal.</summary>
|
|
public sealed class DataExport
|
|
{
|
|
public Guid DataExportRowId { get; set; }
|
|
public string DataExportId { get; set; } = "";
|
|
public string ClusterId { get; set; } = "";
|
|
public long Revision { get; set; } = 1;
|
|
public bool Enabled { get; set; }
|
|
public DataRealm Realm { get; set; }
|
|
public string RootKind { get; set; } = "";
|
|
public string RootEntityId { get; set; } = "";
|
|
public string PrincipalId { get; set; } = "";
|
|
public DataOperations AllowedOperations { get; set; }
|
|
public int MaxBatchItems { get; set; } = 1000;
|
|
public int MaxPageItems { get; set; } = 500;
|
|
public int MaxMonitoredItems { get; set; } = 10000;
|
|
public int MaxStreams { get; set; } = 100;
|
|
/// <summary>H2: concurrent remote HistoryRead requests admitted per principal (past it ⇒ BadTooManyOperations).</summary>
|
|
public int MaxConcurrentHistoryReads { get; set; } = 4;
|
|
/// <summary>H2: per-node page ceiling of a remote raw read (an uncapped read pages at this and returns a continuation).</summary>
|
|
public int MaxHistoryValuesPerPage { get; set; } = 10000;
|
|
/// <summary>H2: response-byte cap; a larger answer is split into bounded chunks (chunk_continues).</summary>
|
|
public int MaxHistoryResponseBytes { get; set; } = 4 * 1024 * 1024;
|
|
public byte[] RowVersion { get; set; } = [];
|
|
}
|