lib/fluent/plugin/in_cloudwatch_logs.rb in fluent-plugin-cloudwatch-logs-0.2.1 vs lib/fluent/plugin/in_cloudwatch_logs.rb in fluent-plugin-cloudwatch-logs-0.2.2

- old
+ new

@@ -1,9 +1,13 @@ module Fluent + require 'fluent/mixin/config_placeholders' + class CloudwatchLogsInput < Input Plugin.register_input('cloudwatch_logs', self) + include Fluent::Mixin::ConfigPlaceholders + # Define `router` method of v0.12 to support v0.10.57 or earlier unless method_defined?(:router) define_method("router") { Engine } end @@ -20,9 +24,13 @@ def initialize super require 'aws-sdk-core' + end + + def placeholders + [:percent] end def configure(conf) super configure_parser(conf)