Hi all! Which API endpoint is used to fetch vital...
# fleet
m
Hi all! Which API endpoint is used to fetch vitals? As in, when I click on the "refetch vitals" link in Fleet? Is it
/api/v1/fleet/hosts/:id/health?
g
Greetings @Mike S., Think would be the
/api/v1/fleet/hosts/:id/refetch
. https://fleetdm.com/docs/rest-api/rest-api#refetch-host is the same as hitting refresh on the host page.
/api/v1/fleet/hosts/:id/health
is the current data Fleet has.
m
Awesome, thanks Grant!
Would this be something we'd want to be publicly accessible? I'm seeing some hosts that are failing to fetch their vitals (among other query issues). But I'm not seeing this endpoint in my Cloudflare logs, which is throwing me off a bit. https://fleetdm.com/guides/what-api-endpoints-to-expose-to-the-public-internet
l
Hi Mike!
Would this be something we'd want to be publicly accessible?
Which endpoint are you referring to?