snmpa_no...on_filter(3erl)
β¨ 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
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms