kranthi sai
2017-09-29 20:53:44 UTC
Hi,
Is it possible to generate message based on alert Level. In the following
example, use message1 if alert level is CRITICAL else use message2.
var message1 = '{
"data":
{
"message": "anomaly detected",
}'
var message2 = '{
"data":
{
"message": "anomaly corrected",
}'
|alert()
.crit(lambda: "pvalue" < alpha)
.stateChangesOnly()
.id(idVar)
.message(message1)
Is it possible to generate message based on alert Level. In the following
example, use message1 if alert level is CRITICAL else use message2.
var message1 = '{
"data":
{
"message": "anomaly detected",
}'
var message2 = '{
"data":
{
"message": "anomaly corrected",
}'
|alert()
.crit(lambda: "pvalue" < alpha)
.stateChangesOnly()
.id(idVar)
.message(message1)
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/5b353869-0673-48ca-9386-b3bba4ec4269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/5b353869-0673-48ca-9386-b3bba4ec4269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.