This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-12-20 21:04:29 +00:00
|
|
|
"""authentik events app"""
|
|
|
|
from importlib import import_module
|
|
|
|
|
|
|
|
from django.apps import AppConfig
|
2022-07-01 14:49:24 +00:00
|
|
|
from prometheus_client import Gauge
|
|
|
|
|
|
|
|
GAUGE_TASKS = Gauge(
|
|
|
|
"authentik_system_tasks",
|
|
|
|
"System tasks and their status",
|
|
|
|
["task_name", "task_uid", "status"],
|
|
|
|
)
|
2020-12-20 21:04:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
class AuthentikEventsConfig(AppConfig):
|
|
|
|
"""authentik events app"""
|
|
|
|
|
|
|
|
name = "authentik.events"
|
|
|
|
label = "authentik_events"
|
|
|
|
verbose_name = "authentik Events"
|
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
import_module("authentik.events.signals")
|