lib/fusuma/plugin/inputs/appmatcher_input.rb in fusuma-plugin-appmatcher-0.4.0 vs lib/fusuma/plugin/inputs/appmatcher_input.rb in fusuma-plugin-appmatcher-0.5.0
- old
+ new
@@ -20,9 +20,25 @@
pid
end
@backend.reader
end
+
+ def shutdown
+ # CustomProcess#shutdown
+ @backend.shutdown
+ end
+
+ # @param record [String] application name
+ # @return [Event]
+ def create_event(record:)
+ e = Events::Event.new(
+ tag: tag,
+ record: Events::Records::AppmatcherRecord.new(name: record)
+ )
+ MultiLogger.debug(input_event: e)
+ e
+ end
end
end
end
end