summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/proc_pressure.h
blob: 333021866543eee818434ff187238a732a5bf883 (plain)
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
// 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_chart {
        int enabled;

        const char *id;
        const char *title;

        double value10;
        double value60;
        double value300;

        RRDSET *st;
        RRDDIM *rd10;
        RRDDIM *rd60;
        RRDDIM *rd300;
    } some, full;
};

extern void update_pressure_chart(struct pressure_chart *chart);

#endif //NETDATA_PROC_PRESSURE_H