snmpa_no...on_filter(3erl)

πŸ“¦
version 25.3.2.8 Β· 4 versions
, in ubuntu noble

✨ NAME ✨

Okay bestie, this page is the Erlang Module Definition for snmpa_notification_filter β€” the manual/header name is snmpa_no...on_filter(3erl) β€” and it's the Behaviour module for the SNMP agent notification filters. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

This module defines the behaviour of the agent notification filters. A snmpa_notification_filter compliant module must export the following functions:

  • handle_notification/2 β€” the required export, no cap.

The semantics of them and their exact signatures are explained below β€” yes, exactly, don't freestyle the signatures. ✨

The purpose of notification filters is to allow for modification and/or suppression of a notification. Iconic behavior, honestly.

⚠️ A misbehaving filter will be removed. Like, literally removed. So behave, bestie. πŸ’€

πŸ’… EXPORTS πŸ’…

handle_notification(Notif, Data) -> Reply

✨ Types ✨

Reply = send | {send, NewNotif} | dont_send
Notif = NewNotif = notification() | trap()
Data = term()

Handle a notification to be sent. The filter can either accept the notification as is, return send; modify the notification, return {send, NewNotif}; or suppress the notification, return dont_send. Slay β€” those are the only three vibes. πŸ’…

Data is supplied at filter registration time, see register_notification_filter. 🫢


πŸ’– Cute sign-off: source/version is Ericsson AB, snmp 5.13.5, and the footer's manual name is snmpa_no...on_filter(3erl). There's no date printed in the footer, so I'm not inventing one. Bye bestie! πŸ’…βœ¨

πŸ“¦ where this page comes from