Skip to main content

RawPointDto

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.StreamData

One value of a raw archive for IStreamDataServicesClient.InsertAsync(String, String, IReadOnlyCollection<RawPointDto>). Mirrors the asset-repo REST payload of POST streamdata/archives/{archiveRtId}/insert.

public record RawPointDto : IEquatable<RawPointDto>

Inheritance Object → RawPointDto
Implements IEquatable<RawPointDto>

Remarks:

A raw row is identified by archive + RawPointDto.RtId + RawPointDto.Timestamp (UTC, millisecond precision); the CK type is fixed per archive. Writing the same identity again corrects the row, subject to the archive's conflict precedence: a manual row is never replaced by an automated delivery, and the protection covers the whole row.

Properties​

RtId​

Runtime id of the entity the value belongs to.

public string RtId { get; set; }

Property Value​

String

CkTypeId​

Unversioned CK type id of the entity, e.g. Basic.Energy/EnergyMeasurement.

public string CkTypeId { get; set; }

Property Value​

String

Timestamp​

Time of the value (UTC); an unspecified kind is sent as UTC. The service refuses sub-millisecond precision.

public DateTime Timestamp { get; set; }

Property Value​

DateTime

RtWellKnownName​

Optional human-readable name of the entity.

public string RtWellKnownName { get; set; }

Property Value​

String

Attributes​

Ingested column values keyed by attribute path (e.g. Amount.Value). A manual point must name every ingested column of the archive except the ranking columns (the column keys of the archive's ConflictPrecedence); null is a valid value for every other column. A ranking column may be left out of a manual point and then keeps its stored value; null on a ranking column is refused (HTTP 400) in any point.

public IReadOnlyDictionary<string, object> Attributes { get; set; }

Property Value​

IReadOnlyDictionary<String, Object>

Origin​

Whether the value was entered manually or delivered automatically. Defaults to StreamDataOrigin.Automated. The service records the writer of a manual value from the caller's token.

public StreamDataOrigin Origin { get; set; }

Property Value​

StreamDataOrigin

Reason​

Optional reason of a manual write; only allowed with StreamDataOrigin.Manual.

public string Reason { get; set; }

Property Value​

String

Constructors​

RawPointDto()​

Caution​

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


public RawPointDto()