Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.6.1 · function

resolveNetwork

ソース

APIの説明は英語のcanonical sourceを表示しています。

Merge the project's configuration with what every source observed into one network of the same shape. All contributions are peers with an ordering between them; the project is first in it. Nodes are clustered by identity (any-key match, or a shared registry entity id) regardless of the ordering, and then per field the first contribution in the ordering that holds a value wins (`priority desc, capturedAt desc`). Every node, port, group and link gets a `provenance` in the observation record returned beside the model. The merged network keeps a node's project id when the project wrote it, and gives a node only sources found a synthesized `discovered:N` id. Each source's groups, segments, routing domains, connections, redundancy sets and terminations are namespaced by its source id so they never collide. See `apps/server/docs/design/topology-source-priority-merge.md`.

resolveNetwork(project: SourceNetwork, snapshots: SourceSnapshot[], options?: ResolveOptions): ResolvedNetwork

パラメーター

名前 型 説明 既定値
project SourceNetwork 追加説明はありません。 —
snapshots SourceSnapshot[] 追加説明はありません。 —
options ResolveOptions 追加説明はありません。 {}

戻り値

ResolvedNetwork

libs/@shumoku/core/src/libs/@shumoku/core/src/observation/resolve-network.ts:81