Math Functions
PantherFlow math functions
math.abs()
math.abs()
math.abs(value: number) -> number
Returns the absolute value of a numeric expression.
Example:
panther_logs.public.aws_alb
| project net_bytes=math.abs(reveivedBytes-sentBytes)
math.ceil()
math.ceil()
math.ceil(value: number [, precision: int]) -> number
Returns the value
rounded up to the specified precision
number of decimal places.
Example:
panther_logs.public.aws_alb
| summarize avg=agg.avg(receivedBytes) by ip_address
| project avg=math.ceil(avg, 2)
math.floor()
math.floor()
math.floor(value: number [, precision: int]) -> number
Returns the value
rounded down to the specified precision
number of decimal places.
Example:
panther_logs.public.aws_alb
| summarize avg=agg.avg(receivedBytes) by ip_address
| project avg=math.floor(avg, 2)
math.round()
math.round()
math.round(value: number [, precision: int]) -> float
Returns the value rounded to the specified precision.
Example:
panther_logs.public.aws_alb
| summarize avg=agg.avg(receivedBytes) by ip_address
| project avg=math.round(avg, 2)
Last updated
Was this helpful?