cloud-bulldozer / go-commons

Code repository with all go common packages and libraries
Apache License 2.0
4 stars 9 forks source link

[RFE] Threshold comparisons #41

Open rsevilla87 opened 5 months ago

rsevilla87 commented 5 months ago

At the moment we're providing a elasticsearch comparison mechanism at https://github.com/cloud-bulldozer/go-commons/blob/33ff99845ce3847d5b03177601cd7cb882029616/comparison/elastic.go#L47C4-L47C4

which uses the result from a ES query and compares it with the input value.

We need another method to perform thresholds comparisons with the passed value, including a tolerancy percent and comparison direction

rsevilla87 commented 5 months ago

cc @jtaleric @shashank-boyapally

smalleni commented 5 months ago

Assigning this to @mrbojangles3