summaryrefslogtreecommitdiffstats
path: root/web/api/queries/sum/sum.h
blob: 898782775432614a16ccc5bd182539530b00a1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_API_QUERY_SUM_H
#define NETDATA_API_QUERY_SUM_H

#include "../query.h"
#include "../rrdr.h"

void grouping_create_sum(RRDR *r, const char *options __maybe_unused);
void grouping_reset_sum(RRDR *r);
void grouping_free_sum(RRDR *r);
void grouping_add_sum(RRDR *r, NETDATA_DOUBLE value);
NETDATA_DOUBLE grouping_flush_sum(RRDR *r, RRDR_VALUE_FLAGS *rrdr_value_options_ptr);

#endif //NETDATA_API_QUERY_SUM_H