vhostmd/metric.dtd
Jim Fehlig 27d6cbf362 Add a 'unit' attribute to the metrics element
Add an optional 'unit' attribute to the <metrics> element. The
value of 'unit' provided in a <metric> definition is opaque to vhostmd
and returned as is when reporting the metric value.

Fixes: https://github.com/vhostmd/vhostmd/issues/8

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2023-06-23 14:41:13 -06:00

22 lines
401 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2009 Novell, Inc.
Metric DTD
-->
<!ELEMENT metric (name,value)>
<!ATTLIST metric
type (int32|uint32|int64|uint64|real32|real64|string) #REQUIRED
context (host|vm) #REQUIRED
id CDATA #IMPLIED
uuid CDATA #IMPLIED
unit CDATA #IMPLIED
>
<!ELEMENT name (#PCDATA)>
<!ELEMENT value (#PCDATA)>