Skip to content

Adds node uptime as posture-derived metadata in node view#916

Merged
javuto merged 2 commits into
developfrom
uptime-node-posture
Jul 26, 2026
Merged

Adds node uptime as posture-derived metadata in node view#916
javuto merged 2 commits into
developfrom
uptime-node-posture

Conversation

@javuto

@javuto javuto commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds node uptime as posture-derived metadata and displays it in the node detail view when posture is enabled.

Changes

Backend

  • Added optional uptime metadata to the node API view.
  • Populates node uptime from the latest osctrl:posture:uptime posture result.
  • Added single-node and batched uptime lookup helpers for posture data.
  • Keeps uptime enrichment fail-soft:
    • omitted when posture is disabled
    • omitted when no uptime posture record exists
    • logs and omits on optional posture enrichment errors

Posture Profiles

  • Added an uptime posture check to all built-in posture profiles.
  • Query added:
SELECT days, hours, minutes, seconds, total_seconds FROM uptime

@javuto javuto added osctrl-api osctrl-api related changes ⭐️ frontend Frontend related issues labels Jul 26, 2026
Comment thread pkg/posture/posture.go Fixed
Comment thread pkg/posture/posture.go Fixed
Comment thread pkg/posture/posture.go Fixed
Comment thread pkg/posture/posture.go Fixed
… between integer types'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@javuto
javuto merged commit 0a3b8ae into develop Jul 26, 2026
8 checks passed
@javuto
javuto deleted the uptime-node-posture branch July 26, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⭐️ frontend Frontend related issues osctrl-api osctrl-api related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants