cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
227
Views
1
Helpful
3
Replies

ThousandEyes Rest API - current Last Contacted Time

glasj2002
Level 1
Level 1

Hello All,

Trying to find out if there is any way to get the Last Contacted time of Enterprise agents?
Some web searches suggested a 'usage' endpoint in the API, but one must be a usage-based customer in order to use that endpoint.  We are not.

I am hoping there is some secret handshake hidden in the API that will expose that Last Contacted time for a given Enterprise agent.

Thanks in advance

1 Accepted Solution

Accepted Solutions

Tyler Langston
Cisco Employee
Cisco Employee

Hi @glasj2002 - I ran your question by our experts and they had some insight for you!

Yes, both https://api.thousandeyes.com/v7/agents and https://api.thousandeyes.com/v7/agents/{agentId} API endpoints have a lastSeen attribute that shows the last time the agent made contact with the platform.

 

Let me know if you have any other questions, and welcome to our Community!

View solution in original post

3 Replies 3

Tyler Langston
Cisco Employee
Cisco Employee

Hi @glasj2002 - I ran your question by our experts and they had some insight for you!

Yes, both https://api.thousandeyes.com/v7/agents and https://api.thousandeyes.com/v7/agents/{agentId} API endpoints have a lastSeen attribute that shows the last time the agent made contact with the platform.

 

Let me know if you have any other questions, and welcome to our Community!

Wow.  We have a fair number of agents.  Previously, I had looked through many results from the 'agents' api endpoint - seeing agents with the state 'enabled' but no mention of lastSeen.  It appeared to me that this datapoint was not included.  This time, based on your reply - I went through many more results - determined to find this datapoint.   'Enabled' in not enough.  I had not come across the results that mattered.  There is an added datapoint, 'agentState' that shows up when the agent is not only Enabled but also 'online'.  In those cases, there is a lastSeen datapoint.  I feel foolish having made my determination in haste.  Thank you for your reply, @Tyler Langston .  Lesson learned.

Tyler Langston
Cisco Employee
Cisco Employee

Happy to help you out @glasj2002 - let us know if you run into any other questions as you work!