Skip to content

Commit 9cfeab8

Browse files
authored
DOC-1240 Add slack_thread processor (#228)
1 parent 1fb1a61 commit 9cfeab8

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
*** xref:components:processors/schema_registry_encode.adoc[]
189189
*** xref:components:processors/select_parts.adoc[]
190190
*** xref:components:processors/sentry_capture.adoc[]
191+
*** xref:components:processors/slack_thread.adoc[]
191192
*** xref:components:processors/sleep.adoc[]
192193
*** xref:components:processors/split.adoc[]
193194
*** xref:components:processors/sql.adoc[]
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
= slack_thread
2+
// tag::single-source[]
3+
:type: processor
4+
5+
component_type_dropdown::[]
6+
7+
Reads a Slack thread using the Slack API method https://api.slack.com/methods/conversations.replies[conversations.replies^].
8+
9+
ifndef::env-cloud[]
10+
Introduced in version 4.52.0.
11+
endif::[]
12+
13+
```yml
14+
# Common configuration fields, showing default values
15+
label: ""
16+
slack_thread:
17+
bot_token: "" # No default (required)
18+
channel_id: "" # No default (required)
19+
thread_ts: "" # No default (required)
20+
```
21+
22+
== Fields
23+
24+
=== `bot_token`
25+
26+
Your Slack bot user's OAuth token, which must have the correct permissions to read messages from the Slack channel specified in `channel_id`.
27+
28+
*Type*: `string`
29+
30+
=== `channel_id`
31+
32+
The encoded ID of the Slack channel from which to read threads. This field supports xref:configuration:interpolation.adoc#bloblang-queries[interpolation functions].
33+
34+
*Type*: `string`
35+
36+
=== `thread_ts`
37+
38+
The timestamp of the parent message of the thread you want to read. This field supports xref:configuration:interpolation.adoc#bloblang-queries[interpolation functions].
39+
40+
*Type*: `string`
41+
42+
// end::single-source[]

0 commit comments

Comments
 (0)