ConneX_Help.pdf - 第56页

pr og r a m mer Types Type: [Programme rType!] Loo k up al l the kno wn p ro gra mm e r syst e m type s that ca n be c on ne c ted to this i nstanc e of Conne X . Exa mple R e q ue st R e spo nse { "data": { &q…

100%1 / 86
Name Description
Example
Request Response
programmers
Type:
[ProgrammerModel]
Look up all the known programmers connected to this instance of ConneX.
Example
Request Response
query {
messages (take:1) {
totalCount
items {
topic
contentType
timestamp
messageModelId
payloadAsString
}
}
}
GraphQL
{
"data": {
"messages": {
"totalCount": 138,
"items": [
{
"topic": "connex/programmer/lumenx/legacy/connected",
"contentType": null,
"timestamp": "2022-01-05T21:38:26.835-08:00",
"messageModelId": "f89a9ea5-cb22-4c32-811e-9fe08f3e6cab",
"payloadAsString": "{\"ProgrammerIdentifier\":\"\",\"HandlerIdentifer\":\"323bcb6c-3e40-4678-98a8-d373e3
8144af\",\"IpAddress\":\"127.0.0.1\",\"ProgrammerType\":1,\"ProgrammerName\":\"LX-1\",\"Adapters\":[]}"
}
]
}
}
}
JSON
query {
programmers {
programmerId
ipAddress
programmerType
}
}
GraphQL
programmerTypes
Type:
[ProgrammerType!]
Look up all the known programmer system types that can be connected to this instance of ConneX.
Example
Request Response
{
"data": {
"programmers": [
{
"programmerId": 2,
"ipAddress": "192.168.1.1",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 3,
"ipAddress": "192.168.1.2",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 4,
"ipAddress": "192.168.1.3",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 5,
"ipAddress": "192.168.1.4",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 6,
"ipAddress": "192.168.1.5",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 7,
"ipAddress": "10.0.0.0",
"programmerType": "LUMEN_X"
}
]
}
}
JSON
query {
programmerTypes
}
GraphQL
system
Type:
Handler
Look up a singular PSV system by its database ID.
Arguments
Name Description
databaseId
(
Int!
)The database identifier of the handler.
Example
Request Response
systems
Type:
[Handler]
Look up all the known PSV systems connected to this instance of ConneX.
Example
Request Response
{
"data": {
"programmerTypes": [
"FLASH_CORE",
"LUMEN_X"
]
}
}
JSON
query {
system (databaseId: 1) {
handlerId
}
}
GraphQL
{
"data": {
"system": {
"handlerId": 1,
"handlerType": "PSV2800",
"ipAddress": "172.16.0.1",
"hostName": "PSV-1",
"machineFactory": null
}
}
}
JSON