From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT6Yo-000653-Qf for qemu-devel@nongnu.org; Wed, 04 Mar 2015 05:29:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YT6Yi-0006l5-Lx for qemu-devel@nongnu.org; Wed, 04 Mar 2015 05:29:50 -0500 From: "Dr. David Alan Gilbert (git)" Date: Wed, 4 Mar 2015 10:29:36 +0000 Message-Id: <1425464979-20578-2-git-send-email-dgilbert@redhat.com> In-Reply-To: <1425464979-20578-1-git-send-email-dgilbert@redhat.com> References: <1425464979-20578-1-git-send-email-dgilbert@redhat.com> Subject: [Qemu-devel] [RFC v2 1/4] RollingStats qapi type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, armbru@redhat.com, qemu-block@nongnu.org, quintela@redhat.com From: "Dr. David Alan Gilbert" This adds a QAPI type that holds the results of statistics collected by RStats. Signed-off-by: Dr. David Alan Gilbert --- qapi-schema.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index e16f8eb..9f5cdce 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -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. -- 2.1.0