File: proc_pressure.h

package info (click to toggle)
netdata 1.37.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 59,364 kB
  • sloc: ansic: 302,654; javascript: 77,865; python: 27,094; sh: 18,726; cpp: 2,916; makefile: 2,547; pascal: 171; xml: 10
file content (43 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
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
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_PROC_PRESSURE_H
#define NETDATA_PROC_PRESSURE_H

#define PRESSURE_NUM_RESOURCES 3

struct pressure {
    int updated;
    char *filename;

    struct pressure_charts {
        int enabled;

        struct pressure_share_time_chart {
            const char *id;
            const char *title;

            double value10;
            double value60;
            double value300;

            RRDSET *st;
            RRDDIM *rd10;
            RRDDIM *rd60;
            RRDDIM *rd300;
        } share_time;

        struct pressure_total_time_chart {
            const char *id;
            const char *title;

            unsigned long long value_total;

            RRDSET *st;
            RRDDIM *rdtotal;
        } total_time;
    } some, full;
};

void update_pressure_charts(struct pressure_charts *charts);

#endif //NETDATA_PROC_PRESSURE_H