]> granicus.if.org Git - sysstat/commitdiff
sadf: Update DTD and XSD documents
authorSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 14 Apr 2020 11:44:43 +0000 (13:44 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 14 Apr 2020 11:44:43 +0000 (13:44 +0200)
Take into account PSI statistics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf.h
xml/sysstat-3.9.dtd
xml/sysstat.xsd

diff --git a/sadf.h b/sadf.h
index 60eaa9f0706bceee3630fdbe73ac7b6459ec803d..af3660328a2f8ac63c66ed3b66b291467670189a 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.8"
+#define XML_DTD_VERSION        "3.9"
 
 /* Various constants */
 #define DO_SAVE                0
index 1ca3c018af50f3740cd29f7ce4fe8789dcbe6f43..3e945c80b724168612733b5dede19aece32f325c 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--DTD v3.8 for sysstat. See sadf.h -->
+<!--DTD v3.9 for sysstat. See sadf.h -->
 
 <!ELEMENT sysstat (sysdata-version, host)>
 <!ATTLIST sysstat
@@ -10,7 +10,7 @@
 
 <!ELEMENT sysdata-version (#PCDATA)>
 
-<!ENTITY % TIMESTAMP_ELEMENTS "cpu-load|process-and-context-switch|interrupts|swap-pages|paging|io|memory|hugepages|kernel|queue|serial|disk|network|power-management|filesystems">
+<!ENTITY % TIMESTAMP_ELEMENTS "cpu-load|process-and-context-switch|interrupts|swap-pages|paging|io|memory|hugepages|kernel|queue|serial|disk|network|power-management|filesystems|psi">
 <!ENTITY % HOST_ELEMENTS "sysname|release|machine|number-of-cpus|file-date|file-utc-time|timezone|statistics|restarts|comments">
 
 <!ELEMENT host (%HOST_ELEMENTS;)+>
        Iused CDATA #REQUIRED
        Iused-percent CDATA #REQUIRED
 >
+
+<!ELEMENT psi (psi-cpu?, psi-io?, psi-mem?)>
+<!ATTLIST psi
+       per CDATA #REQUIRED
+>
+
+<!ELEMENT psi-cpu EMPTY>
+<!ATTLIST psi-cpu
+       some_avg10 CDATA #REQUIRED
+       some_avg60 CDATA #REQUIRED
+       some_avg300 CDATA #REQUIRED
+       some_total CDATA #REQUIRED
+>
+
+<!ELEMENT psi-io EMPTY>
+<!ATTLIST psi-io
+       some_avg10 CDATA #REQUIRED
+       some_avg60 CDATA #REQUIRED
+       some_avg300 CDATA #REQUIRED
+       some_total CDATA #REQUIRED
+       full_avg10 CDATA #REQUIRED
+       full_avg60 CDATA #REQUIRED
+       full_avg300 CDATA #REQUIRED
+       full_total CDATA #REQUIRED
+>
+
+<!ELEMENT psi-mem EMPTY>
+<!ATTLIST psi-mem
+       some_avg10 CDATA #REQUIRED
+       some_avg60 CDATA #REQUIRED
+       some_avg300 CDATA #REQUIRED
+       some_total CDATA #REQUIRED
+       full_avg10 CDATA #REQUIRED
+       full_avg60 CDATA #REQUIRED
+       full_avg300 CDATA #REQUIRED
+       full_total CDATA #REQUIRED
+>
index 3f3d1623083663889e04e0f40d94a48f0be108c9..263aa9ea9b221699ebb1b13674095da89bafba59 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.8 for sysstat. See sadf.h --</xs:appinfo>
+       <xs:appinfo>-- XML Schema v3.9 for sysstat. See sadf.h --</xs:appinfo>
 </xs:annotation>
 
 <xs:element name="sysstat" type="sysstat-type"></xs:element>
                <xs:element name="network" type="network-type" minOccurs="0" maxOccurs="1"></xs:element>
                <xs:element name="power-management" type="power-management-type" minOccurs="0" maxOccurs="1"></xs:element>
                <xs:element name="filesystems" type="filesystems-type" minOccurs="0" maxOccurs="1"></xs:element>
+               <xs:element name="psi" type="psi-type" minOccurs="0" maxOccurs="1"></xs:element>
        </xs:sequence>
        <xs:attribute name="date" type="xs:date" use="required"></xs:attribute>
        <xs:attribute name="time" type="xs:time" use="required"></xs:attribute>
        <xs:attribute name="Iused-percent" type="hundredth-type" use="required"></xs:attribute>
 </xs:complexType>
 
+<xs:element name="psi" type="psi-type"></xs:element>
+<xs:complexType name="psi-type">
+       <xs:sequence>
+               <xs:element name="psi-cpu" type="psi-some-type" minOccurs="0" maxOccurs="1"></xs:element>
+               <xs:element name="psi-io" type="psi-full-type" minOccurs="0" maxOccurs="1"></xs:element>
+               <xs:element name="psi-mem" type="psi-full-type" minOccurs="0" maxOccurs="1"></xs:element>
+       </xs:sequence>
+       <xs:attribute name="per" type="per-type" use="required"></xs:attribute>
+</xs:complexType>
+
+<xs:element name="psi-cpu" type="psi-some-type"></xs:element>
+<xs:complexType name="psi-some-type">
+       <xs:attribute name="some_avg10" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="some_avg60" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="some_avg300" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="some_total" type="hundredth-type" use="required"></xs:attribute>
+</xs:complexType>
+
+<xs:element name="psi-io" type="psi-full-type"></xs:element>
+<xs:element name="psi-mem" type="psi-full-type"></xs:element>
+<xs:complexType name="psi-full-type">
+       <xs:attribute name="some_avg10" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="some_avg60" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="some_avg300" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="some_total" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="full_avg10" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="full_avg60" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="full_avg300" type="hundredth-type" use="required"></xs:attribute>
+       <xs:attribute name="full_total" type="hundredth-type" use="required"></xs:attribute>
+</xs:complexType>
+
 </xs:schema>