| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_PROC_PRESSURE_H |
| 4 | #define NETDATA_PROC_PRESSURE_H |
| 5 | |
| 6 | #define PRESSURE_NUM_RESOURCES 4 |
| 7 | |
| 8 | struct pressure { |
| 9 | char *filename; |
| 10 | bool staterr; |
| 11 | int updated; |
| 12 | |
| 13 | struct pressure_charts { |
| 14 | bool available; |
| 15 | int enabled; |
| 16 | |
| 17 | struct pressure_share_time_chart { |
| 18 | const char *id; |
| 19 | const char *title; |
| 20 | |
| 21 | double value10; |
| 22 | double value60; |
| 23 | double value300; |
| 24 | |
| 25 | RRDSET *st; |
| 26 | RRDDIM *rd10; |
| 27 | RRDDIM *rd60; |
| 28 | RRDDIM *rd300; |
| 29 | } share_time; |
| 30 | |
| 31 | struct pressure_total_time_chart { |
| 32 | const char *id; |
| 33 | const char *title; |
| 34 | |
| 35 | unsigned long long value_total; |
| 36 | |
| 37 | RRDSET *st; |
| 38 | RRDDIM *rdtotal; |
| 39 | } total_time; |
| 40 | } some, full; |
| 41 | }; |
| 42 | |
| 43 | void update_pressure_charts(struct pressure_charts *charts); |
| 44 | |
| 45 | #endif //NETDATA_PROC_PRESSURE_H |