-
Notifications
You must be signed in to change notification settings - Fork 21
/
event.xsd
219 lines (219 loc) · 10.4 KB
/
event.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:evt="http://schemas.microsoft.com/win/2004/08/events/event">
<xs:simpleType name="GUIDType">
<xs:restriction base="xs:string">
<xs:pattern value="\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="DataType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Name" type="xs:string" use="optional"/>
<xs:attribute name="Type" type="xs:QName" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="HexInt32Type">
<xs:annotation>
<xs:documentation> Hex 1-8 digits in size</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="0[xX][0-9A-Fa-f]{1,8}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexInt64Type">
<xs:annotation>
<xs:documentation> Hex 1-16 digits in size</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="0[xX][0-9A-Fa-f]{1,16}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ComplexDataType">
<xs:sequence>
<xs:element name="Data" type="evt:DataType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="SystemPropertiesType">
<xs:sequence>
<xs:element name="Provider">
<xs:complexType>
<xs:attribute name="Name" type="xs:anyURI"
use="optional"/>
<xs:attribute name="Guid" type="evt:GUIDType"
use="optional"/>
<xs:attribute name="EventSourceName" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="EventID">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:unsignedShort">
<xs:attribute name="Qualifiers"
type="xs:unsignedShort"
use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Version" type="xs:byte" minOccurs="0"/>
<xs:element name="Level" type="xs:byte" minOccurs="0"/>
<xs:element name="Task" type="xs:unsignedShort"
minOccurs="0"/>
<xs:element name="Opcode" type="xs:byte" minOccurs="0"/>
<xs:element name="Keywords" type="evt:HexInt64Type"
minOccurs="0"/>
<xs:element name="TimeCreated" minOccurs="0">
<xs:complexType>
<xs:attribute name="SystemTime" type="xs:dateTime" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="EventRecordID" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:unsignedLong"/>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Correlation" minOccurs="0">
<xs:complexType>
<xs:attribute name="ActivityID" type="evt:GUIDType" use="optional"/>
<xs:attribute name="RelatedActivityID"
type="evt:GUIDType"
use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="Execution" minOccurs="0">
<xs:complexType>
<xs:attribute name="ProcessID" type="xs:unsignedInt" use="required"/>
<xs:attribute name="ThreadID" type="xs:unsignedInt" use="required"/>
<xs:attribute name="ProcessorID" type="xs:byte" use="optional"/>
<xs:attribute name="SessionID" type="xs:unsignedInt" use="optional"/>
<xs:attribute name="KernelTime" type="xs:unsignedInt" use="optional"/>
<xs:attribute name="UserTime" type="xs:unsignedInt" use="optional"/>
<xs:attribute name="ProcessorTime" type="xs:unsignedInt" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="Channel" type="xs:anyURI" minOccurs="0"/>
<xs:element name="Computer" type="xs:string"/>
<xs:element name="Container" type="xs:string" minOccurs="0"/>
<xs:element name="Security" minOccurs="0">
<xs:complexType>
<xs:attribute name="UserID" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="EventDataType">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Data" type="evt:DataType"/>
<xs:element name="ComplexData" type="evt:ComplexDataType"/>
</xs:choice>
<xs:element name="Binary" type="xs:hexBinary" minOccurs="0">
<xs:annotation>
<xs:documentation>Classic eventlog binary data</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="UserDataType">
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="DebugDataType">
<xs:sequence>
<xs:element name="SequenceNumber" type="xs:unsignedInt" minOccurs="0"/>
<xs:element name="FlagsName" type="xs:string" minOccurs="0"/>
<xs:element name="LevelName" type="xs:string" minOccurs="0"/>
<xs:element name="Component" type="xs:string"/>
<xs:element name="SubComponent" type="xs:string" minOccurs="0"/>
<xs:element name="FileLine" type="xs:string" minOccurs="0"/>
<xs:element name="Function" type="xs:string" minOccurs="0"/>
<xs:element name="Message" type="xs:string"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="ProcessingErrorDataType">
<xs:sequence>
<xs:element name="ErrorCode" type="xs:unsignedInt"/>
<xs:element name="DataItemName" type="xs:string"/>
<xs:element name="EventPayload" type="xs:hexBinary"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="RenderingInfoType">
<xs:sequence>
<xs:element name="Message" type="xs:string" minOccurs="0"/>
<xs:element name="Level" type="xs:string" minOccurs="0"/>
<xs:element name="Opcode" type="xs:string" minOccurs="0"/>
<xs:element name="Task" type="xs:string" minOccurs="0"/>
<xs:element name="Channel" type="xs:string" minOccurs="0"/>
<xs:element name="Publisher" type="xs:string" minOccurs="0"/>
<xs:element name="Keywords" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Keyword" type="xs:string"
minOccurs="0"
maxOccurs="64"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Culture" type="xs:language" use="required"/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="EventType">
<xs:sequence>
<xs:element name="System" type="evt:SystemPropertiesType"/>
<xs:choice>
<xs:element name="EventData" type="evt:EventDataType" minOccurs="0">
<xs:annotation>
<xs:documentation>Generic event</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UserData" type="evt:UserDataType" minOccurs="0">
<xs:annotation>
<xs:documentation>Custom event</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DebugData" type="evt:DebugDataType" minOccurs="0">
<xs:annotation>
<xs:documentation>WPP debug event</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BinaryEventData" type="xs:hexBinary"
minOccurs="0">
<xs:annotation>
<xs:documentation>
Non schematized event
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProcessingErrorData" type="evt:ProcessingErrorDataType" minOccurs="0">
<xs:annotation>
<xs:documentation>Instrumentation event</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:element name="RenderingInfo"
type="evt:RenderingInfoType"
minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:element name="Event" type="evt:EventType"/>
</xs:schema>