Contextual data
Register, list, detail and unregister contextual data sources
Overview
Contextual data is often used within stream processing to drive complex logic paths. Joule Management API provides the ability to register, list, detail and undeploy contextual data.
For further information on the structure of the content payload refer to this documentation.
Example contextual data content
{
"contextual data": {
"name": "banking market data",
"data sources": [
{
"geode stores": {
"name": "us markets",
"connection": {
"locator address": "192.168.86.39",
"locator port": 41111
},
"stores": {
"nasdaqIndexCompanies": {
"region": "nasdaq-companies",
"keyClass": "java.lang.String",
"gii": true
},
"holidays": {
"region": "us-holidays",
"keyClass": "java.lang.Integer"
}
}
}
}
]
}
}
Deploy a single contextual data store. A json specification is provided within the body as a raw data type.If the registration process has succeed a response code of 201 is returned otherwise 500.
POST /joule/management/contextualdata/deploy HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"name": "text",
"enabled": true,
"stores": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
No content
Deploy multiple contextual data stores. A json specification is provided within the body as a raw data type.If the registration process has succeed a response code of 201 is returned otherwise 500.
POST /joule/management/contextualdata/deploy/multi HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"dataStoreSpecifications": [
{
"name": "text",
"enabled": true,
"stores": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
],
"name": "text",
"enabled": true
}
No content
Data store logical name.
DELETE /joule/management/contextualdata/undeploy HTTP/1.1
Host:
Accept: */*
No content
Last updated
Was this helpful?