def mention_enricher(event: KubernetesResourceEvent, params: MentionParams):
    """
    You can define who to mention using a static mentions configuration,
    Or, you can define it using a label or annotation, that exists either on the Kubernetes resource, or the alert

    Order:
    1. Resource annotations (For alert, get from FindingSubject. For other resources, get from obj metadata)
    2. Resource labels (For alert, get from FindingSubject. For other resources, get from obj metadata)
    3. Alert annotations (only for alert)
    4. Alert labels (only for alert)

    Note this enricher only works with the Slack sink
    """

    if not params.mentions_label and not params.static_mentions:
        logging.warning("mention_enricher called with neither static_mentions nor mentions_label set")
        return

    event_data = {}
    mentions = set()
    if params.mentions_label:
        if isinstance(event, PrometheusKubernetesAlert):
            # Alert labels and annotations. FindingSubject can represent
            # e.g. a k8s pod, job, daemonset etc etc.
            alert_subject: FindingSubject = event.get_alert_subject()
            event_data.update(alert_subject.annotations)
            event_data.update(alert_subject.labels)
            event_data.update(event.alert.annotations)
            event_data.update(event.alert.labels)
        elif event.obj:
            if event.obj.metadata.annotations:
                event_data.update(event.obj.metadata.annotations)
            if event.obj.metadata.labels:
                event_data.update(event.obj.metadata.labels)

        # get the mentions and use it
        mentions_value = event_data.get(params.mentions_label)
        if mentions_value:
            mentions = set(mentions_value.split(","))
    if params.static_mentions:
        mentions = mentions.union(params.static_mentions)

    mentions = mention_to_slack_format(mentions)

    message = params.message_template.replace("$mentions", " ".join(mentions))
    event.add_enrichment([MarkdownBlock(message)])

    You can define who to mention using a static mentions configuration,
    Or, you can define it using a label or annotation, that exists either on the Kubernetes resource, or the alert

    Order:
    1. Resource annotations (For alert, get from FindingSubject. For other resources, get from obj metadata)
    2. Resource labels (For alert, get from FindingSubject. For other resources, get from obj metadata)
    3. Alert annotations (only for alert)
    4. Alert labels (only for alert)

    Note this enricher only works with the Slack sink
    
playbooks/robusta_playbooks/alerts_integration.py