def allocated(action, config): return [ filter_elements.key(), filter_elements.value(), filter_elements.allocation_type(), filter_elements.exclude(exclude=True), ]
def size(action, config): return [ filter_elements.size_threshold(), filter_elements.threshold_behavior(), filter_elements.size_behavior(), filter_elements.exclude(), ]
def space(action, config): retval = [ filter_elements.disk_space(), filter_elements.reverse(), filter_elements.use_age(), filter_elements.exclude(), filter_elements.threshold_behavior(), ] retval += _age_elements(action, config) return retval
def count(action, config): retval = [ filter_elements.count(), filter_elements.use_age(), filter_elements.pattern(), filter_elements.reverse(), filter_elements.exclude(exclude=True), ] retval += _age_elements(action, config) return retval
def age(action, config): # Required & Optional retval = [ filter_elements.direction(), filter_elements.unit(), filter_elements.unit_count(), filter_elements.unit_count_pattern(), filter_elements.epoch(), filter_elements.exclude(), ] retval += _age_elements(action, config) logger.debug('AGE FILTER = {0}'.format(retval)) return retval
def age(action, config): # Required & Optional logger = logging.getLogger('curator.defaults.filtertypes.age') retval = [ filter_elements.direction(), filter_elements.unit(), filter_elements.unit_count(), filter_elements.unit_count_pattern(), filter_elements.epoch(), filter_elements.exclude(), ] retval += _age_elements(action, config) logger.debug('AGE FILTER = {0}'.format(retval)) return retval
def period(action, config): retval = [ filter_elements.unit(period=True), filter_elements.range_from(), filter_elements.range_to(), filter_elements.week_starts_on(), filter_elements.epoch(), filter_elements.exclude(), filter_elements.period_type(), filter_elements.date_from(), filter_elements.date_from_format(), filter_elements.date_to(), filter_elements.date_to_format(), ] # Only add intersect() to index actions. if action in settings.index_actions(): retval.append(filter_elements.intersect()) retval += _age_elements(action, config) return retval
def pattern(action, config): return [ filter_elements.kind(), filter_elements.value(), filter_elements.exclude(), ]
def alias(action, config): return [ filter_elements.aliases(), filter_elements.exclude(), ]
def empty(action, config): return [ filter_elements.exclude(), ]
def shards(action, config): return [ filter_elements.number_of_shards(), filter_elements.shard_filter_behavior(), filter_elements.exclude(), ]
def state(action, config): return [ filter_elements.state(), filter_elements.exclude(), ]
def closed(action, config): return [filter_elements.exclude(exclude=True)]
def forcemerged(action, config): return [ filter_elements.max_num_segments(), filter_elements.exclude(exclude=True), ]
def kibana(action, config): return [ filter_elements.exclude(exclude=True) ]
def opened(action, config): return [ filter_elements.exclude(exclude=True) ]
def kibana(action, config): return [filter_elements.exclude(exclude=True)]