Aggregate operators
Aggregate operators are aggregate operations that can be computed independently of the passage of time.
Transition and ratio calculations are not considered aggregate operators.
If the monitored URI includes parameters and the monitor is an aggregate operator, the parameter must be passed to the aggregate operator instead of to the
Monitor
function.
In the examples of the functions,
uri2
is the following:
uri2 = '/rest/v1/system?attributes=resource_utilization_poll_interval'
The aggregate operators are the following:
Count
Counts the number of distinct time-series data points that have been generated and implicitly reflects the count of data points collected at every data collection interval.
Example:
count_m = Count(uri2) self.m11 = Monitor(count_m, name='Resource Utilization Poll Interval')
Sum
Calculates the sum of the monitored resource values. When the monitored URI contains wildcard characters, this function sums over the current values of all resources pointed to by expanding the wildcards.
Example:
sum_m = Sum(uri2) self.m9 = Monitor(sum_m, name='Resource Utilization Poll Interval')
Min
orMax
Calculates the minimum or maximum of the monitored resource values. When the monitored URI contains wildcard characters, this function returns the minimum or maximum value over the current values of all resources pointed to by expanding the wildcards.
Example
Max
:max_m = Max(uri2) self.m15 = Monitor(max_m, name='Resource Utilization Poll Interval')
Average
Calculates the average of the monitored resource values. When the monitored URI contains wildcard characters, this function calculates and returns the average value over the current values of all resources pointed to by expanding the wildcards.
Example:
avg_m = Average(uri2) self.m17 = Monitor(avg_m, name='Resource Utilization Poll Interval')