Files
logpile/internal/models/topology.go
T
Mikhail ChusavitinandClaude Opus 5.5 ff5b99fa5c fix(topology): attach HPE DIMMs and RAID member disks; import easy-bee event logs
HPE DL380 Gen11 BEE-SP v14.23 blackbox bundle (ADL-077):
- topology: accept "PROC n" DIMM locators, show the storage controller
  filtered from the export by ADL-062 when disks resolve to it, resolve
  storcli EID:Slt drives via VD -> OS drive -> controller BDF, hide BMC VGA,
  label numeric PSU slots "PSU n"
- easy_bee: parse SEL / dmesg -T event times, keep message_id and
  component_ref, pass platform_config through
- exporter: map ipmi-sel -> bmc and dmesg/kernel -> host in event_logs
- privacy: treat journald/syslog kernel lines as noise (linux.it false positive)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 12:49:08 +03:00

50 lines
1.6 KiB
Go

package models
// TopologyEvidence contains static source artifacts which add relationships
// that the Reanimator inventory schema cannot express. It is deliberately not
// serialized into reanimator.json.
type TopologyEvidence struct {
DIMMType17 string
StorageMap string
StorcliVDs string
StorcliDrives string
NVIDIAQueryCSV string
NVIDIATopology string
NVLinkStatus string
NVLinkErrors string
}
// TopologyDocument is the standalone, versioned topology.json contract.
// Coordinates are presentation details and are intentionally not persisted.
type TopologyDocument struct {
Version string `json:"version"`
Title string `json:"title,omitempty"`
Nodes []TopologyNode `json:"nodes,omitempty"`
Edges []TopologyEdge `json:"edges,omitempty"`
}
type TopologyNode struct {
ID string `json:"id"`
Kind string `json:"kind"`
Label string `json:"label"`
Model string `json:"model,omitempty"`
Status string `json:"status,omitempty"`
Socket *int `json:"socket,omitempty"`
NUMANode *int `json:"numa_node,omitempty"`
BDF string `json:"bdf,omitempty"`
Count int `json:"count,omitempty"`
SizeMB int `json:"size_mb,omitempty"`
WattageW int `json:"wattage_w,omitempty"`
LinkSpeed string `json:"link_speed,omitempty"`
MaxLinkSpeed string `json:"max_link_speed,omitempty"`
}
type TopologyEdge struct {
From string `json:"from"`
To string `json:"to"`
Kind string `json:"kind"`
Status string `json:"status,omitempty"`
Label string `json:"label,omitempty"`
Links int `json:"links,omitempty"`
}