1
2
3
4
5
6
7
8
9
10
11
12
13
14 __doc__="""ManagedEntity
15
16 $Id: DeviceComponent.py,v 1.1 2004/04/06 21:05:03 edahl Exp $"""
17
18 import logging
19 log = logging.getLogger("zen.DeviceComponent")
20
21 from ZenModelRM import ZenModelRM
22 from DeviceResultInt import DeviceResultInt
23 from RRDView import RRDView
24 from EventView import EventView
25
26 from Products.ZenRelations.RelSchema import *
27
28 -class ManagedEntity(ZenModelRM, DeviceResultInt, EventView, RRDView):
29 """
30 ManagedEntity is an entity in the system that is managed by it.
31 Its basic property is that it can be classified by the ITClass Tree.
32 Also has EventView and RRDView available.
33 """
34
35
36
37
38
39
40 snmpindex = 0
41 monitor = True
42
43 _properties = (
44 {'id':'snmpindex', 'type':'string', 'mode':'w'},
45 {'id':'monitor', 'type':'boolean', 'mode':'w'},
46 )
47
48 _relations = (
49 ("dependencies", ToMany(ToMany, "Products.ZenModel.ManagedEntity", "dependents")),
50 ("dependents", ToMany(ToMany, "Products.ZenModel.ManagedEntity", "dependencies")),
51 )
52
54 """Overridden in lower classes if a device relationship exists.
55 """
56 return None
57