-
Notifications
You must be signed in to change notification settings - Fork 6
/
event-logging.xsd
3729 lines (3721 loc) · 206 KB
/
event-logging.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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 - 2018 Crown Copyright
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<xs:schema xmlns:evt="event-logging:3" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="event-logging:3" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4.1.0" id="event-logging-v4.1.0">
<xs:annotation>
<xs:documentation>This schema describes the allowed element structure for event logging. Please refer to the documentation and examples for a description of how to use this schema in addition to the descriptions given for each element within this schema.</xs:documentation>
</xs:annotation>
<!-- Elements -->
<xs:element name="Events">
<xs:annotation>
<xs:documentation>The root element that contains multiple Event elements.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>The root element that contains multiple Event elements.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="SharingData" type="evt:AnyContentComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>This element contains data relating to the sharing of a set of events between different systems or organisations. The data contained within this element will confirm to a specification defined outside of this schema.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Event" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A single event that has occurred and been recorded.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>A single event that has occurred and been recorded.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Meta" type="evt:AnyContentComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>This element can be used to supply any metadata relating to the event as long as it conforms to an allowed format/specification (defined outside this XML Schema).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Classification" type="evt:ClassificationComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The classification for the event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SharingData" type="evt:AnyContentComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>This element contains data relating to the sharing of an event between different systems or organisations. The data contained within this element will confirm to a specification defined outside of this schema.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EventTime" minOccurs="1" maxOccurs="1" type="evt:EventTimeComplexType">
<xs:annotation>
<xs:documentation>This element contains information about the time the event was created.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EventSource" minOccurs="1" maxOccurs="1" type="evt:EventSourceComplexType">
<xs:annotation>
<xs:documentation>This element details where the event came from, i.e. what generator created the event and on what device.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EventDetail" minOccurs="1" maxOccurs="1" type="evt:EventDetailComplexType">
<xs:annotation>
<xs:documentation>This element describes the details of what happened in the event: the type of the event, why it happened and the event action.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EventChain" minOccurs="0" maxOccurs="1" type="evt:EventChainComplexType">
<xs:annotation>
<xs:documentation>This element can be used to create relationships between different events, i.e. where one event is the child of another.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit. Can also be used for appending data about the event after it has been received or processed, e.g. for recording details relating to the processing of the event such as the feed name.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Version" type="evt:VersionSimpleType" use="required">
<xs:annotation>
<xs:documentation>The version of the schema that this document conforms to.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<!-- Groups -->
<xs:group name="AdvancedQueryOperatorGroup">
<xs:choice>
<xs:element name="Term" type="evt:TermComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes a field to search and what to search for using name, condition and value, e.g. Title Contains 'Fox' or Title Equals 'The Quick Brown Fox'.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="And" type="evt:AndComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>All of the enclosed items are to be treated as being AND'd together.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Or" type="evt:OrComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>All of the enclosed items are to be treated as being OR'd together.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Not" type="evt:NotComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The enclosed structure operators and terms are negated.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:group>
<xs:group name="BaseObjectGroup">
<xs:sequence>
<xs:element name="Meta" type="evt:AnyContentComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>This element can be used to supply any metadata relating to an object as long as it conforms to an allowed format/specification (defined outside this XML Schema). This can be used for adding metadata to the event after receipt.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Type" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The type of the object in question and specific to the object type from the list above, e.g. a 'Resource' object may have a type such as 'image' or 'script'.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Id" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>An identifier for the object, e.g a document ID in a document management system. This ID is likely to be specific to the system that generated the event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Name" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The name of the object, e.g. a filename.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Human readable description of what the object is.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Classification" type="evt:ClassificationComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Any classification, protective marking or restrictions placed on the object, e.g. for commercially sensitive reports or user health records.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="State" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Any state information about the object, e.g. 'Archived'.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Groups" type="evt:GroupsComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Any groups associated with the object, e.g. group membership of a user account.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Permissions" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The collection of permissions associated with the object, e.g. write access being granted to a list of named users.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>The collection of permissions associated with the object, e.g. write access being granted to a list of named users.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Permission" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A permission rule associated with an object, e.g. read and write access being granted to a user.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>A permission rule associated with an object, e.g. read and write access being granted to a user.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:choice minOccurs="1" maxOccurs="1">
<xs:element name="User" type="evt:UserComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A user that has been granted (or is prevented from having) some form of permission.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Group" type="evt:GroupComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A named group of users that has been granted (or is prevented from having) some form of permission.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="Allow" type="evt:PermissionAttributeSimpleType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The permission attributes that have been explicitly allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Deny" type="evt:PermissionAttributeSimpleType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The permission attributes that have been explicitly denied.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Tags" minOccurs="0" maxOccurs="1" type="evt:MetaDataTagsComplexType">
<xs:annotation>
<xs:documentation>Metadata tags that can be used for additional object tagging or categorisation. Object tagging allows for the labelling (or filtering) of objects using words that label, categorise or group similar items, using a taxonomy defined outside this schema. For example, an email could be tagged with tags like 'internal', 'spam', 'external', 'rich-content', etc.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="CriteriaExtensionGroup">
<xs:sequence>
<xs:element name="DataSources" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>A collection of Datasource definitions that are referenced by the criteria/query</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>A collection of Datasource definitions that are referenced by the criteria/query</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="DataSource" type="xs:string" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The name or path of one or more datasources or datasets that are used by a criteria/query, e.g. 'EuroVoc XML distribution' or 'hdfs://mynamenode:8020/datasets/hr/grades.xml'</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Query" type="evt:QueryComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Structure used to describe the query associated with a search event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ResultPage" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Details of the page (or sub-set) of results actually displayed/returned to the user, if known at query time.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>Details of the page (or sub-set) of results actually displayed/returned to the user, if known at query time.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="TotalPages" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The number of pages/sets that make up the complete result set.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PerPage" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The maximum number of results that will be displayed per page. E.g. 10 results per page.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PageNumber" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The number of the page/set of results displayed/returned to the user, e.g. 3 out of 24 pages.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="From" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The index of the first result in the page out of the full result set (inclusive), e.g. 11 (in the case of showing results 11-20 of 453)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="To" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The index of the last result in the page out of the full result set (inclusive), e.g. 20 (in the case of showing results 11-20 of 453)</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TotalResults" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The total number of results returned by the query, if known at query time. In situations where only a sub-set of results are displayed/returned to the user then this element represents the count of ALL results and ResultPage should be used to provide details of which results are actually viewed/returned by the user.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Results" type="evt:MultiObjectComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the results returned by the search if they are known at the time of the Search event (a synchronous search). If the results are not know at execution time (an asynchronous search) and will be viewed as part of a separate event then View/SearchResults can be used to model that event.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="MultiObjectGroup">
<xs:choice>
<xs:element name="Association" type="evt:AssociationComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the association or link between two or more entities, e.g. the link between two web resources.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Banner" type="evt:BannerComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes a banner or message presented to a user, e.g. an acceptable use policy message shown on system login.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Chat" type="evt:ChatComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes part of a chat session between a user and one or more other users, e.g. in an instant messaging application.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Configuration" type="evt:ConfigurationComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the configuration of entity, e.g. it can be used to describe the update to the configuration of a network device.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Criteria" type="evt:CriteriaComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Structure used to describe a criteria used to filter or limit the scope of something, e.g. in a search, view, update or delete event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Document" type="evt:DocumentComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes a document that may be stored electronically or in hard-copy form.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Email" type="evt:EmailComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes an email sent from one user to one or more recipients.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="File" type="evt:FileComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A file object, e.g. a text file on file system</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Folder" type="evt:FolderComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A folder object, e.g. a directory or folder on file system.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Group" type="evt:GroupComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A group entity, e.g. a user group, an access control group or a named group of some kind that ties together a collection of entities/objects of some kind.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="GroupChat" type="evt:GroupChatComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the details of a chat event within a chat room or group.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Object" type="evt:ObjectComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A generic object or entity that cannot be described using any of the other more specific object types.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SearchResults" type="evt:SearchResultsComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A set of search results from a query where the results are viewed or interacted with in a separate event to the execution of the query. E.g. for long-running queries where the results are stored for later viewing/processing. The Search schema action should be used to describe the event for the execution of the search. Query/Id or Query/Name can be used to associate the results event with the query event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Shortcut" type="evt:ShortcutComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A shortcut to another file/object, such as a Windows Shortcut or linux symbolic link.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="User" type="evt:UserComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>A user entity which may represent a person or some form of non-human processing user.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VirtualSession" type="evt:VirtualSessionComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>This is used to describe the session used when viewing another user's session, e.g. screen sharing or remote assistance type activities.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VOIP" type="evt:VOIPComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes a Voice Over Internet Protocol call.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Resource" type="evt:ResourceComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>This is used to describe a resource within a website or web application, such as an HTML file, image file or script, along with the details of that resource such as size or response codes. It can represent both successful and failed access to the resource object.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:group>
<xs:group name="InstallationGroup">
<xs:sequence>
<xs:choice minOccurs="1" maxOccurs="1">
<xs:element name="Software" type="evt:SoftwareComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Description of the software that was installed/uninstalled.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Hardware" type="evt:HardwareComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Description of the hardware that was installed/uninstalled.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Media" type="evt:MediaComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Description of the media that was installed/uninstalled.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="Outcome" type="evt:OutcomeComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The outcome of the (un)installation.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="SendReceiveGroup">
<xs:sequence>
<xs:element name="Source" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The initiator(s) of the object or resource sent or received. An initiator can be a user and/or device.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>The initiator(s) of the object or resource sent or received. An initiator can be a user and/or device.</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="User" type="evt:UserComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The user that sent the payload.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Device" type="evt:DeviceComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The device that sent the payload.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="Destination" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The destination(s) of the object or resource sent or received. A destination can be a user and/or device.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>The destination(s) of the object or resource sent or received. A destination can be a user and/or device.</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="User" type="evt:UserComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The user that the payload is being sent to</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Device" type="evt:DeviceComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The device that the payload is being sent to</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="Payload" type="evt:MultiObjectComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>If the network action is related to message transfer from one place to another then this element describes the message.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Outcome" type="evt:OutcomeComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Used to determine if the action was successful. If omitted it is assumed that the event was successful and was permitted.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<!-- Complex Types -->
<xs:complexType name="AccessControlGroupsComplexType">
<xs:annotation>
<xs:documentation>Describes a set of groups used to control access to protectively marked items.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="AccessControlGroup" type="xs:string" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The name of an access control group that is used to control access to protectively marked items. E.g. 'HR', 'Auditors', 'Management', etc.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ActivityComplexType">
<xs:annotation>
<xs:documentation>Type that describes relationships between different events. For example in an asynchronous search the viewing of the results of the search may be a separate event from the execution of the query. In this instance the view event would be a child of the execution event.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Id" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The unique identifier of the event that is being referenced. This will be the value of Event/EventSource/EventId on the referenced event. E.g. where an event with Event/EventSource/EventId=101 is a child of an event with Event/EventSource/EventId=99, the value in this element would be 99.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Name" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>A descriptive name for the referenced event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Parent" type="evt:ActivityComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The details of the event that is the parent of this referenced event. E.g. if event C is a child of event B which is a child of event A, this element would record an Id of A.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AlertComplexType">
<xs:annotation>
<xs:documentation>Type that describes and alert of some kind, e.g. an alert generated by an intrusion detection system, malware scanner, virus scanner, etc.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Type" type="evt:AlertTypeSimpleType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The type of alert that has been fired, e.g. Error, Malware, etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Severity" type="evt:AlertSeveritySimpleType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The severity of the alert.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Priority" type="evt:AlertPrioritySimpleType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The priority of the alert.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Subject" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The name of the event or rule that fired or vulnerability or malware that has been scanned for or found.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The descriptive message for the alert.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="IDS" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Information about an IDS generated event.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>Information about an IDS generated event.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Rule" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The type of IDS event or rule that fired.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Source" type="evt:NetworkLocationComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The source network device involved in the IDS event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Destination" type="evt:NetworkLocationComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The destination network device involved in the IDS event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Payload" type="evt:MultiObjectComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Details about the payload being transmitted between the source and destination devices.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Malware" type="evt:AntiMalwareThreatComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Type that describes a threat identified by an anti-malware scanner.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Network" type="evt:NetworkComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>A type to describe part of a computer network or some activity on a network.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Change" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Any events to do with monitoring the status of files should use this element.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>Information about an IDS generated event.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Action" type="evt:ChangeActionSimpleType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The action performed by the file monitor, e.g. starting to scan files for changes, or the detection of a file change.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Before" type="evt:MultiObjectComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the last known state of the file before it was altered.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="After" type="evt:MultiObjectComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the new state of the file now it has changed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Rule" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The file monitoring rule that was fired to generate this event.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AndComplexType">
<xs:annotation>
<xs:documentation>All of the enclosed items are to be treated as being AND together.</xs:documentation>
</xs:annotation>
<xs:group ref="evt:AdvancedQueryOperatorGroup" minOccurs="0" maxOccurs="unbounded"/>
</xs:complexType>
<xs:complexType name="AntiMalwareThreatComplexType">
<xs:annotation>
<xs:documentation>Type that describes a threat identified by an anti-malware scanner.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Product" type="evt:SoftwareComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the anti-malware product used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Signature" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the anti-malware signature used.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>Describes the anti-malware signature used.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Version" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The version of the signature.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Updated" type="evt:DateTimeSimpleType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>When the signature was last updated.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Threat" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the threat if one has been found.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>Describes the threat if one has been found.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Category" type="evt:ThreatCategorySimpleType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The category of the threat, e.g. Worm, Virus, etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Name" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The name of the threat, e.g. a virus name.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Infected" type="evt:MultiObjectComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Describes the infected item if one has been found.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit. Can also be used for appending data about the event after it has been received or processed, e.g. for recording details relating to the processing of the event such as the feed name.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AnyContentComplexType" mixed="true">
<xs:annotation>
<xs:documentation>This type is used to contain any content conforming to an agreed format/specification that is defined outside this XML Schema.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:any minOccurs="0" processContents="lax"/>
</xs:sequence>
<xs:attribute name="ContentType" type="xs:string">
<xs:annotation>
<xs:documentation>String to describe the format type and specification of the content, e.g. JSON or XML. The valid values are defined outside this XML Schema.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Version" type="xs:string">
<xs:annotation>
<xs:documentation>Defines the version of data structure specification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Id" type="xs:string">
<xs:annotation>
<xs:documentation>An identifier, name or key to distinguish this block of content from others in the document. It can either be globally unqiue, unique within the document or unique within its siblings.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="ApprovalComplexType">
<xs:annotation>
<xs:documentation>This type describes an approval (or rejection) event in a workflow, e.g a workflow where a more privileged user is required to approve the work of another user.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Action" type="evt:ApprovalActionSimpleType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The action that the approval event is capturing, e.g. Approve, Reject, etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Id" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>An identifier associated with the approval step/process.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Subject" type="evt:MultiObjectComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The object that this approval step (or request for approval) relates to, e.g. the document being approved.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Requestors" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The user(s) that requested the approval, e.g. jbloggs requesting approval from a manager for his finance report.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>The user(s) that requested the approval, e.g. jbloggs requesting approval from a manager for his finance report.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Requestor" type="evt:UserComplexType" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A user that requested the approval, e.g. jbloggs requesting approval from a manager for his finance report.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Approvers" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The user(s) that are providing the approval, e.g. a user requesting approval from manager fsmith for his finance report.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>The user(s) that are providing the approval, e.g. a user requesting approval from manager fsmith for his finance report.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Approver" type="evt:UserComplexType" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The user that is providing the approval, e.g. a user requesting approval from manager fsmith for his finance report.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Reason" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The reason for the approval/rejection/request, e.g. why the approval was rejected.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Outcome" type="evt:OutcomeComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Used to determine if the action was successful. If omitted it is assumed that the event was successful and was permitted.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AssociationComplexType">
<xs:annotation>
<xs:documentation>This type describes the association or linking of a number of objects. For example, it may describe the link between two web resources.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="evt:BaseObjectComplexType">
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Objects" type="evt:MultiObjectComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The objects that have some form of link or association</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AuthenticateComplexType">
<xs:annotation>
<xs:documentation>Used to record authentication events such as logon and logoff. All authentication events that originate from a client device should record details of the client device in the event source.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Action" type="evt:AuthenticateActionSimpleType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The authentication action that was performed, e.g. Logon, Logoff.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LogonType" type="evt:AuthenticateLogonTypeSimpleType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>This indicates the type of logon. For example, Microsoft Windows has several logon types such as Interactive (logon to domain), RemoteInteractive (logon to remote machine), CachedInteractive (logon to local machine using cached domain information due to loss of network).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="1" maxOccurs="1">
<xs:element name="User" type="evt:UserComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The user who the authentication action relates to.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Device" type="evt:DeviceComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Where a device authenticates with another device, this is the device that initiates the authentication action.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Group" type="evt:GroupComplexType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The group the authentication action relates to.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="Outcome" type="evt:AuthenticateOutcomeComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Used to determine if the action was successful. If omitted it is assumed that the event was successful and was permitted.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AuthenticateOutcomeComplexType">
<xs:annotation>
<xs:documentation>Used to describe the outcome of an authentication event, including the reason for any failure.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="evt:BaseOutcomeComplexType">
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Reason" type="evt:AuthenticateOutcomeReasonSimpleType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>An enumeration used to describe the reason why authentication failed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AuthoriseComplexType">
<xs:annotation>
<xs:documentation>Describes event actions related to account management such as adding and removing user and system accounts. It can also describe event actions related to the request for authorisation, e.g. when a user is checked against a set of permissions for the data/entities they are trying to access.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:group ref="evt:MultiObjectGroup" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Action" type="evt:AuthorisationSimpleType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The type of the event action, e.g. a modification to authorisation rules/groups or the request to be authorised.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AddGroups" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>A list of roles or permissions that have been added to an object.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>A list of roles or permissions that have been added to an object.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Group" type="evt:GroupComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A role or permission that has been added to an object.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RemoveGroups" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>A list of roles or permissions that have been removed from an object.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:annotation>
<xs:documentation>A list of roles or permissions that have been removed from an object.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Group" type="evt:GroupComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A role or permission that has been removed from an object.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Outcome" type="evt:OutcomeComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Used to determine if the action was successful. If omitted it is assumed that the event was successful and was permitted.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BannerComplexType">
<xs:annotation>
<xs:documentation>Structure used to describe a banner presented to a user. Typically, it displays legal information relating to the system.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="evt:BaseObjectComplexType">
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Version" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>If the text of the banner is versioned then this records the version of the banner that is displayed to the user.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Message" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The message text displayed on the banner.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Data" type="evt:DataComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Any other event data that does not fit into a schema element but may be useful for the purpose of audit.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="BaseChatComplexType" abstract="true">
<xs:annotation>
<xs:documentation>Describes the details of a chat event, e.g. an instance message chat message from one user to another.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="evt:BaseObjectComplexType">
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="SessionId" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The ID for the chat session.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Room" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The name of the chat room or group.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="From" type="evt:UserComplexType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The user that initiated the chat event.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="To" type="evt:UserComplexType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The user(s) that the chat event (or message) is directed at.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Content" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The chat message or content sent by the user.</xs:documentation>
</xs:annotation>
</xs:element>