metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otto Fowler <ottobackwa...@gmail.com>
Subject Re: Stellar support for switch/case style conditionals
Date Tue, 17 Oct 2017 18:28:10 GMT
match(longer_variable -> x, other_variable -> y) { x < 10 : 'info', x <= 20
: 'warn’, x < y : ‘oh boy’,  default: ‘critical- ‘ + TO_STRING(x) +
TO_STRING(y) }


On October 17, 2017 at 14:26:00, Otto Fowler (ottobackwards@gmail.com)
wrote:

match(longer_variable -> x) { x < 10 : 'info', x <= 20 : 'warn', default:
'critical' }

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message