'Get the latest data from the Glances REST API.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    try:
        response = requests.get(self._resource, timeout=10)
        self.data = response.json()
    except requests.exceptions.ConnectionError:
        _LOGGER.error('Connection    error:    %s', self._resource)
        self.data = None
