File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ async fn update_alert_state(
185185 alert. id,
186186 alert. threshold_config. operator,
187187 alert. threshold_config. value,
188- format_number ( actual_value) ,
188+ actual_value,
189189 alert. get_eval_window( ) ,
190190 alert. get_eval_frequency( ) ,
191191 alert. query
@@ -204,23 +204,6 @@ async fn update_alert_state(
204204 }
205205}
206206
207- /// Format a number for better readability
208- fn format_number ( value : f64 ) -> String {
209- if value. fract ( ) == 0.0 {
210- // Integer value
211- format ! ( "{:.0}" , value)
212- } else if value. abs ( ) < 1.0 {
213- // Small decimal, show more precision
214- format ! ( "{:.4}" , value)
215- . trim_end_matches ( '0' )
216- . trim_end_matches ( '.' )
217- . to_string ( )
218- } else {
219- // Regular decimal, show 2 decimal places
220- format ! ( "{:.2}" , value)
221- }
222- }
223-
224207fn get_final_value ( records : Vec < RecordBatch > ) -> f64 {
225208 trace ! ( "records-\n {records:?}" ) ;
226209
You can’t perform that action at this time.
0 commit comments