Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/configuration/sinks/webex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,35 @@ Now we're ready to configure the webex sink.

You should now get playbooks results in Webex!

Configuration parameters
------------------------------------------------

.. list-table::
:header-rows: 1
:widths: 25 15 60

* - Field
- Default
- Description
* - ``bot_access_token``
- *(required)*
- The Webex bot access token.
* - ``room_id``
- *(required)*
- Default Webex room ID to send notifications to.
* - ``room_id_override``
- *(none)*
- Template resolved against subject labels/annotations to route to a different room.
* - ``namespace_room_id_override``
- *(none)*
- Template resolved against namespace labels/annotations to route to a different room.
* - ``send_to_default_if_missing``
- ``true``
- When overrides don't resolve, send to ``room_id`` (``true``) or drop the finding (``false``).
* - ``disable_platform_links``
- ``false``
- When ``true``, omits the Robusta platform ``Investigate`` and ``Silence`` links from messages.

Dynamic Room Routing
------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions src/robusta/core/sinks/webex/webex_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def write_finding(self, finding: Finding, platform_enabled: bool):
room_id = self._resolve_room_id(finding)
if room_id is None:
return
if self.params.disable_platform_links:
platform_enabled = False
self.sender.send_finding_to_webex(finding, platform_enabled, room_id=room_id)

def _resolve_room_id(self, finding: Finding) -> Optional[str]:
Expand Down
1 change: 1 addition & 0 deletions src/robusta/core/sinks/webex/webex_sink_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class WebexSinkParams(SinkBaseParams):
room_id_override: Optional[str] = None
namespace_room_id_override: Optional[str] = None
send_to_default_if_missing: bool = True
disable_platform_links: bool = False

@classmethod
def _get_sink_type(cls):
Expand Down
Loading