Skip to content

Commit f945b48

Browse files
authored
allow disabling platform links on webex (#2088)
1 parent 1f927f1 commit f945b48

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

docs/configuration/sinks/webex.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,35 @@ Now we're ready to configure the webex sink.
6565
6666
You should now get playbooks results in Webex!
6767

68+
Configuration parameters
69+
------------------------------------------------
70+
71+
.. list-table::
72+
:header-rows: 1
73+
:widths: 25 15 60
74+
75+
* - Field
76+
- Default
77+
- Description
78+
* - ``bot_access_token``
79+
- *(required)*
80+
- The Webex bot access token.
81+
* - ``room_id``
82+
- *(required)*
83+
- Default Webex room ID to send notifications to.
84+
* - ``room_id_override``
85+
- *(none)*
86+
- Template resolved against subject labels/annotations to route to a different room.
87+
* - ``namespace_room_id_override``
88+
- *(none)*
89+
- Template resolved against namespace labels/annotations to route to a different room.
90+
* - ``send_to_default_if_missing``
91+
- ``true``
92+
- When overrides don't resolve, send to ``room_id`` (``true``) or drop the finding (``false``).
93+
* - ``disable_platform_links``
94+
- ``false``
95+
- When ``true``, omits the Robusta platform ``Investigate`` and ``Silence`` links from messages.
96+
6897
Dynamic Room Routing
6998
------------------------------------------------
7099

src/robusta/core/sinks/webex/webex_sink.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def write_finding(self, finding: Finding, platform_enabled: bool):
3434
room_id = self._resolve_room_id(finding)
3535
if room_id is None:
3636
return
37+
if self.params.disable_platform_links:
38+
platform_enabled = False
3739
self.sender.send_finding_to_webex(finding, platform_enabled, room_id=room_id)
3840

3941
def _resolve_room_id(self, finding: Finding) -> Optional[str]:

src/robusta/core/sinks/webex/webex_sink_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class WebexSinkParams(SinkBaseParams):
1313
room_id_override: Optional[str] = None
1414
namespace_room_id_override: Optional[str] = None
1515
send_to_default_if_missing: bool = True
16+
disable_platform_links: bool = False
1617

1718
@classmethod
1819
def _get_sink_type(cls):

0 commit comments

Comments
 (0)