Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@DJensen94
Copy link
Contributor

Add recent up host count to the host summary

🗣 Description

Updates the host summary query to pull a count of hosts with a state of "up" and have had a vuln scan in the last 11 days.
Also updates the host summary model to store this value and the API to return this value to the frontend.

💭 Motivation and context

This new value is needed so it can replace the current scanned host count, as that value is already present elsewhere on the VS dashboard and is redundent.

🧪 Testing

API and storage tested locally. Query has been tested against redshift, but will need to be tested with the full redshift query in lz staging

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

Add recent up host count to the host summary
Copy link
Collaborator

@cduhn17 cduhn17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

Query for the full day, not to the same time 11 days ago
Copy link
Collaborator

@cduhn17 cduhn17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - review has been done between Dane and I

Copy link
Contributor

@aloftus23 aloftus23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@cduhn17 cduhn17 merged commit 7436c77 into develop Nov 3, 2025
22 of 23 checks passed
@cduhn17 cduhn17 deleted the DJ_recent_up_hosts_in_summary branch November 3, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants