Docs: Note last_mdm_checked_in_at semantics on host listing responses - #53044
Draft
RachelElysia wants to merge 1 commit into
Draft
Docs: Note last_mdm_checked_in_at semantics on host listing responses#53044RachelElysia wants to merge 1 commit into
RachelElysia wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 tasks
|
|
||
| > 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. |
Member
There was a problem hiding this comment.
This is no longer true. We split last_seen_at into it's own table:
nano_seen_times.seen_time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Follow-up to #52572. Raised by @cdcme in review of #52486's mobile status branch: on
main,last_mdm_checked_in_atwas null on List hosts, Search targets, and List label's hosts. #52486 now populates it fromnano_enrollments.last_seen_at(filtered toenabled = 1), so callers reading the raw field on those listings inherit new semantics (stops advancing after MDM checkout).Description
docs/REST API/rest-api.md: for iOS/iPadOS,last_mdm_checked_in_atis populated from the active Apple MDM enrollment (nano_enrollments.last_seen_at,enabled = 1only) and stops advancing after MDM checkout.docs-v4.93.0so the note ships alongside Docs: Note mobile online/offline heuristic on Get hosts summary #52572 in the 4.93 reference-docs cut.Screenrecording
Not applicable. Docs-only.
Testing
docs-v4.93.0after merge and confirms the paragraph appears under Get host.AI
AI: Claude Code (claude-opus-4-7[1m])