]> granicus.if.org Git - sysstat/commitdiff
sadf: Update DTD/XSD documents
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 7 Jun 2017 09:29:44 +0000 (11:29 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 7 Jun 2017 09:29:44 +0000 (11:29 +0200)
Take into account new fields names for "sar -d".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf.h
xml/sysstat-3.4.dtd [moved from xml/sysstat-3.3.dtd with 98% similarity]
xml/sysstat.xsd

diff --git a/sadf.h b/sadf.h
index f6d052afb89cbcae4c698a44cd2f1f5a89e67fa1..0b5d17ea619b9f0f51353ed49179c44e931ccb26 100644 (file)
--- a/sadf.h
+++ b/sadf.h
@@ -9,7 +9,7 @@
 #include "sa.h"
 
 /* DTD version for XML output */
-#define XML_DTD_VERSION        "3.3"
+#define XML_DTD_VERSION        "3.4"
 
 /* Various constants */
 #define DO_SAVE                0
similarity index 98%
rename from xml/sysstat-3.3.dtd
rename to xml/sysstat-3.4.dtd
index 76741b9d868cb4b2ac53e5befe1c9ce3505889ba..1a4c00e6ca0289e7c8e5fc8fb19a1dfca7dccfad 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--DTD v3.3 for sysstat. See sadf.h -->
+<!--DTD v3.4 for sysstat. See sadf.h -->
 
 <!ELEMENT sysstat (sysdata-version, host)>
 <!ATTLIST sysstat
 <!ATTLIST disk-device
        dev CDATA #REQUIRED
        tps CDATA #REQUIRED
-       rd_sec CDATA #REQUIRED
-       wr_sec CDATA #REQUIRED
-       avgrq-sz CDATA #REQUIRED
-       avgqu-sz CDATA #REQUIRED
+       rd_sec CDATA #IMPLIED
+       wr_sec CDATA #IMPLIED
+       rkB CDATA #REQUIRED
+       wkB CDATA #REQUIRED
+       avgrq-sz CDATA #IMPLIED
+       areq-sz CDATA #REQUIRED
+       avgqu-sz CDATA #IMPLIED
+       aqu-sz CDATA #REQUIRED
        await CDATA #REQUIRED
        svctm CDATA #REQUIRED
        util-percent CDATA #REQUIRED
index d66a4fe96f481d548f99671f6d4e8abdf8dfca55..1f700d78e04b5d9d065bbf3a6b3ec52a84476a4b 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://pagesperso-orange.fr/sebastien.godard/sysstat" targetNamespace="http://pagesperso-orange.fr/sebastien.godard/sysstat" elementFormDefault="qualified">
 <xs:annotation>
-       <xs:appinfo>-- XML Schema v3.3 for sysstat. See sadf.h --</xs:appinfo>
+       <xs:appinfo>-- XML Schema v3.4 for sysstat. See sadf.h --</xs:appinfo>
 </xs:annotation>
 
 <xs:element name="sysstat" type="sysstat-type"></xs:element>
 <xs:complexType name="disk-device-type">
        <xs:attribute name="dev" type="xs:string" use="required"></xs:attribute>
        <xs:attribute name="tps" type="hundredth-type" use="required"></xs:attribute>
-       <xs:attribute name="rd_sec" type="hundredth-type" use="required"></xs:attribute>
-       <xs:attribute name="wr_sec" type="hundredth-type" use="required"></xs:attribute>
-       <xs:attribute name="avgrq-sz" type="hundredth-type" use="required"></xs:attribute>
-       <xs:attribute name="avgqu-sz" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="rd_sec" type="hundredth-type"></xs:attribute>
+       <xs:attribute name="wr_sec" type="hundredth-type"></xs:attribute>
+       <xs:attribute name="rkB" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="wkB" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="avgrq-sz" type="hundredth-type"></xs:attribute>
+       <xs:attribute name="areq-sz" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="avgqu-sz" type="hundredth-type"></xs:attribute>
+       <xs:attribute name="aqu-sz" type="hundredth-type" use="required"></xs:attribute>
        <xs:attribute name="await" type="hundredth-type" use="required"></xs:attribute>
        <xs:attribute name="svctm" type="hundredth-type" use="required"></xs:attribute>
        <xs:attribute name="util-percent" type="hundredth-type" use="required"></xs:attribute>