Example: Event creation
This example creates an event and sets various properties.
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:crtv="http://open-services.net/ns/crtv#"
xmlns:oslcem="http://jazz.net/ns/ism/event/omnibus#"
xmlns:oslcemp="http://jazz.net/ns/ism/event/omnibus/itnm#"
xmlns:oslcemb="http://jazz.net/ns/ism/event/omnibus/tbsm#"
xmlns:oslcemm="http://jazz.net/ns/ism/event/omnibus/misc#">
<rdf:Description rdf:about="http://localhost/">
<rdf:type rdf:resource="http://jazz.net/ns/ism/event/omnibus#Event"/>
<dcterms:identifier>JUnitEventTestInstance@@@@0</dcterms:identifier>
<dcterms:created>2012-05-18T13:46:54</dcterms:created>
<oslcem:ownerUID rdf:resource="http://localhost/objectserver/oslc/user/501"/>
<oslcem:severity>4</oslcem:severity>
<oslcem:summary>This is a test event generated by the JUnit OSLC Event Tests. (0)</oslcem:summary>
<oslcem:node>localhost</oslcem:node>
<oslcem:agent>createEventNew()</oslcem:agent>
<oslcem:lastOccurrence>2012-05-18T13:46:54</oslcem:lastOccurrence>
<oslcem:acknowledged>false</oslcem:acknowledged>
<oslcem:alertKey>JUnitEventInstance</oslcem:alertKey>
<oslcem:manager>com.ibm.netcool.omnibus.ws.junit.rest.oslc.v1.utils.ResourceEvent</oslcem:manager>
<oslcem:type>1</oslcem:type>
<oslcem:ownerGID rdf:resource="http://localhost/objectserver/oslc/group/0"/>
<oslcemm:location>NOT UPDATED</oslcemm:location>
<oslcemm:url rdf:resource="http://localhost/objectserver/restapi/v1/alerts/status"/>
</rdf:Description>
</rdf:RDF>