|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides access and information on the overall state of the system.
| Method Summary | |
java.lang.Float |
getHostAverageAvailability(java.lang.String hostName)
Returns the average amount of time a Host has been UP. |
java.lang.Float |
getHostGroupAverageAvailability(java.lang.String hostGroupName)
Returns the overall average availability of a HostGroup. |
CollageTrend |
getHostGroupServiceAvailabilityTrend(java.lang.String hostGroupName)
Returns a CollageTrend representing the trend of
HostGroupServiceAvailability. |
java.lang.Float |
getServiceAverageAvailability(java.lang.String serviceName)
Returns the average amount of time a Service has been UP. |
| Method Detail |
public java.lang.Float getServiceAverageAvailability(java.lang.String serviceName)
throws CollageException
serviceName - Name of the Service.
CollageException
public java.lang.Float getHostAverageAvailability(java.lang.String hostName)
throws CollageException
hostName - Name of the Host.
CollageException
public java.lang.Float getHostGroupAverageAvailability(java.lang.String hostGroupName)
throws CollageException
hostGroupName - Name of the HostGroup.
CollageException - if no Services exist for the HostGroup
public CollageTrend getHostGroupServiceAvailabilityTrend(java.lang.String hostGroupName)
throws CollageException
CollageTrend representing the trend of
HostGroupServiceAvailability. The trend is based on datapoints in the
PercentTimeDownUnscheduled field of the HostGroupHostAvailability table.
This field is updated every hour by a background task calling into Nagios.
There must be a minimum of 3 datapoints (or 3 hours) of data in order for
the trend to be calculated.
hostGroupName - name of the HostGroup
CollageTrend where -1 = DOWN, 0 = FLAT, and 1 = UP
CollageException - if there's not enough data to determine
the trend or if an error occurs while calculating the trend.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||