Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.6.1 · function

deviceAttributes

Source

A node's device attributes from raw parts: empty values dropped, `chassisId` and `mac` in the canonical MAC spelling where they are MACs. Spread the result onto the node the plugin returns.

deviceAttributes(parts: { address?: string | null; chassisId?: string | null; mac?: string | null; sysName?: string | null }): DeviceAttributes

Parameters

Parameter Type Description Default
parts { address?: string | null; chassisId?: string | null; mac?: string | null; sysName?: string | null } No additional description. —

Returns

DeviceAttributes

libs/@shumoku/core/src/libs/@shumoku/core/src/plugin-kit/stamp.ts:54