-
Notifications
You must be signed in to change notification settings - Fork 2
Example Observer XML
cketcham edited this page Oct 3, 2012
·
2 revisions
Here is the observer xml which is used on the server. This observer has been added to dev.andwellness.org
. It can be added to other servers if needed by sending it as a parameter to observer/create
. More information can be found at https://github.com/cens/ohmageServer/wiki/Observer-Manipulation#wiki-observerCreation
<?xml version="1.0" encoding="UTF-8"?>
<observer>
<id>org.ohmage.blah.ExampleProbe</id>
<version>2012071200</version>
<name>ExampleProbe</name>
<description>An example probe to highlight the ohmageProbeLibrary.</description>
<versionString>1.0</versionString>
<stream>
<id>simple</id>
<version>2012071200</version>
<name>Just a string</name>
<description>This only records a string</description>
<schema>
{
"type":"object",
"namespace":"org.ohmage.ExampleProbeSimple",
"name":"simple",
"doc":"Only records a string.",
"schema":[
{
"name":"simple_text",
"doc":"Random text.",
"type":"string"
}
]
}
</schema>
</stream>
<stream>
<id>kittens</id>
<version>2012071200</version>
<name>Kittens</name>
<description>Where and when do we see kittens?</description>
<metadata>
<id />
<timestamp />
<location />
</metadata>
<schema>
{
"type":"object",
"namespace":"org.ohmage.ExampleProbeKittens",
"name":"kittens",
"doc":"Documents the number of kittens seen.",
"schema":[
{
"name":"count",
"doc":"The number of kittens seen.",
"type":"number"
}
]
}
</schema>
</stream>
<stream>
<id>list</id>
<version>2012071200</version>
<name>List</name>
<description>This is just a list.</description>
<metadata>
<id />
<timestamp />
<location />
</metadata>
<schema>
{
"type":"object",
"namespace":"org.ohmage.ExampleProbeList",
"name":"list",
"doc":"Just a list of strings",
"schema":[
{
"name":"items",
"doc":"The list of strings",
"type":"array",
"schema":{
"type":"string"
}
}
]
}
</schema>
</stream>
</observer>