Code

perl plugin, Collectd.pm: Added support to flush Perl plugins.
[collectd.git] / bindings / perl / Collectd.pm
index 43775706c3b8ccc6af6929a0d623b7145496f692..399fca84fa592c3e37ff4974b8f55d1b745f9036 100644 (file)
@@ -52,6 +52,7 @@ our %EXPORT_TAGS = (
                        TYPE_SHUTDOWN
                        TYPE_LOG
                        TYPE_NOTIF
+                       TYPE_FLUSH
                        TYPE_DATASET
        ) ],
        'ds_types' => [ qw(
@@ -101,7 +102,8 @@ my %types = (
        TYPE_WRITE,    "write",
        TYPE_SHUTDOWN, "shutdown",
        TYPE_LOG,      "log",
-       TYPE_NOTIF,    "notify"
+       TYPE_NOTIF,    "notify",
+       TYPE_FLUSH,    "flush"
 );
 
 foreach my $type (keys %types) {