Skip to content

Commit e5094c4

Browse files
committed
added fingerprint to template
1 parent 1a7ee23 commit e5094c4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

docs/configuration/sinks/slack.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,3 +294,5 @@ Available template variables:
294294
+-----------------------------+-------------------------------------------------------------+
295295
| ``annotations`` | Kubernetes annotations on the subject resource (dict) |
296296
+-----------------------------+-------------------------------------------------------------+
297+
| ``fingerprint`` | The unique identifier for the alert |
298+
+-----------------------------+-------------------------------------------------------------+

src/robusta/integrations/slack/sender.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ def __create_finding_header_preview(
508508
"aggregation_key": finding.aggregation_key,
509509
"labels": finding.subject.labels if finding.subject else {},
510510
"annotations": finding.subject.annotations if finding.subject else {},
511+
"fingerprint": finding.fingerprint,
511512
}
512513

513514
custom_template = sink_params.get_custom_template() if sink_params else None

0 commit comments

Comments
 (0)