ensembl-hive  2.5
Bio::EnsEMBL::Hive::Utils::Slack Class Reference

Public Member Functions

public send_message_to_slack ()
 
protected _pretty_die ()
 
public send_beekeeper_message_to_slack ()
 

Detailed Description

Description

A library to interface eHive with Slack

Definition at line 10 of file Slack.pm.

Member Function Documentation

◆ _pretty_die()

protected Bio::EnsEMBL::Hive::Utils::Slack::_pretty_die ( )
    Description: Helper method to have uniform error messages
 
Code:
click to view

◆ send_beekeeper_message_to_slack()

public Bio::EnsEMBL::Hive::Utils::Slack::send_beekeeper_message_to_slack ( )
    Arg [1]      : $slack_webhook (string URL)
    Arg [2]      : $hive_pipeline (Bio::EnsEMBL::Hive::HivePipeline)
    Arg [3]      : $is_error (non-zero if message should be displayed as an error)
    Arg [4]      : $is_exit (non-zero if message should be displayed as an exit -
                   a non-zero $is_error overrides $is_exit)
    Arg [5]      : $beekeeper_message (string)
    Arg [6]      : (optional) $loop_until (string) beekeeper's loop_until setting
    Description  : Formats and packages a message from the beekeeper, then sends to Slack.
 
Code:
click to view

◆ send_message_to_slack()

public Bio::EnsEMBL::Hive::Utils::Slack::send_message_to_slack ( )
    Description: A core method to send a message to a Slack webhook.
                 The payload should be a hash-structure that can be encoded in
                 JSON and follows Slack's message structure. See more details at
                 https://api.slack.com/incoming-webhooks and
                 https://api.slack.com/docs/formatting
 
Code:
click to view

The documentation for this class was generated from the following file: