Sha256: 8424f359ad42f65fd3e850c921544603915e42bbaeec66416741586ef7935c05

Contents?: true

Size: 970 Bytes

Versions: 3

Compression:

Stored size: 970 Bytes

Contents

# This is a sample setting for Slack plugin
# Copy this file to slack.yaml or rename.

# If you want to disable this plugin, uncomment it.
#disable: true

# Define comment for a device
device_comments:
  M210: Full error
  D10: Running

# Event setting
events:

  # Set webhook url for IFTTT.
  # We recommend setting web_hook_key from an environment variable.
  - webhook_url: <%= ENV['SLACK_WEBHOOK_NOTIFICATION_URL'] %>

    # Set trigger conditions
    # You can use type raise, fall, raise_and_fall, changed, and interval.
    trigger:
      type: raise_and_fall

    # String format to send Slack.
    format:
      raise: __device_comment__ has occurred at __time__ .
      fall: __device_comment__ was reset at __time__ .
    devices: M210

  - webhook_url: <%= ENV['SLACK_WEBHOOK_URL'] %>
    trigger:
      type: raise_and_fall
    format:
      raise: Start __device_comment__ at __time__ .
      fall: Stop __device_comment__ at __time__ .
    devices: M100

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ladder_drive-0.6.8 plugins/config/slack.yaml.example
ladder_drive-0.6.7 plugins/config/slack.yaml.example
ladder_drive-0.6.6 plugins/config/slack.yaml.example