blob: 0f16ba4440b22244538833826bd43ded6591adc8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">
<erlref>
<header>
<copyright>
<year>2004</year><year>2016</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</legalnotice>
<title>snmpa_notification_filter</title>
<prepared></prepared>
<responsible></responsible>
<docno></docno>
<approved></approved>
<checked></checked>
<date></date>
<rev></rev>
<file>snmpa_notification_filter.xml</file>
</header>
<module>snmpa_notification_filter</module>
<modulesummary>Behaviour module for the SNMP agent notification filters.</modulesummary>
<description>
<p>This module defines the behaviour of the agent notification
filters. A <c>snmpa_notification_filter</c> compliant module
must export the following functions: </p>
<list type="bulleted">
<item>
<p>handle_notification/2</p>
</item>
</list>
<p>The semantics of them and their exact signatures are explained
below. </p>
<p>The purpose of notification filters is to allow for modification
and/or suppression of a notification.</p>
<p>A misbehaving filter will be removed.</p>
</description>
<funcs>
<func>
<name>handle_notification(Notif, Data) -> Reply</name>
<fsummary>Handle a notification</fsummary>
<type>
<v>Reply = send | {send, NewNotif} | dont_send</v>
<v>Notif = NewNotif = notification() | trap()</v>
<v>Data = term()</v>
</type>
<desc>
<p>Handle a notification to be sent. The filter can either
accept the notification as is, return <c>send</c>, modify
the notification, return <c>{send, NewNotif}</c> or
suppress the notification, return <c>dont_send</c>.</p>
<p><c>Data</c> is supplied at filter registration time,
see <seealso marker="snmpa#register_notification_filter">register_notification_filter</seealso>.
</p>
</desc>
</func>
</funcs>
</erlref>
|