]> git.ipfire.org Git - collecty.git/commitdiff
modules: Rename RRD schema
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Sep 2025 09:22:33 +0000 (09:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Sep 2025 09:22:33 +0000 (09:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/module.h
src/daemon/modules/loadavg.c

index ce7362e8f243aa2027dc7d41daa29aa94208bb6d..e6b56017c8a404dc0d499cef124436583994a54c 100644 (file)
@@ -28,7 +28,7 @@ typedef struct collecty_module collecty_module;
 
 #define MAX_FIELDS 64
 
-typedef struct collecty_rrd_schema {
+typedef struct collecty_rrd_ds {
        // Field
        const char* field;
 
@@ -38,13 +38,13 @@ typedef struct collecty_rrd_schema {
        // Minimum/Maxmimum Value
        int min;
        int max;
-} collecty_rrd_schema;
+} collecty_rrd_ds;
 
 typedef struct collecty_module_methods {
        const char* name;
 
        // RRD Schema
-       collecty_rrd_schema rrd_schema[MAX_FIELDS];
+       collecty_rrd_ds rrd_dss[MAX_FIELDS];
 
        // Init
        int (*init)(collecty_ctx* ctx);
index 3d7c1db2d7bf1c9026837f72200dcf6883b3612b..15f9638f4a48f3ff30bd9739a4bb9a7adf1c2514 100644 (file)
@@ -41,8 +41,8 @@ static int loadavg_collect(collecty_ctx* ctx, collecty_module* module) {
 const collecty_module_methods loadavg_module = {
        .name    = "loadavg",
 
-       // RRD Schema
-       .rrd_schema = {
+       // RRD Data Sources
+       .rrd_dss = {
                { "load1",  "GAUGE", 0, -1, },
                { "load5",  "GAUGE", 0, -1, },
                { "load15", "GAUGE", 0, -1, },