---
name: "snmpa_notification_filter"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/snmpa_notification_filter"
---

# snmpa\_notification\_filter(3erl)

Behaviour module for the SNMP agent notification filters.

## NAME

snmpa\_notification\_filter - 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 semantics of them and their exact signatures are explained below.

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

A misbehaving filter will be removed.

## 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*.

*Data* is supplied at filter registration time, see register\_notification\_filter.
