def hpa_events_enricher(alert: PrometheusKubernetesAlert, params: EventEnricherParams):
    """
    Notify with the events for the HPA.
    """
    hpa = alert.hpa
    if not hpa:
        logging.info(f"hpa_events_enricher - no hpa on event: {alert}")
        return
    events_table_block = get_resource_events_table(
        "*HPA events:*",
        hpa.kind,
        hpa.metadata.name,
        hpa.metadata.namespace,
        included_types=params.included_types,
        max_events=params.max_events,
    )
    if events_table_block:
        alert.add_enrichment([events_table_block], {SlackAnnotations.ATTACHMENT: True},
                             enrichment_type=EnrichmentType.k8s_events, title="HPA Events")

    Notify with the events for the HPA.
    
playbooks/robusta_playbooks/autoscaler.py