INNER CODE UNIT · Python
filter_reportable_labels
ChrispyBacon-dev/DockFlare · dockflare-agent/app/main.py:128
def filter_reportable_labels(labels):
return {
key: value for key, value in (labels or {}).items()
if isinstance(key, str)
and isinstance(value, str)
and key.startswith(("dockflare.", "cloudflare.tunnel."))
}
def normalize_docker_event_type(action):
if action == "start":
return "container_start"
if action in {"stop", "die"}:
return "container_stop"
return None
def apply_registration_response(data):