@@ -353,6 +353,36 @@
{ 'command': 'query-events', 'returns': ['EventInfo'] }
##
+# @RollingStatsValue:
+#
+# A value/tag tuple used in 'RollingStats'
+#
+# @value: An arbitrary measurement value
+#
+# @tag: An arbitrary integer tag value
+#
+##
+{ 'type': 'RollingStatsValue', 'data': {'value': 'number', 'tag': 'uint64'} }
+
+##
+# @RollingStats:
+#
+# A set of statistics that are measured repeatedly.
+#
+# @count: The number of measurements that have contributed to the statistics
+# @min: The minimum value over the measurement period
+# @max: The maximum value over the measurement period
+# @mean: A rolling mean
+# @weighted-mean: A weighted mean (the weight set at startup)
+# @values: A list of the most recent values stored. Note that the
+# stastics above are calculated over the whole set.
+##
+{ 'type': 'RollingStats', 'data': {'count': 'int',
+ 'min': 'number', 'max': 'number',
+ 'mean': 'number', 'weighted-mean': 'number',
+ 'values': ['RollingStatsValue'] } }
+
+##
# @MigrationStats
#
# Detailed migration status.