Skip to content

Docs: Note mobile online/offline heuristic on Get hosts summary - #52572

Merged
rachaelshaw merged 3 commits into
docs-v4.93.0from
50155-mobile-status-rest-api-docs
Sep 4, 2026
Merged

Docs: Note mobile online/offline heuristic on Get hosts summary#52572
rachaelshaw merged 3 commits into
docs-v4.93.0from
50155-mobile-status-rest-api-docs

Conversation

@RachelElysia

Copy link
Copy Markdown
Member

Issue

Closes #52571 (sub-issue of parent story #50155)

Description

Screenrecording

  • Not applicable — docs-only.

Testing

  • Added/updated automated tests
  • QA'd all new/changed functionality manually
  • No code paths touched; nothing to automate. QA renders the docs from docs-v4.93.0 after merge and confirms the paragraph appears under Get hosts summary.

Adds a paragraph under **Get hosts summary** in the REST API reference
explaining that iOS/iPadOS/Android hosts derive `online`/`offline` from the
most recent MDM check-in (`nano_enrollments.last_seen_at` for Apple;
`detail_updated_at` for Android) within a 1-hour window, instead of the
osquery check-in interval used by other platforms.

Docs-only slice of parent story #50155. Sibling PRs deliver the backend
(#52518) and frontend (#52483) that make this behavior real.

Closes #52571
Previous version split "Apple uses nano_enrollments" vs "Android uses
detail_updated_at" — but the actual chart predicate takes the GREATEST of
host_seen_times.seen_time and nano_enrollments.last_seen_at (active
enrollments only), then falls back to detail_updated_at, uniformly across
all three mobile platforms. Window is 3660s (~1h), not exactly 1h.
…llback

Previous version implied all three signals compete in a max. The actual SQL
does GREATEST(hst.seen_time, ne.last_seen_at) FALLING BACK to
detail_updated_at only when both are NULL — not a peer in the greatest-of.
Reads truer to the COALESCE(GREATEST(...), fallback) shape.
@rachaelshaw
rachaelshaw merged commit f234a70 into docs-v4.93.0 Sep 4, 2026
6 checks passed
@rachaelshaw
rachaelshaw deleted the 50155-mobile-status-rest-api-docs branch September 4, 2026 17:29
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.

3 participants