제어 흐름 함수
PantherFlow 제어 흐름 함수
case()
case()case(condition1: bool, value1: any [, condition2: bool, value2: any, ... ] [, else: any]) -> any
해당 조건이 참인 첫 번째 값을 반환합니다. 어떤 조건도 참이 아니면 null을 반환합니다.
예:
panther_logs.public.aws_alb
| extend avg=toscalar(panther_logs.public.aws_alb | summarize agg.avg(receivedBytes) by clientIp)
| project bytesSize=case(receivedBytes > avg, "larger", receivedBytes < avg, "smaller", "same")Last updated
Was this helpful?

