This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = batch | |
|query('SELECT * FROM "telegraf_test"."autogen"."humid"') | |
.period(20s) | |
.every(20s) | |
data | |
@hash() | |
.field('v') | |
|alert() | |
.crit(lambda: TRUE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kapacitor.udf.agent import Agent, Handler | |
from kapacitor.udf import udf_pb2 | |
import logging | |
import json | |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s:%(name)s: %(message)s') | |
logger = logging.getLogger() | |
class GeoTestHandler(Handler): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recipe created by recipetool | |
# This is the basis of a recipe and may need further editing in order to be fully func | |
# (Feel free to remove these comments when editing.) | |
# | |
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is | |
# your responsibility to verify that the values are complete and correct. | |
LICENSE = "MIT" | |
LIC_FILES_CHKSUM = "file://LICENSE;md5=046523829184aac3703a4c60c0ae2104" | |
HOMEPAGE = "https://github.com/influxdb/influxdb-python" |
NewerOlder