SNMPA_NOTIFICATION_FILTER(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– snmpa_notification_filter β€” bestie edition πŸ’–

okay so welcome to the manual page for snmpa_notification_filter, the Erlang module that lives under the snmp app. it's a behaviour module, which is just fancy talk for "here's a template, you fill in the blanks, queen."


✨ NAME ✨

snmpa_notification_filter β€” the behaviour module for SNMP agent notification filters. it's giving "you write the vibe, i'll handle the plumbing." πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay bestie, so this module defines the behaviour of the agent notification filters. if you wanna be a snmpa_notification_filter compliant module (iconic of you, honestly), you must export these functions:

  • handle_notification/2

like, that's the whole vibe check. the semantics of 'em and their exact signatures get explained below, keep reading 🫢

so what's the purpose of notification filters, you ask? great question. it's to allow for modification and/or suppression of a notification. you can remix it or you can make it disappear, your call.

⚠️ heads up bestie: a misbehaving filter will be removed. no cap. act right or get evicted 😭

🌈 DATA TYPES 🌈

  • notification() :: term(). β€” it's a term. that's it. that's the type.
  • trap() :: term(). β€” also a term. we stay consistent πŸ’œ

πŸŽ€ CALLBACKS πŸŽ€

handle_notification(Notif, Data)

Handle a notification to be sent. this is your moment, your main character energy ✨

the filter can do one of three things:

  • accept the notification as is β€” return send
  • modify the notification β€” return {send, NewNotif}
  • suppress the notification β€” return dont_send

and Data? that's supplied at filter registration time, see snmpa:register_notification_filter/5. iykyk πŸ’…


that's the whole page bestie, slay πŸ’–

β€” Ericsson AB, working that snmp 5.20.5 energy, and it's literally the snmpa_notification_filter(3) manual page. periodt. πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from