docs(grpc-data): H4 remote history supported (SqlServer/QuestDB verified, Gateway pending #923), diagnostics and metrics, CLI projected-history note

This commit is contained in:
Joseph Doherty
2026-11-24 08:02:41 -05:00
parent e3f21cb86c
commit 1efe084833
3 changed files with 88 additions and 1 deletions
+18
View File
@@ -268,6 +268,24 @@ continuation points up to `--max`. `--events` cannot be combined with `--modifie
| `--release-after-page` | With `--page-size`: send `releaseContinuationPoints` for page k's point and stop |
| `--hold-seconds` | With `--abandon-after-page` / `--release-after-page`: keep the session open this long before disconnecting |
**Projected nodes (gRPC data connections).** A variable a data connection maps into this server lives in
`https://zb.com/otopcua/mapped/raw` or `…/mapped/uns` under an **opaque** `p1.` identifier. Never type or construct one: browse
from the mapping anchor (the local parent path plus the mapping's branch name) and pass the NodeId `browse` prints to `-n`. The
ids are stable across deploys, but a deploy retires a projected node the client has not browsed since — re-browse after a deploy
(and after the node has been idle past its metadata lease, #922), or the read answers `BadNodeIdUnknown` / `BadUserAccessDenied`.
History is served by the ORIGIN's historian, verbatim (values, statuses, timestamps, its paging); `--aggregate` is limited to what
the origin's backend serves (otherwise `BadAggregateNotSupported`), and `--modified` / `--events` are refused
`BadHistoryOperationUnsupported`. Verified with SqlServer and QuestDB origins; a Gateway (AVEVA) origin is unverified (#923).
The consumer's **Data connections** page shows the projected history counts and open continuations a read leaves behind
(`DataConnections.md` §"Remote history diagnostics and metrics").
```bash
# Resolve the projected NodeId by browsing from the anchor, then read it
otopcua-cli browse -u opc.tcp://localhost:4841/OtOpcUa -U apikey -P "$KEY" -n "<anchor NodeId>" -r -d 3
P='<NodeId printed by browse>'
otopcua-cli historyread -u opc.tcp://localhost:4841/OtOpcUa -U apikey -P "$KEY" -n "$P" --max 100
```
The hand-paged modes exist for continuation-point lifecycle checks — most usefully on **projected** nodes of a gRPC data
connection (`DataConnections.md` §"OPC UA HistoryRead on projected nodes"), where a resumed page is bound to the origin endpoint
that issued it: pause after page 1, fail the origin over, create the resume file, and the resumed page prints