This file contains 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
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") |
This file contains 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
.searchbox { | |
display: inline-block; | |
position: relative; | |
width: 200px; | |
height: 32px !important; | |
white-space: nowrap; | |
box-sizing: border-box; | |
visibility: visible !important; | |
} |
This file contains 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
alignTime = (tables=<-, alignTo=time(v: 0)) => { | |
_tableInfo = tables |> tableFind(fn: (key) => true) |> getRecord(idx: 0) | |
_startTime = if alignTo != time(v: 0) then alignTo else if exists _tableInfo._start then _tableInfo._start else time(v: 0) | |
_data = tables | |
|> stateDuration( | |
fn: (r) => true, | |
column: "timeDiff", | |
unit: 1ns | |
) | |
|> map(fn: (r) => ({ r with _time: time(v: (int(v: _startTime ) + r.timeDiff))})) |
This file contains 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
# DDL | |
CREATE DATABASE sample | |
# DML | |
# CONTEXT-DATABASE: sample | |
data a=1.33909108671076,b=-0.163643058925645 1529841600000000000 | |
data a=-0.774984088561186,b=0.137034364053949 1529841660000000000 | |
data a=-0.921037167720451,b=-0.482943221384294 1529841720000000000 |
This file contains 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
# DDL | |
CREATE DATABASE apple_stand | |
# DML | |
# CONTEXT-DATABASE: apple_stand | |
variety granny_smith=30,golden_delicious=30,fuji=30,gala=30,braeburn=30,total_weight=150 1529323200000000000 | |
variety granny_smith=29.22,golden_delicious=28.98,fuji=29.63,gala=28.92,braeburn=30,total_weight=146.75 1529323500000000000 | |
variety granny_smith=29.22,golden_delicious=27.87,fuji=29.63,gala=28.57,braeburn=29.69,total_weight=144.98 1529323800000000000 |
This file contains 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
weight apple_weight=0.11 1528113660000000000 | |
weight apple_weight=0.42 1528113720000000000 | |
weight apple_weight=0.83 1528113780000000000 | |
weight apple_weight=0.07 1528113840000000000 | |
weight apple_weight=0.19 1528113900000000000 | |
weight apple_weight=0.43 1528113960000000000 | |
weight apple_weight=0.67 1528114020000000000 | |
weight apple_weight=0.24 1528114080000000000 | |
weight apple_weight=0.74 1528114140000000000 | |
weight apple_weight=0.03 1528114200000000000 |
This file contains 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
deploy.config: | |
transform: | |
- bash set-evars.sh |
This file contains 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
nanobox run test-command | |
if [ "$BRANCH_NAME" = "master" ]; then nanobox remote add production-app ; elif [ "$BRANCH_NAME" = "staging" ]; then nanobox remote add staging-app ; fi | |
COMMIT_MESSAGE="$(git log -1 --pretty=%B)"; nanobox deploy -m \'"${COMMIT_MESSAGE}"\' |
This file contains 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
run.config: | |
engine: php | |
engine.config: | |
extensions: | |
- newrelic | |
extra_packages: | |
- newrelic | |
web.site: | |
start: |
This file contains 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
SMTP_HOST=smtp-host | |
SMTP_PORT=smtp-port | |
SMTP_USER=smtp-username | |
SMTP_PASS=smtp-password | |
SMTP_TLS=tls|ssl | |
SMTP_AUTH=login|plain |
NewerOlder