Package Products :: Package ZenModel :: Module Link :: Class ILink |
[hide private]
[frames] | no frames]

# Class ILink

source code

    object --+
             |
            ILink

Defines the interface for Link-like objects, which represent a connection between two devices or components

Instance Methods | [hide private]
getStatus(self) Returns the event status, determined by: Pingdown on Device owning either endpoint Most severe event on either endpoint | source code
setEndpoints(self, pointa, pointb) Sets the two endpoints of a link-like object | source code
getEndpointNames(self) Returns unique endpoint names (see Linkable.getEndpointName) | source code
getOtherEndpoint(self, endpoint) Returns the link endpoint that is not the one given | source code
getDataForJSON(self) Returns data ready for serialization. | source code
getGeomapData(self, context, full=False) Return the addresses of the endpoints aggregated for the generation of the context | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
| link_type = `''`
| OSI_layer = `''`
| entry_type = `''`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### getDataForJSON(self) | source code
    Returns data ready for serialization.
    Format:
        [ id link as string
        , endpoint a name
        , endpoint b name
        , self.OSI_layer
        , self.link_type
        , self.entry_type
        , self.id
        ]