-
Notifications
You must be signed in to change notification settings - Fork 1
/
advertisement.xsd
31 lines (29 loc) · 1.34 KB
/
advertisement.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://schemas.fed4fire.eu/schemas/rspec/ext/f4f_monitoring/1">
<xs:element name="monitoring">
<xs:complexType>
<xs:sequence>
<xs:element ref="metric" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="supported" use="required" type="xs:boolean"/>
<xs:attribute name="doc" use="optional" type="xs:anyURI"/>
<xs:attribute name="type" use="optional" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="metric">
<xs:complexType>
<xs:attribute name="id" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="2"/>
<xs:maxLength value="50"/>
<xs:pattern value="[a-zA-Z][a-zA-Z0-9_-.]*"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<!-- while optional, these are highly recommended -->
<xs:attribute name="description" use="optional"/>
<xs:attribute name="unit" use="optional"/>
</xs:complexType>
</xs:element>
</xs:schema>