Skip to content

Instantly share code, notes, and snippets.

View sanderson's full-sized avatar

Scott Anderson sanderson

View GitHub Profile
.searchbox {
display: inline-block;
position: relative;
width: 200px;
height: 32px !important;
white-space: nowrap;
box-sizing: border-box;
visibility: visible !important;
}
@sanderson
sanderson / dynamic-alert.flux
Created March 2, 2022 22:25
Example of a dynamic alerting script in Flux
import "experimental/http/requests"
import "influxdata/influxdb/secrets"
import "json"
import ejson "experimental/json"
import "slack"
option task = {name: "example-task", every: 10m}
slackToken = secrets.get(key: "SLACK_TOKEN")