# 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` or `Max`

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')
``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.76643133,"math_prob":0.972638,"size":1842,"snap":"2022-40-2023-06","text_gpt3_token_len":357,"char_repetition_ratio":0.14145811,"word_repetition_ratio":0.244,"special_character_ratio":0.19109663,"punctuation_ratio":0.1010101,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99621314,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-02T16:13:48Z\",\"WARC-Record-ID\":\"<urn:uuid:68da04b5-3712-48fb-90e9-42fb6a7181a8>\",\"Content-Length\":\"7027\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:570bf1a3-6a31-45fd-8ba2-0b2280dc9a13>\",\"WARC-Concurrent-To\":\"<urn:uuid:56205b1e-fa24-4669-9cf8-c0f68f1e6d20>\",\"WARC-IP-Address\":\"16.230.96.192\",\"WARC-Target-URI\":\"https://techhub.hpe.com/eginfolib/Aruba/OS-CX_10.01/5200-5145/GUID-1BD4ECF0-1773-4A31-B193-8ADC934CF599.html\",\"WARC-Payload-Digest\":\"sha1:JB7BSN6VPLN7Z5MCRU7INJL2ZKL5XBIF\",\"WARC-Block-Digest\":\"sha1:S4CZ5Y4MKRDHIGQNGAYULUZXHKWPSDCR\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337338.11_warc_CC-MAIN-20221002150039-20221002180039-00434.warc.gz\"}"}