1. 首页
  2. 考试认证
  3. 其它
  4. fluent-plugin-simplearithmetic 用于计算消息的Fluent插件

fluent-plugin-simplearithmetic 用于计算消息的Fluent插件

上传者: 2024-07-31 23:22:21上传 ZIP文件 8.71KB 热度 6次

"fluent-plugin-simpleithmetic这个流畅的输出插件可帮助您计算消息。该插件基于Muddy Dixon编写的。该插件没有fluent-plugin-datacalculator提供的汇总功能。安装插件非常简单,只需运行以下命令:$ fluent-gem install fluent-plugin-simplearithmetic。如果你已经熟悉FLUENT流体计算应用教程,那么这会更加轻松。假设你有这样的消息:


{

 'apple': 7,

 'orange': 3,

 'time_start': '2001-02-03T04:05:06Z',

 'time_finish': '2001-02-03T04:06:12Z',

}

现在您可以使用此配置进行计算:


<match>

 type simple_arithmetic

 tag calculated.test

match>

是不是很简单?如果还需要更多详细步骤,可以参考这篇fluent安装教程。如果你对安装有疑问,还可以查看fluent安装。这些资源将确保你顺利完成所有设置。"

下载地址
用户评论