Use case: we intend to find out EXACT checklist of those brand-new-on-boarding hosts/one-agents during last 7 days or custom period. Those have to match with “Console > Deployment status > OneAgents” which EXCLUDE those preexisting-hosts/one-agents with re-enabled-monitor.
Issue:
hosts & oneagents API limitation > those 2 API shown “firstSeenTimestamp” field re-count the datetime if already-on-boarded hosts restarted or one-agent service restarted. We need to exclude those cases but ONLY retrieve first-time-brand-new-on-board ones.Question: which API and field can reach above goal? Any solution for us to easily grab “brand-new-on-boarding hosts/one-agents during last 7 days or custom period”?
Have you already checked this? > Yes, we have tried this API api/v1/oneagents plus api/v1/entity/infrastructure/hosts, however, “hosts & oneagents API limitation > those 2 API shown “firstSeenTimestamp” field re-count the datetime if already-on-boarded hosts restarted or one-agent service restarted. We need to exclude those cases but ONLY retrieve first-time-brand-new-on-board ones.”.
Hi @avrildong, were you able to find a solution for your specific use case maybe? If so, we’d really appreciate you sharing it with the Community :blush:
And if not yet, let’s bring this question to the top once again so more people see it and hope someone has the answer for you :wink: Cheers!
@Ana_Kuzmenchuk and @Mizső , thanks much for asking! Sorry I do not know why I missed this thread so that I reply late.
I believe the solution works, but we did not validate more.
use case:
“MONITORED_AGENT_REGISTERED” in api/v1/oneagents response “api_v1_oneagents_1yr.response.json” > “MONITORED_AGENT_REGISTERED” returned 5 hits (= 5 new on-board) vs “displayname” 10283 hits (total one-agents)