Skip to content

Instantly share code, notes, and snippets.

@regel
Created December 5, 2018 18:04
Show Gist options
  • Save regel/330261655ea6e169b0bd7b0eb4f30d77 to your computer and use it in GitHub Desktop.
Save regel/330261655ea6e169b0bd7b0eb4f30d77 to your computer and use it in GitHub Desktop.
TICK-1 section 4
var neg = data
|stateCount(lambda: "is_anomaly" == FALSE)
|alert()
.info(lambda: "state_count" == 1)
.message('{{ .Time }}: situation back to normal model={{ index .Fields "model" }} state=finished score={{ index .Fields "score" | printf "%0.3f" }}.')
.slack()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment