Skip to main content

Module attrs

Module attrs 

Source
Expand description

Free-form attributes for nodes and edges — a string-keyed map of scalar values — plus the value-type tag used by the attribute dictionaries.

This is what keeps the model generic: the plugin chooses the keys it knows ("path", "loc", "visibility", "version", or language-specific ones), the orchestrator adds computed keys (metrics), and consumers read the keys they understand via an AttributeSpec dictionary (label/hint/type) carried in the snapshot.

Enums§

AttrValue
A scalar attribute value, serialized to its natural JSON form (no wrapper).
ValueType
The kind of value an attribute holds — tells the UI what it can DO with the field (numbers: sum/average; strings: concatenate/count; bools: count). Used in AttributeSpec to describe a key independently of whether any value is present.

Type Aliases§

Attributes
Attribute bag. BTreeMap for deterministic (alphabetical) key order, so snapshots stay byte-stable.