XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://xmlns.opennms.org/xsd/eventconf
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations have no namespace.
  • By default, local attribute declarations have no namespace.
Documentation XML Schema for the eventconf.xml configuration file. This schema is also used for files that are included in eventconf.xml by the "event-file" element. Version: $Id: eventconf.xsd,v 1.9 2005/07/03 02:54:11 djgregor Exp $.

Declared Namespaces

Prefix Namespace
Default namespace http://www.w3.org/2001/XMLSchema
xml http://www.w3.org/XML/1998/namespace
xsi http://www.w3.org/2001/XMLSchema-instance
this http://xmlns.opennms.org/xsd/eventconf
ns2 http://www.w3.org/1999/xhtml
ns http://www.w3.org/2001/XMLSchema
hfp http://www.w3.org/2001/XMLSchema-hasFacetAndProperty
Schema Component Representation
<schema targetNamespace="http://xmlns.opennms.org/xsd/eventconf">
...
</schema>
top

Global Declarations

Element: alarm-data

Name alarm-data
Type Locally-defined complex type
Nillable no
Abstract no
Documentation This element is used for converting events into alarms.
XML Instance Representation
<this:alarm-data
reduction-key="string [1]"
alarm-type=" int (value >= 1) [1]"
clear-uei="string [0..1]"
clear-key="string [0..1]"
auto-clean="boolean [0..1]"
x733-alarm-type=" this:x733-alarm-type [0..1]"
x733-probable-cause="int [0..1]"/>
Schema Component Representation
<element name="alarm-data">
<complexType>
<attribute name="reduction-key" type=" string " use="required"/>
<attribute name="alarm-type" use="required">
<simpleType>
<restriction base=" int ">
<minInclusive value="1"/>
</restriction>
</simpleType>
</attribute>
<attribute name="clear-uei" type=" string " use="optional"/>
<attribute name="clear-key" type=" string " use="optional"/>
<attribute name="auto-clean" type=" boolean " use="optional" default="false"/>
<attribute name="x733-alarm-type" type=" this:x733-alarm-type " use="optional"/>
<attribute name="x733-probable-cause" type=" int " use="optional"/>
</complexType>
</element>
top

Element: autoacknowledge

Name autoacknowledge
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The autoacknowledge information for the user with state controlling if event is marked acknoledged when inserted into the database
XML Instance Representation
<this:autoacknowledge
state=" string (pattern = (on|off)) [0..1]">
string
</this:autoacknowledge>
Schema Component Representation
<element name="autoacknowledge">
<complexType>
<simpleContent>
<extension base=" string ">
<attribute name="state" default="on" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(on|off)"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
top

Element: autoaction

Name autoaction
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The automatic action to occur when this event occurs with state controlling if action takes place
XML Instance Representation
<this:autoaction
state=" string (pattern = (on|off)) [0..1]">
string
</this:autoaction>
Schema Component Representation
<element name="autoaction">
<complexType>
<simpleContent>
<extension base=" string ">
<attribute name="state" default="on" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(on|off)"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
top

Element: correlation

Name correlation
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The event correlation information
XML Instance Representation
<this:correlation
state=" string (pattern = (on|off)) [0..1] ?"
path=" string (pattern = (suppressDuplicates|cancellingEvent|suppressAndCancel|pathOutage)) [0..1] ?">
<cuei> string </cuei> [0..*] ?
<cmin> string </cmin> [0..1] ?
<cmax> string </cmax> [0..1] ?
<ctime> string </ctime> [0..1] ?
</this:correlation>
Schema Component Representation
<element name="correlation">
<complexType>
<sequence>
<element name="cuei" type=" string " maxOccurs="unbounded" minOccurs="0"/>
<element name="cmin" type=" string " maxOccurs="1" minOccurs="0"/>
<element name="cmax" type=" string " maxOccurs="1" minOccurs="0"/>
<element name="ctime" type=" string " maxOccurs="1" minOccurs="0"/>
</sequence>
<attribute name="state" default="off" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(on|off)"/>
</restriction>
</simpleType>
</attribute>
<attribute name="path" default="suppressDuplicates" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(suppressDuplicates|cancellingEvent|suppressAndCancel|pathOutage)"/>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
top

Element: decode

Name decode
Type Locally-defined complex type
Nillable no
Abstract no
Documentation This element is used for converting event varbind value in static decoded string.
XML Instance Representation
<this:decode
varbindvalue="string [1]"
varbinddecodedstring="string [1]"/>
Schema Component Representation
<element name="decode">
<complexType>
<attribute name="varbindvalue" type=" string " use="required"/>
<attribute name="varbinddecodedstring" type=" string " use="required"/>
</complexType>
</element>
top

Element: event

Name event
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:event>
<this:mask> ... </this:mask> [0..1] ?
<uei> string </uei> [1] ?
<event-label> string </event-label> [1] ?
<this:snmp> ... </this:snmp> [0..1] ?
<descr> string </descr> [1] ?
<this:logmsg> ... </this:logmsg> [1] ?
<severity> string </severity> [1] ?
<this:correlation> ... </this:correlation> [0..1] ?
<operinstruct> string </operinstruct> [0..1] ?
<this:autoaction> ... </this:autoaction> [0..*] ?
<this:varbindsdecode> ... </this:varbindsdecode> [0..*] ?
<this:operaction> ... </this:operaction> [0..*] ?
<this:autoacknowledge> ... </this:autoacknowledge> [0..1] ?
<loggroup> string </loggroup> [0..*] ?
<this:tticket> ... </this:tticket> [0..1] ?
<this:forward> ... </this:forward> [0..*] ?
<this:script> ... </this:script> [0..*] ?
<mouseovertext> string </mouseovertext> [0..1] ?
<this:alarm-data> ... </this:alarm-data> [0..1] ?
</this:event>
Schema Component Representation
<element name="event">
<complexType>
<sequence>
<element ref=" this:mask " maxOccurs="1" minOccurs="0"/>
<element name="uei" type=" string " maxOccurs="1" minOccurs="1"/>
<element name="event-label" type=" string " maxOccurs="1" minOccurs="1"/>
<element ref=" this:snmp " maxOccurs="1" minOccurs="0"/>
<element name="descr" type=" string " maxOccurs="1" minOccurs="1"/>
<element ref=" this:logmsg " maxOccurs="1" minOccurs="1"/>
<element name="severity" type=" string " maxOccurs="1" minOccurs="1"/>
<element ref=" this:correlation " maxOccurs="1" minOccurs="0"/>
<element name="operinstruct" type=" string " maxOccurs="1" minOccurs="0"/>
<element ref=" this:autoaction " maxOccurs="unbounded" minOccurs="0"/>
<element ref=" this:varbindsdecode " maxOccurs="unbounded" minOccurs="0"/>
<element ref=" this:operaction " maxOccurs="unbounded" minOccurs="0"/>
<element ref=" this:autoacknowledge " maxOccurs="1" minOccurs="0"/>
<element name="loggroup" type=" string " maxOccurs="unbounded" minOccurs="0"/>
<element ref=" this:tticket " maxOccurs="1" minOccurs="0"/>
<element ref=" this:forward " maxOccurs="unbounded" minOccurs="0"/>
<element ref=" this:script " maxOccurs="unbounded" minOccurs="0"/>
<element name="mouseovertext" type=" string " maxOccurs="1" minOccurs="0"/>
<element ref=" this:alarm-data " minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: events

Name events
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:events>
<this:global> ... </this:global> [0..1]
<this:event> ... </this:event> [1..*]
<event-file> string </event-file> [0..*]
</this:events>
Schema Component Representation
<element name="events">
<complexType>
<sequence>
<element ref=" this:global " maxOccurs="1" minOccurs="0"/>
<element ref=" this:event " maxOccurs="unbounded" minOccurs="1"/>
<element name="event-file" type=" string " maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</complexType>
</element>
top

Element: forward

Name forward
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The forwarding information for this event - state determines if event is forwarded, mechanism determines how event is forwarded
XML Instance Representation
<this:forward
state=" string (pattern = (on|off)) [0..1]"
mechanism=" string (pattern = (snmpudp|snmptcp|xmltcp|xmludp)) [0..1]">
string
</this:forward>
Schema Component Representation
<element name="forward">
<complexType>
<simpleContent>
<extension base=" string ">
<attribute name="state" default="off" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(on|off)"/>
</restriction>
</simpleType>
</attribute>
<attribute name="mechanism" default="snmpudp" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(snmpudp|snmptcp|xmltcp|xmludp)"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
top

Element: global

Name global
Type Locally-defined complex type
Nillable no
Abstract no
Documentation Global settings for this configuration
XML Instance Representation
<this:global>
<this:security> ... </this:security> [1]
</this:global>
Schema Component Representation
<element name="global">
<complexType>
<sequence>
<element ref=" this:security " maxOccurs="1" minOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: logmsg

Name logmsg
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The event logmsg with the destination attribute defining if event is for display only, logonly, log and display or neither. A destination attribute of 'donotpersist' indicates that Eventd is not to persist the event to the database. A value of 'discardtraps' instructs the SNMP trap daemon to not create events for incoming traps that match this event. The optional notify attributed can be used to suppress notices on a particular event (by default it is true - i.e. a notice will be sent.
XML Instance Representation
<this:logmsg
notify="boolean [0..1]"
dest=" string (pattern = (logndisplay|displayonly|logonly|suppress|donotpersist|discardtraps)) [0..1]">
string
</this:logmsg>
Schema Component Representation
<element name="logmsg">
<complexType>
<simpleContent>
<extension base=" string ">
<attribute name="notify" type=" boolean " use="optional" default="true"/>
<attribute name="dest" default="logndisplay" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(logndisplay|displayonly|logonly|suppress|donotpersist|discardtraps)"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
top

Element: mask

Name mask
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The Mask for event configuration: The mask contains one or more 'maskelements' which uniquely identify an event. XXX need to add information about varbind
XML Instance Representation
<this:mask>
<this:maskelement> ... </this:maskelement> [1..*]
<this:varbind> ... </this:varbind> [0..*]
</this:mask>
Schema Component Representation
<element name="mask">
<complexType>
<sequence>
<element ref=" this:maskelement " maxOccurs="unbounded" minOccurs="1"/>
<element ref=" this:varbind " maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</complexType>
</element>
top

Element: maskelement

Name maskelement
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The mask element
XML Instance Representation
<this:maskelement>
<mename> string </mename> [1] ?
<mevalue> string </mevalue> [1..*] ?
</this:maskelement>
Schema Component Representation
<element name="maskelement">
<complexType>
<sequence>
<element name="mename" type=" string " maxOccurs="1" minOccurs="1"/>
<element name="mevalue" type=" string " maxOccurs="unbounded" minOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: operaction

Name operaction
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The operator action to be taken when this event occurs with state controlling if action takes place. The menutext gets displayed in the UI.
XML Instance Representation
<this:operaction
state=" string (pattern = (on|off)) [0..1]"
menutext="string [1]">
string
</this:operaction>
Schema Component Representation
<element name="operaction">
<complexType>
<simpleContent>
<extension base=" string ">
<attribute name="state" default="on" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(on|off)"/>
</restriction>
</simpleType>
</attribute>
<attribute name="menutext" type=" string " use="required"/>
</extension>
</simpleContent>
</complexType>
</element>
top

Element: script

Name script
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The script information for this event - describes a script to be executed whenever the event occurs
XML Instance Representation
<this:script
language="string [1]">
string
</this:script>
Schema Component Representation
<element name="script">
<complexType>
<simpleContent>
<extension base=" string ">
<attribute name="language" type=" string " use="required"/>
</extension>
</simpleContent>
</complexType>
</element>
top

Element: security

Name security
Type Locally-defined complex type
Nillable no
Abstract no
Documentation Security settings for this configuration
XML Instance Representation
<this:security>
<doNotOverride> string </doNotOverride> [1..*] ?
</this:security>
Schema Component Representation
<element name="security">
<complexType>
<sequence>
<element name="doNotOverride" type=" string " maxOccurs="unbounded" minOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: snmp

Name snmp
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The snmp information from the trap
XML Instance Representation
<this:snmp>
<id> string </id> [1] ?
<idtext> string </idtext> [0..1] ?
<version> string </version> [1] ?
<specific> int </specific> [0..1] ?
<generic> int </generic> [0..1] ?
<community> string </community> [0..1] ?
</this:snmp>
Schema Component Representation
<element name="snmp">
<complexType>
<sequence>
<element name="id" type=" string " maxOccurs="1" minOccurs="1"/>
<element name="idtext" type=" string " maxOccurs="1" minOccurs="0"/>
<element name="version" type=" string " maxOccurs="1" minOccurs="1"/>
<element name="specific" type=" int " maxOccurs="1" minOccurs="0"/>
<element name="generic" type=" int " maxOccurs="1" minOccurs="0"/>
<element name="community" type=" string " maxOccurs="1" minOccurs="0"/>
</sequence>
</complexType>
</element>
top

Element: tticket

Name tticket
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The trouble ticket info with state on/off determining if action is taken on the trouble ticket
XML Instance Representation
<this:tticket
state=" string (pattern = (on|off)) [0..1]">
string
</this:tticket>
Schema Component Representation
<element name="tticket">
<complexType>
<simpleContent>
<extension base=" string ">
<attribute name="state" default="on" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(on|off)"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
top

Element: varbind

Name varbind
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The varbind element
XML Instance Representation
<this:varbind
textual-convention=" this:rfc1903-snmp-tc [0..1]">
<vbnumber> int </vbnumber> [1] ?
<vbvalue> string </vbvalue> [1..*] ?
</this:varbind>
Schema Component Representation
<element name="varbind">
<complexType>
<sequence>
<element name="vbnumber" type=" int " maxOccurs="1" minOccurs="1"/>
<element name="vbvalue" type=" string " maxOccurs="unbounded" minOccurs="1"/>
</sequence>
<attribute name="textual-convention" type=" this:rfc1903-snmp-tc " use="optional"/>
</complexType>
</element>
top

Element: varbindsdecode

Name varbindsdecode
Type Locally-defined complex type
Nillable no
Abstract no
Documentation This element is used for converting event varbind value in static decoded string.
XML Instance Representation
<this:varbindsdecode>
<parmid> string </parmid> [1] ?
<this:decode> ... </this:decode> [1..*] ?
</this:varbindsdecode>
Schema Component Representation
<element name="varbindsdecode">
<complexType>
<sequence>
<element name="parmid" type=" string " maxOccurs="1" minOccurs="1"/>
<element ref=" this:decode " maxOccurs="unbounded" minOccurs="1"/>
</sequence>
</complexType>
</element>
top

Global Definitions

Simple Type: rfc1903-snmp-tc

Super-types: string < rfc1903-snmp-tc (by restriction)
Sub-types: None
Name rfc1903-snmp-tc
Content
  • Base XSD Type: string
  • pattern = PhysAddress|MacAddress|TruthValue|TestAndIncr|AutonomousType|InstancePointer|VariablePointer|RowPointer|RowStatus|TimeStamp|TimeInterval|DateAndTime|StorageType|TDomain|TAddress
Schema Component Representation
<simpleType name="rfc1903-snmp-tc">
<restriction base=" string ">
<pattern value="PhysAddress|MacAddress|TruthValue|TestAndIncr|AutonomousType|InstancePointer|VariablePointer|RowPointer|RowStatus|TimeStamp|TimeInterval|DateAndTime|StorageType|TDomain|TAddress"/>
</restriction>
</simpleType>
top

Simple Type: x733-alarm-type

Super-types: string < x733-alarm-type (by restriction)
Sub-types: None
Name x733-alarm-type
Content
  • Base XSD Type: string
  • pattern = CommunicationsAlarm|ProcessingErrorAlarm|EnvironmentalAlarm|QualityOfServiceAlarm|EquipmentAlarm|IntegrityViolation|SecurityViolation|TimeDomainViolation|OperationalViolation|PhysicalViolation
Schema Component Representation
<simpleType name="x733-alarm-type">
<restriction base=" string ">
<pattern value="CommunicationsAlarm|ProcessingErrorAlarm|EnvironmentalAlarm|QualityOfServiceAlarm|EquipmentAlarm|IntegrityViolation|SecurityViolation|TimeDomainViolation|OperationalViolation|PhysicalViolation"/>
</restriction>
</simpleType>
top

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia" >
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice [1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1] ?
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

Schema Component Representation
<complexType name="AusAddress">
<complexContent>
<extension base=" Address ">
<sequence>
<element name="state" type=" AusStates "/>
<element name="postcode">
<simpleType>
<restriction base=" string ">
<pattern value="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attribute name="country" type=" string " fixed="Australia"/>
</extension>
</complexContent>
</complexType>
The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)
top

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

top