Package Products :: Package ZenStatus :: Package ping :: Module PingResult :: Class PingResult |
[hide private]
[frames] | no frames]

# Class PingResult

source code

    object --+
             |
            PingResult

Model of an ping/traceroute result.

Instance Methods | [hide private]
__init__(self, ip, exitCode, pingOutput, timestamp=None) Ping output container. | source code
_parse(self, output) | source code
timestamp(self) Timestamp of when ping was returned (seconds since epoch). | source code
address(self) Address of the host | source code
trace(self) traceroute of the host | source code
getStatusString(self) status string: up or down | source code
__repr__(self) | source code
isUp(self) true if host is up, false if host is down | source code
rtt(self) round trip time aka ping time aka rtt; nan if host was down | source code
variance(self) variance of the rtt; nan if host was down | source code
stdDeviation(self) standard deviation of the rtt; nan if host was down | source code

Method Details | [hide private]

### __init__(self, ip, exitCode, pingOutput, timestamp=None) (Constructor) | source code
Ping output container. Overrides: object.__init__

### timestamp(self) | source code
Timestamp of when ping was returned (seconds since epoch). Decorators: `@property`

### address(self) | source code
Address of the host Decorators: `@property`

### trace(self) | source code
traceroute of the host Decorators: `@property`

### __repr__(self) (Representation operator) | source code
Overrides: object.__repr__ (inherited documentation)

### isUp(self) | source code
true if host is up, false if host is down Decorators: `@property`

### rtt(self) | source code
round trip time aka ping time aka rtt; nan if host was down Decorators: `@property`

### variance(self) | source code
variance of the rtt; nan if host was down Decorators: `@property`

### stdDeviation(self) | source code
standard deviation of the rtt; nan if host was down Decorators: `@property`