1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef MINAGGREGATOR_H
4 #define MINAGGREGATOR_H
6 #include "livestatus/table.hpp"
7 #include "livestatus/aggregator.hpp"
16 struct MinAggregatorState final : public AggregatorState
24 class MinAggregator final : public Aggregator
27 DECLARE_PTR_TYPEDEFS(MinAggregator);
29 MinAggregator(String attr);
31 void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
32 double GetResultAndFreeState(AggregatorState *state) const override;
37 static MinAggregatorState *EnsureState(AggregatorState **state);
42 #endif /* MINAGGREGATOR_H */