Back to Influxdb

slack package

content/flux/v0/stdlib/slack/_index.md

latest1.1 KB
Original Source
<!------------------------------------------------------------------------------ IMPORTANT: This page was generated from comments in the Flux source code. Any edits made directly to this page will be overwritten the next time the documentation is generated. To make updates to this documentation, update the comments above the package declaration in the Flux source code: https://github.com/influxdata/flux/blob/master/stdlib/slack/slack.flux Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md ------------------------------------------------------------------------------->

The slack package provides functions for sending messages to Slack. Import the slack package:

js
import "slack"

Options

js
option slack.defaultURL = "https://slack.com/api/chat.postMessage"

defaultURL

defaultURL defines the default Slack API URL used by functions in the slack package.

Functions

{{< children type="functions" show="pages" >}}