summaryrefslogtreecommitdiffstats
path: root/schemas
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-11-09 15:00:17 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-03-06 04:52:35 +0100
commita3ed36842d1e4762f81d8ad9c10bd36dc73a26c3 (patch)
tree9e8c5d9a27e58e906193c955865294ef620421c0 /schemas
parent7c51b8e02cc221ed3d9d9f2f7da4ad03f27d2046 (diff)
downloadbcfg2-a3ed36842d1e4762f81d8ad9c10bd36dc73a26c3.tar.gz
bcfg2-a3ed36842d1e4762f81d8ad9c10bd36dc73a26c3.tar.bz2
bcfg2-a3ed36842d1e4762f81d8ad9c10bd36dc73a26c3.zip
pingdata.xml: add new file for dynamic ping data of the clients
bcfg2-ping-sweep saved the pingdata into clients.xml. This is problematic if the repository is tracked by a vcs. Now the dynamic data is saved into pingdata.xml and the DBStat plugin reads the data from there. So the pingdata.xml could be ignored by the vcs.
Diffstat (limited to 'schemas')
-rw-r--r--schemas/clients.xsd2
-rw-r--r--schemas/pingdata.xsd28
2 files changed, 28 insertions, 2 deletions
diff --git a/schemas/clients.xsd b/schemas/clients.xsd
index b79be385c..50ac4e347 100644
--- a/schemas/clients.xsd
+++ b/schemas/clients.xsd
@@ -22,13 +22,11 @@
</xsd:choice>
<xsd:attribute type='xsd:string' name='name' use='required'/>
<xsd:attribute type='xsd:string' name='profile' use='required'/>
- <xsd:attribute type='xsd:string' name='pingable' use='optional'/>
<xsd:attribute type='xsd:string' name='auth' use='optional'/>
<xsd:attribute type='xsd:string' name='uuid'/>
<xsd:attribute type='xsd:string' name='password'/>
<xsd:attribute type='xsd:string' name='location'/>
<xsd:attribute type='xsd:string' name='secure'/>
- <xsd:attribute type='xsd:string' name='pingtime' use='optional'/>
<xsd:attribute type='xsd:string' name='address'/>
</xsd:complexType>
diff --git a/schemas/pingdata.xsd b/schemas/pingdata.xsd
new file mode 100644
index 000000000..dfb123efa
--- /dev/null
+++ b/schemas/pingdata.xsd
@@ -0,0 +1,28 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+
+ <xsd:annotation>
+ <xsd:documentation>
+ pingdata schema for bcfg2
+ Alexander Sulfrian
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="xml.xsd"/>
+
+ <xsd:complexType name='PingStatisticType'>
+ <xsd:attribute type='xsd:string' name='name' use='required'/>
+ <xsd:attribute type='xsd:string' name='pingable' use='required'/>
+ <xsd:attribute type='xsd:string' name='pingtime' use='optional'/>
+ </xsd:complexType>
+
+ <xsd:complexType name='PingStatisticsType'>
+ <xsd:sequence minOccurs='0' maxOccurs='unbounded'>
+ <xsd:element name='Client' type='PingStatisticType'/>
+ </xsd:sequence>
+ <xsd:attribute name='version' type='xsd:string'/>
+ <xsd:attribute ref="xml:base"/>
+ </xsd:complexType>
+
+ <xsd:element name='PingStatistics' type='PingStatisticsType'/>
+</xsd:schema>