def METHOD_NAME(self, session, timestamp=None):
    if timestamp is None:
        timestamp = int(time.time())
    indicators = session.query(Indicator).filter_by(active=1, keep_history=1)
    for indicator in indicators:
        # Save the indicator values to Db
        try:
            values = indicator.getCurrentValue()
        except:
            logger.exception('Unable to get data for indicator : %s' % indicator.name)
            continue
        for entry in values:
            if not 'value' in entry:
                continue
            if entry['value'] is None:
                entry['value'] = 0
            data = indicator.dataClass()
            # Import value and enity_id from entry
            data.fromDict(entry)
            data.indicator_id = indicator.id
            data.timestamp = timestamp
            session.add(data)
    session.commit()