diff --git a/dashy/falco-alerts-to-dashy.py b/dashy/falco-alerts-to-dashy.py index 1c9c693..267cce9 100755 --- a/dashy/falco-alerts-to-dashy.py +++ b/dashy/falco-alerts-to-dashy.py @@ -35,17 +35,13 @@ def fetch_transitions(): def to_dashy_entry(t): rule_name = t["summary"].removeprefix("Falco rule fired - ") status = t["new"]["status"] - local_time = datetime.datetime.fromtimestamp(t["when"], LOCAL_TZ).strftime("%-I:%M %p") + when = datetime.datetime.fromtimestamp(t["when"], LOCAL_TZ).strftime("%-m/%-d %-I:%M%p").lower() return { "link": { - "text": "View", + "text": f"{when} - {status} - {rule_name}", "url": f"{NETDATA_URL}/", "title": f"{status}: {rule_name}", }, - "value": { - "text": f"{local_time} - {status} - {rule_name}", - "title": "Falco", - }, "date": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(t["when"])), }