Get host tag list within time range

Hey everyone,
I’m fairly new with Flux here and I’ve got a Grafana dashboard I’m plugging in a query variable to gather the list of hosts:

import “influxdata/influxdb/schema”
bucket: “telegraf”,
tag: “host”,
predicate: (r) => true,
stop: -30m,

Is it possible to get only the results of hosts within the last 24h?