How to determine the birthday of your agents

I had an interesting question posed to me this week because my operations team wanted to know how far back in time they could assess each of the sites we monitor. I scratched my head for a few and opened a ticket, which Panickos quickly answered for me.

His answer was simple - just use the little JSON icon on the agent’s page and you’ll find the created_at field.

Here’s the code I used to create a CSV file for my Ops team.

curl -X GET 'https://my-netbeez.example.com/agents?type=beta&page[limit]=60' \
-H 'Accept:application/json' \
-H 'Authorization:Bearer myT0kenStrngWasHere' |
jq '[.data[].attributes|{name,created_at}]' |
npx json2csv > agent_bdays.csv

Feel free to include other attribute fields such as active, agent_class or software_version if you like.

If you also want to gather further details on the tests they run then include stubbed=false on your curl command line and you’ll get a few more objects returned.