Skip to main content

SaveTimeRangeStreamDataInArchiveNodeConfiguration

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Load

SaveTimeRangeStreamDataInArchive node configuration. Writes externally pre-aggregated time-range data points into a TimeRangeArchive identified by SaveTimeRangeStreamDataInArchiveNodeConfiguration.ArchiveRtId (time-range concept §3, §6). The upstream entity must carry the window boundaries — by default in top-level attributes named From / To; configurable via SaveTimeRangeStreamDataInArchiveNodeConfiguration.FromAttributePath and SaveTimeRangeStreamDataInArchiveNodeConfiguration.ToAttributePath.

public record SaveTimeRangeStreamDataInArchiveNodeConfiguration : PathNodeConfiguration, INodeConfiguration, IEquatable<NodeConfiguration>, IPathNodeConfiguration, IEquatable<PathNodeConfiguration>, IEquatable<SaveTimeRangeStreamDataInArchiveNodeConfiguration>

Inheritance Object → NodeConfiguration → PathNodeConfiguration → SaveTimeRangeStreamDataInArchiveNodeConfiguration
Implements INodeConfiguration, IEquatable<NodeConfiguration>, IPathNodeConfiguration, IEquatable<PathNodeConfiguration>, IEquatable<SaveTimeRangeStreamDataInArchiveNodeConfiguration>

Remarks:

Sibling of SaveStreamDataInArchiveNodeConfiguration for the time-range storage shape. Re-deliveries of the same (from, to, rtid, ckTypeId) upsert in CrateDB and flip the was_updated flag to true (concept §5). The target archive must be a TimeRangeArchive in Activated status; raw or rollup archives are rejected by the repository with a clear error.

Properties​

ArchiveRtId​

Runtime id of the target TimeRangeArchive. The archive must exist in the tenant, be activated, and have a column set that covers the attributes the upstream entities carry (unknown attributes are dropped server-side). Required.

public string ArchiveRtId { get; set; }

Property Value​

String

FromAttributePath​

Attribute name on the upstream entity that carries the inclusive window start (UTC DateTime). Default "From". The attribute is removed from the per-row attribute dictionary so it doesn't appear as a user column.

public string FromAttributePath { get; set; }

Property Value​

String

ToAttributePath​

Attribute name on the upstream entity that carries the exclusive window end (UTC DateTime). Default "To". Same removal semantics as SaveTimeRangeStreamDataInArchiveNodeConfiguration.FromAttributePath.

public string ToAttributePath { get; set; }

Property Value​

String

Origin​

Origin of the rows this node writes: ArchiveWriteOrigin.Automated (default, the behaviour before the option existed) or ArchiveWriteOrigin.Manual. A manual row records its writer (the verified user caller, else the client id of the pipeline's service identity) and the platform time. An archive that ranks by $Origin keeps a manual value against every later automated delivery.

public ArchiveWriteOrigin Origin { get; set; }

Property Value​

ArchiveWriteOrigin

ManualReason​

Optional reason recorded with every manual row of this node. Only allowed with SaveTimeRangeStreamDataInArchiveNodeConfiguration.OriginArchiveWriteOrigin.Manual.

public string ManualReason { get; set; }

Property Value​

String

ManualReasonAttributePath​

Optional attribute on the upstream entity that carries the reason of a manual row, for a reason that differs per row. Removed from the attributes like the window attributes; takes precedence over SaveTimeRangeStreamDataInArchiveNodeConfiguration.ManualReason when present and not empty. Only allowed with SaveTimeRangeStreamDataInArchiveNodeConfiguration.OriginArchiveWriteOrigin.Manual.

public string ManualReasonAttributePath { get; set; }

Property Value​

String

ManualReasonPath​

Optional path, relative to each item at Path, that carries the reason of a manual row , for example $.manualReason. The value is read from the DataContext item next to the update info, so the CK type needs no reason attribute and nothing surfaces as a user column. Takes precedence over SaveTimeRangeStreamDataInArchiveNodeConfiguration.ManualReasonAttributePath and SaveTimeRangeStreamDataInArchiveNodeConfiguration.ManualReason when the item carries a non-empty string there. Only allowed with SaveTimeRangeStreamDataInArchiveNodeConfiguration.OriginArchiveWriteOrigin.Manual.

public string ManualReasonPath { get; set; }

Property Value​

String

WriteResultPath​

Optional path the write result is stored at: { stored, skipped, skippedByReason }, so a later node can branch on it. Rows that lose against a stored row are a normal outcome and do not fail the node unless SaveTimeRangeStreamDataInArchiveNodeConfiguration.FailOnSkippedRows is set.

public string WriteResultPath { get; set; }

Property Value​

String

FailOnSkippedRows​

Fails the node when the archive did not store every row, for any reason including CkTypeMismatch, for example an automated delivery against a manual value or a lower quality against a higher one. Default false: automated rows not stored only for CkTypeMismatch are logged at Debug (expected when one update list feeds one node per archive); any other reason is reported as a warning. A manual row that could not be stored always fails the node.

public bool FailOnSkippedRows { get; set; }

Property Value​

Boolean

Path​

public string Path { get; set; }

Property Value​

String

Description​

public string Description { get; set; }

Property Value​

String

Constructors​

SaveTimeRangeStreamDataInArchiveNodeConfiguration()​

Caution​

Constructors of types with required members are not supported in this version of your compiler.


public SaveTimeRangeStreamDataInArchiveNodeConfiguration()