1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef INVSUMAGGREGATOR_H
4 #define INVSUMAGGREGATOR_H
6 #include "livestatus/table.hpp"
7 #include "livestatus/aggregator.hpp"
15 struct InvSumAggregatorState final : public AggregatorState
23 class InvSumAggregator final : public Aggregator
26 DECLARE_PTR_TYPEDEFS(InvSumAggregator);
28 InvSumAggregator(String attr);
30 void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
31 double GetResultAndFreeState(AggregatorState *state) const override;
36 static InvSumAggregatorState *EnsureState(AggregatorState **state);
41 #endif /* INVSUMAGGREGATOR_H */