-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas Charlot
committed
Feb 14, 2018
1 parent
034a65f
commit 5b5becc
Showing
8 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Basics | ||
|
||
## Arithmetic operators | ||
|
||
* + | ||
* - | ||
* * | ||
* / | ||
* % | ||
* ^ | ||
|
||
## Logical operators | ||
|
||
* and | ||
* or | ||
* not | ||
|
||
## Comparaison operators | ||
|
||
* < less than | ||
* <= less than equal | ||
* == equal | ||
* != not equal | ||
* > greater than | ||
* >= greater than equal | ||
|
||
## Basics maths functions | ||
|
||
* abs | ||
* acos | ||
* acosh | ||
* asin | ||
* asinh | ||
* atan | ||
* atanh | ||
* ceil | ||
* cos | ||
* cosh | ||
* exp | ||
* floor | ||
* log (alias ln) | ||
* log10 (alias lg) | ||
* round | ||
* sinh | ||
* sqrt | ||
* tan | ||
* tanh | ||
* trunc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Function next | ||
|
||
Shift to right a serie. | ||
Shift a serie to right. | ||
|
||
## Syntax | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Function prev | ||
|
||
Shift to left a serie. | ||
Shift a serie to left. | ||
|
||
## Syntax | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
# Datasweet Formula | ||
|
||
Datasweet Formula makes it possible to calculate a metric in real time, based on any existing metrics, in a Kibana standard vizualisation. It thus allows to create pretty much any calculation, from simple ratios to more complex, chained treatments. | ||
Datasweet Formula makes it possible to calculate a metric in real time, based on any existing metrics, in a Kibana standard vizualisation. It allows to create pretty much any calculation, from simple ratios to more complex, chained treatments. | ||
|
||
![tutorial-datasweet-formula](img/tutorial-datasweet-formula.gif) | ||
|
||
## Usage | ||
Select the metrics you need as input to your formula, then : | ||
|
||
* Add new metric > select _Datasweet Formula_ | ||
* Type your formula in the input textbox as follow : `aggX + aggY`, where X and Y are the #id attributed by Kibana to the metric you want as inputs. | ||
* Type your formula in the input textbox as follow : `aggX + aggY`, where X and Y are the #id attributed by Kibana to the metric you want as input. | ||
* You can apply functions to your calculation : `avg(aggX + aggY)` | ||
* Functions are chainables : `floor(avg(aggX + aggY))` | ||
* You can use a previously set formula as input for a new one. | ||
|
||
## Credits | ||
|
||
Datasweet Formula is built on [Javascript Expression Evaluator](https://silentmatt.com/javascript-expression-evaluator/) by Silent Matt. | ||
|
||
## Questions ? problems ? suggestions ? | ||
If you've found a bug or want to request a feature, please create a [GitHub Issue](https://github.com/datasweet-fr/kibana-datasweet-formula/issues/new). | ||
If you find a bug or want to request a feature, please create a [GitHub Issue](https://github.com/datasweet-fr/kibana-datasweet-formula/issues/new). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters