def filter_by_value_since_limit(self, array, field, value=None, since=None, limit=None):
    array = self.to_array(array)
    if value:
        array = [entry for entry in array if (entry[field] == value)]
    if since:
        array = [entry for entry in array if (entry['timestamp'] >= since)]
    if limit:
        array = array[0:limit]
    return array
def filter_by_value_since_limit(self, array, field, value=None, since=None, limit=None):
    array = self.to_array(array)
    if value:
        array = [entry for entry in array if (entry[field] == value)]
    if since:
        array = [entry for entry in array if (entry['timestamp'] >= since)]
    if limit:
        array = array[0:limit]
    return array