adopt_alias_map
Persist a site's canonical alias map derived from cross-protocol asset feeds, writing an owner-only advisory JSON baseline. The map is a suggestion, not a server-side rename.
Instructions
[READ][risk=low][PERSIST] Adopt + persist the canonical alias map for a site.
Writes a local owner-only advisory JSON file (NOT an OT-device write — hence
risk=low); see the persistence note below.
Runs the cross-protocol asset model over ``feeds``, extracts the adopted map
``{canonical_alias: {ref, protocol, asset, name, class}}``, and persists it as
the site's baseline (owner-only JSON under the iaiops home). Re-running
overwrites the baseline. Advisory — the map is a SUGGESTION, never a
server-side rename (OT-dangerous).
Args:
feeds: Per-protocol tag feeds ``[{protocol, source, asset?, tags:[...]}]``,
the SAME shape ``cross_protocol_asset_model`` takes.
site: Site label (a safe file leaf: alphanumeric/_/-). Default 'site'.
Returns dict: {site, path, tag_count, adopted:{alias: {...}}}.
Example: adopt_alias_map(feeds=[{"protocol":"opcua","source":"l1","tags":[...]}],
site="plant").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| feeds | Yes |