Configuration Schema
The JSON configuration provided to the Queue Connector Device via Configuration Database, Property or Command Parameter must conform to the schema outlined by QueueConnectorDescriptor.
Note
Whilst it is valid to configure with no exchanges, doing so will keep the device in the STANDBY state. This behaviour may change in future.
Schema
QueueConnectorDescriptor
Primary JSON serializable descriptor for configuring a queue connector device. Note: exchanges as dictionary of groups is experimental and not fully supported via configuration database.
type |
object |
|||
properties |
||||
|
Exchanges |
|||
default |
null |
|||
anyOf |
type |
object |
||
additionalProperties |
type |
array |
||
items |
||||
type |
array |
|||
items |
||||
type |
null |
|||
additionalProperties |
False |
BufferWithTimePipeDescriptor
type |
object |
|
properties |
||
|
Type |
|
default |
BufferWithTimePipe |
|
const |
BufferWithTimePipe |
|
|
Timespan |
|
type |
number |
|
default |
0 |
|
additionalProperties |
False |
DefaultPipeDescriptor
type |
object |
|
properties |
||
|
Type |
|
default |
DefaultPipe |
|
const |
DefaultPipe |
|
additionalProperties |
False |
ExchangeDescriptor
Descriptor for instantiating an exchange.
type |
object |
|||
properties |
||||
|
Dtype |
|||
default |
str |
|||
anyOf |
type |
string |
||
type |
array |
|||
items |
type |
array |
||
items |
||||
maxItems |
3 |
|||
minItems |
2 |
|||
|
Shape |
|||
type |
array |
|||
default |
||||
items |
||||
|
Source |
|||
anyOf |
oneOf |
|||
type |
array |
|||
items |
oneOf |
|||
|
Sink |
|||
oneOf |
||||
|
Pipe |
|||
default |
type |
DefaultPipe |
||
oneOf |
||||
additionalProperties |
False |
InMemorySinkDescriptor
Descriptor for instantiating an InMemorySink
type |
object |
|
properties |
||
|
Type |
|
default |
InMemorySink |
|
const |
InMemorySink |
|
|
Key |
|
type |
string |
|
additionalProperties |
False |
InMemorySourceDescriptor
Descriptor for instantiating an InMemorySource
type |
object |
|||
properties |
||||
|
Type |
|||
default |
InMemorySource |
|||
const |
InMemorySource |
|||
|
Data |
|||
type |
array |
|||
items |
anyOf |
type |
array |
|
maxItems |
2 |
|||
minItems |
2 |
|||
type |
array |
|||
items |
||||
type |
object |
|||
type |
integer |
|||
type |
number |
|||
type |
boolean |
|||
type |
string |
|||
|
Delay |
|||
type |
number |
|||
default |
0 |
|||
additionalProperties |
False |
KafkaConsumerSourceDescriptor
type |
object |
|||
properties |
||||
|
Type |
|||
default |
KafkaConsumerSource |
|||
const |
KafkaConsumerSource |
|||
|
Servers |
|||
anyOf |
type |
string |
||
type |
array |
|||
items |
type |
string |
||
|
Topic |
|||
type |
string |
|||
|
Encoding |
|||
type |
string |
|||
enum |
utf-8, ascii, python, json, msgpack_numpy, npy, carray |
|||
default |
python |
|||
additionalProperties |
False |
KafkaProducerSinkDescriptor
type |
object |
|||
properties |
||||
|
Type |
|||
default |
KafkaProducerSink |
|||
const |
KafkaProducerSink |
|||
|
Servers |
|||
anyOf |
type |
string |
||
type |
array |
|||
items |
type |
string |
||
|
Topic |
|||
type |
string |
|||
|
Encoding |
|||
type |
string |
|||
enum |
utf-8, ascii, python, json, msgpack_numpy, npy, carray |
|||
default |
python |
|||
|
Message Max Bytes |
|||
type |
integer |
|||
default |
1048576 |
|||
|
default |
null |
||
anyOf |
||||
type |
null |
|||
additionalProperties |
False |
TangoArrayScatterAttributeSinkDescriptor
A Tango Attribute Sink for splitting and scattering of ndarray data.
type |
object |
|||
properties |
||||
|
Type |
|||
type |
string |
|||
enum |
TangoArrayScatterAttributeSink, TangoSplitAttributeSink |
|||
default |
TangoArrayScatterAttributeSink |
|||
|
Attribute Names |
|||
type |
array |
|||
items |
type |
string |
||
|
Axis |
|||
type |
integer |
|||
default |
0 |
|||
|
Default Value |
|||
default |
||||
anyOf |
type |
array |
||
maxItems |
2 |
|||
minItems |
2 |
|||
type |
array |
|||
items |
||||
type |
object |
|||
type |
integer |
|||
type |
number |
|||
type |
boolean |
|||
type |
string |
|||
|
Attribute Shape Names |
|||
default |
null |
|||
anyOf |
type |
array |
||
items |
type |
string |
||
type |
null |
|||
|
Indices |
|||
default |
null |
|||
anyOf |
type |
array |
||
items |
type |
integer |
||
type |
null |
|||
additionalProperties |
False |
TangoAttributeDescriptor
An attribute descriptor describing a filter and path to to a value in JSON.
type |
object |
|||
properties |
||||
|
Attribute Name |
|||
type |
string |
|||
|
Dtype |
|||
anyOf |
type |
string |
||
type |
array |
|||
items |
type |
array |
||
items |
||||
maxItems |
3 |
|||
minItems |
2 |
|||
|
Shape |
|||
type |
array |
|||
default |
||||
items |
type |
integer |
||
|
Path |
|||
type |
string |
|||
default |
@ |
|||
|
Filter |
|||
default |
null |
|||
anyOf |
type |
string |
||
type |
null |
|||
|
Default Value |
|||
default |
||||
anyOf |
type |
array |
||
maxItems |
2 |
|||
minItems |
2 |
|||
type |
array |
|||
items |
||||
type |
object |
|||
type |
integer |
|||
type |
number |
|||
type |
boolean |
|||
type |
string |
|||
additionalProperties |
False |
TangoLocalAttributeSinkDescriptor
type |
object |
||
properties |
|||
|
Type |
||
default |
TangoLocalAttributeSink |
||
const |
TangoLocalAttributeSink |
||
|
Attribute Name |
||
type |
string |
||
|
Default Value |
||
default |
|||
anyOf |
type |
array |
|
maxItems |
2 |
||
minItems |
2 |
||
type |
array |
||
items |
|||
type |
object |
||
type |
integer |
||
type |
number |
||
type |
boolean |
||
type |
string |
||
additionalProperties |
False |
TangoObjectScatterAttributeSinkDescriptor
A Tango Attribute Sink for splitting and scattering object heirarchy data.
type |
object |
|
properties |
||
|
Type |
|
default |
TangoObjectScatterAttributeSink |
|
const |
TangoObjectScatterAttributeSink |
|
|
Attributes |
|
type |
array |
|
items |
||
additionalProperties |
False |
TangoPointingSubscriptionSourceDescriptor
type |
object |
|
properties |
||
|
Type |
|
default |
TangoPointingSubscriptionSource |
|
const |
TangoPointingSubscriptionSource |
|
|
Device Name |
|
type |
string |
|
|
Attribute Name |
|
type |
string |
|
|
Etype |
|
type |
integer |
|
default |
0 |
|
|
Stateless |
|
type |
boolean |
|
default |
True |
|
additionalProperties |
False |
TangoRemoteAttributeSinkDescriptor
type |
object |
|
properties |
||
|
Type |
|
default |
TangoRemoteAttributeSink |
|
const |
TangoRemoteAttributeSink |
|
|
Device Name |
|
type |
string |
|
|
Attribute Name |
|
type |
string |
|
additionalProperties |
False |
TangoSubscriptionSourceDescriptor
type |
object |
|
properties |
||
|
Type |
|
default |
TangoSubscriptionSource |
|
const |
TangoSubscriptionSource |
|
|
Device Name |
|
type |
string |
|
|
Attribute Name |
|
type |
string |
|
|
Etype |
|
type |
integer |
|
default |
0 |
|
|
Stateless |
|
type |
boolean |
|
default |
True |
|
additionalProperties |
False |
TimestampOptions
A set of kafka producer options related to extracting Kafka timestamps from dynamic data. Timestamps in dynamic data must be one of:
An offset to unix epoch in milliseconds.
A numpy datetime64 on TAI scale.
type |
object |
|||||
properties |
||||||
|
Slices |
|||||
type |
array |
|||||
default |
||||||
items |
anyOf |
type |
integer |
|||
type |
array |
|||||
items |
anyOf |
type |
integer |
|||
type |
null |
|||||
maxItems |
3 |
|||||
minItems |
3 |
|||||
|
Key |
|||||
default |
null |
|||||
anyOf |
type |
string |
||||
type |
null |
|||||
|
Reducer |
|||||
default |
null |
|||||
anyOf |
type |
string |
||||
enum |
min, max, mean |
|||||
type |
null |
|||||
additionalProperties |
False |
Note
bold indicates a required key-value pair.
Examples
Empty Config
{}
Image Config
{
"exchanges": [
{
"dtype": "float32",
"shape": [2,2],
"source": {
"type": "InMemorySource",
"data": [
[[0,0],
[0,1]],
[1.0, 2.0],
2.0,
2.1,
2.5,
],
"delay": 0.5
},
"sink": {
"type": "KafkaProducerSink",
"topic": "test-topic",
"servers": "localhost",
"encoding": "carray"
}
},
{
"dtype": "float32",
"shape": [2,2],
"source": {
"type": "KafkaConsumerSource",
"topic": "test-topic",
"servers": "localhost",
"encoding": "carray"
},
"sink": {
"type": "TangoLocalAttributeSink",
"attribute_name": "matrix",
"default_value": 0
}
}
]
}