# This file defines alerts to be triggered by the server.

[[rule]]
name = "randombits generates more 1's than 0's in last 5 seconds"
query = "select mean(value) from random_bits where time > now() - 5s"
condition = "x > 0.5"
actions = ["Print"]

# This file defines alerts to be triggered by the server.

[[rule]]
name = "Accepted Issues > 1"
query = "select mean(value) from issues.accepted.value where time > now() - 5m"
condition = "x > 1"
actions = ["Print"]

Add a "real" rule to the alert server
Add a "real" rule to the alert server

Return true if there is more than one issue with status "accepted".

Test locally by running:
$ alertserver -alsologtostderr -influxdb_database="graphite"
-influxdb_host="skiamonitor.com:10117" -influxdb_name="root"
-influxdb_password="<password from valentine>"
-use_metadata=false

BUG=skia:3036

Review URL: https://codereview.chromium.org/670703004
