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

# Class ILink

source code

    object --+
             |
            ILink

Known Subclasses:
  - ZenUtils.NetworkTree.NetworkLink

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

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

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
        ]