
494 vFoglight
Administration and Configuration Guide
• period: calculates the total length of a period of time from a series of metrics
and returns a value in seconds.
•
positive_delta: Returns the difference between the maximal values of the
most recent two metric values for a scoping object.
•
positive_delta_rate: Returns the difference between the maximal values of
the most recent two metric values for a scoping object divided by the time period
in seconds of the more recent metric value.
•
rate: calculates the rate of a metric value per second.
•
returnIncludeOrExcludeGivenABoolean: Determines whether to include
or exclude the object given a boolean value.
•
returnObjectsSatisfyingNameFilter: Returns a given number of objects
whose name matches a string pattern specified by the parameter.
•
returnObjectsSatisfyingTypeNameFilter: Returns a given number of
objects whose name matches a string pattern specified by the parameter.
•
stddev: Calculates the standard deviation from multiple metric values.
•
sum: Calculates the sum of metric values.
•
updateHostModel: Updates the Host Model.
Examples
• You are creating a multiple-severity rule that applies to requests for a specific JSP.
You want this rule to generate a Warning alarm when there are more than ten
requests of this type per second.
In the Condition box on the Condition tab of the rule’s Warning pane, you
specify the following:
rate(#count#)>10
• You are creating a simple rule that applies to JDBC requests. You want this rule to
fire an alarm if the metric
#requestResponseTime# returns values greater than
750 milliseconds more than 10% of the time over the period of an hour.
In the Condition box for the rule’s Fire state, you specify a condition similar to
the following:
metric = #requestResponseTime for 1 hour#
histo = histogram(metric, [10, 50, 250, 500, 750])
if (histo[5]/count(metric)>0.1)
{return true;}
else
Kommentare zu diesen Handbüchern