-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnetdata.h
More file actions
58 lines (49 loc) · 956 Bytes
/
netdata.h
File metadata and controls
58 lines (49 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* SPDX-License-Identifier: GPL-3.0-or-later */
enum nd_visibility {
ND_VISIBLE = 0,
ND_HIDDEN,
};
enum nd_algorithm {
ND_ALG_ABSOLUTE,
ND_ALG_INCREMENTAL,
ND_ALG_PERCENTAGE_OF_ABSOLUTE_ROW,
ND_ALG_PERCENTAGE_OF_INCREMENTAL_ROW,
};
enum nd_charttype {
ND_CHART_TYPE_LINE,
ND_CHART_TYPE_AREA,
ND_CHART_TYPE_STACKED,
};
void nd_disable();
void nd_chart(
const char * type,
const char * prefix,
const char * id,
const char * name,
const char * title,
const char * units,
const char * family,
const char * context,
enum nd_charttype charttype
);
void nd_dimension(
const char * id,
const char * name,
enum nd_algorithm algorithm,
int multiplier,
int divisor,
enum nd_visibility visibility
);
void nd_begin(
const char * type,
const char * prefix,
const char * id
);
void nd_begin_time(
const char * type,
const char * prefix,
const char * id,
const unsigned long
);
void nd_set(const char *, const long);
void nd_end();