sematext / sematext-agent-java

Sematext Monitoring Agent
https://sematext.com/spm
Apache License 2.0
23 stars 9 forks source link

Refactor json expression function #40

Closed bsmid closed 5 years ago

bsmid commented 5 years ago

This PR refactors JsonExpressionFunction and adds support for avg/max/min/sum/length functions to it. Added support will allow expressions like the following:

source: json:/pools/default/buckets/${bucketName}/stats?zoom=minute $.op.samples.avg_disk_commit_time[0:10] return:avg()