Skip to content

Docs: Note last_mdm_checked_in_at semantics on host listing responses - #53044

Draft
RachelElysia wants to merge 1 commit into
docs-v4.93.0from
52486-last-mdm-checked-in-at-doc-note
Draft

Docs: Note last_mdm_checked_in_at semantics on host listing responses#53044
RachelElysia wants to merge 1 commit into
docs-v4.93.0from
52486-last-mdm-checked-in-at-doc-note

Conversation

@RachelElysia

Copy link
Copy Markdown
Member

Issue

Follow-up to #52572. Raised by @cdcme in review of #52486's mobile status branch: on main, last_mdm_checked_in_at was null on List hosts, Search targets, and List label's hosts. #52486 now populates it from nano_enrollments.last_seen_at (filtered to enabled = 1), so callers reading the raw field on those listings inherit new semantics (stops advancing after MDM checkout).

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 host.

AI

AI: Claude Code (claude-opus-4-7[1m])

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread docs/REST API/rest-api.md

> If you're hitting this endpoint often (e.g. every hour) for a large number of hosts (e.g. 1k+) the best practice is to set the `exclude_software` to `true` to prevent overloading the Fleet server.

For iOS and iPadOS hosts, `last_mdm_checked_in_at` is populated from the active Apple MDM enrollment (`nano_enrollments.last_seen_at`, `enabled = 1` only), so the timestamp stops advancing after MDM checkout. The same field is populated on [List hosts](#list-hosts), [Search targets](#search-targets), and [List label's hosts](#list-labels-hosts) responses.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is no longer true. We split last_seen_at into it's own table:
nano_seen_times.seen_time

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.

2 participants