Create a class that fetches the current pingdom status using the pingdom api for a given website. This is to use it in an internal dashboard
The class must have the following properties:
a single method that is called that updates the status.
currentStatus (up or down)
date and time of last error
Uptime, ie 99,07%
Downtime, ie 6h 54m 52s
The average downtime length is 10m 55s
Number of downtimes 38
The longest downtime was 3h 23m on 2011-06-01 02:14:24 and the shortest was 57s on 2011-05-30 20:20:27
date of last fetch
error status if new data is not available
The class must also have a property for maximum update frequency, ie 5 min so if the updateStatus method is called less than this period after previous invocation, then new data should not be fetched but previous data returned.
The class must be serializable
Any dependencies must be available using maven