Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
posting_messages_on_slack [2017/10/27 04:14] admin |
posting_messages_on_slack [2017/10/27 04:36] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Description ===== | ===== Description ===== | ||
- | Posts a message on a Slack workspace. | + | Posts a message on a Slack workspace. For example, this can be used to inform about the progress of a model that might take many hours to run. |
- | + | ||
- | This functor uses the [[https://cran.r-project.org/web/packages/curl/index.html|R package "curl"]] to post a message to an [[https://slack.com/|Slack channel]] specified. | + | |
- | + | ||
- | In order to work with Slack, the submodels asks for the definition of an "incoming webhook" used to allow the communication between external applications and a Slack workspace. More information about how to create a webhook once you have created a slack channel can be found [[https://api.slack.com/custom-integrations/incoming-webhooks|here]]. | + | |
- | + | ||
- | As an additional constraints, the model using the submodel as part of its definition must be executed using a [[http://csr.ufmg.br/dinamica/dokuwiki/doku.php?id=reference_book:r_coupling#calculate_r_expression|custom R interpreter]], since the R script will automatically download and install the package "curl" if necessary. If downloading and installing the package is not possible, the submodel execution will have no effect. | + | |
- | + | ||
- | This functor loads a map from a file. The filename and its path must be specified. | + | |
===== Inputs ===== | ===== Inputs ===== | ||
Line 29: | Line 21: | ||
^ Name ^ Type ^ Description ^ | ^ Name ^ Type ^ Description ^ | ||
| Always True | [[Boolean Value Type]] | Used to facilitate chaining this submodel to other functors. Explicitly chaining functors simplify the definition of a custom execution order among them. | | | Always True | [[Boolean Value Type]] | Used to facilitate chaining this submodel to other functors. Explicitly chaining functors simplify the definition of a custom execution order among them. | | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | This submodel uses the [[https://cran.r-project.org/web/packages/curl/index.html|R package "curl"]] to post a message to an [[https://slack.com/|Slack channel]] specified. | ||
+ | |||
+ | In order to work with Slack, the submodels asks for the definition of an "incoming webhook" used to allow the communication between external applications and a Slack workspace. More information about how to create a webhook once you have created a slack channel can be found [[https://api.slack.com/custom-integrations/incoming-webhooks|here]]. | ||
+ | |||
+ | As an additional constraints, the model using the submodel as part of its definition must be executed using a [[http://csr.ufmg.br/dinamica/dokuwiki/doku.php?id=reference_book:r_coupling#calculate_r_expression|custom R interpreter]], since the R script will automatically download and install the package "curl" if necessary. If downloading and installing the package is not possible, the submodel execution will have no effect. | ||
===== Group ===== | ===== Group ===== | ||
[[Functor List#Slack | Slack]] | [[Functor List#Slack | Slack]] | ||
- | |||
- | ===== Notes ===== | ||
===== Internal Name ===== | ===== Internal Name ===== |