ConneX_Help.pdf - 第54页

m essa ge Type: MessageMod el Get the la st rec e i ve d M QTT me ssa ge . Exa mple R e q ue st R e spo nse m essa ges Type: MessageMod elCollectionS egment Get al l M QTT me ssa g es usi ng pag ing . Ar gu me n ts Name …

100%1 / 86
license
Type:
[LicenseModel]
Get the installed license information.
Example
Request Response
query {
latestHandlerStatistics(entityIdentifier:"4826196c-0866-44f4-afa0-d331bcfd04eb")
{
currentJob
availability
uptime
totalPass
totalFail
systemYield
programmerYield
handlerYield
uPH
jobCompletionEstimate
}
}
GraphQL
{
"data": {
"latestHandlerStatistics": {
"currentJob": "MX 29LV160DBTI",
"availability": "100.00",
"uptime": "100.00",
"totalPass": 189,
"totalFail": 3,
"systemYield": "98.44",
"programmerYield": "98.44",
"handlerYield": "100.00",
"uPH": 1859,
"jobCompletionEstimate": "6/8/2022 11:35:18 AM"
}
}
}
JSON
query {
license {
licenseType
maxConnections
availableConnections
conneXAnnualMaintenanceContract
timedLicenseExpiration
}
}
GraphQL
message
Type:
MessageModel
Get the last received MQTT message.
Example
Request Response
messages
Type:
MessageModelCollectionSegment
Get all MQTT messages using paging.
Arguments
Name Description
skip
(
Int
) The number of messages to skip.
take
(
Int
)
The number of messages to return.
where
(MessageModelFilterInput) The Filter to apply to the messages.
order
(
[MessageModelSortInput!]
)The sort order to apply to the messages.
{
"data": {
"license": {
"licenseType": "Perpetual",
"maxConnections": 10,
"availableConnections": 9,
"conneXAnnualMaintenanceContract": "2023-06-01T00:00:00.000-07:00",
"timedLicenseExpiration": "0001-01-01T00:00:00.000-08:00"
}
}
}
JSON
query {
message
{
topic
timestamp
}
}
GraphQL
{
"data": {
"message": {
"topic": "connex/programmer/currentprogrammerstatuses",
"timestamp": "2021-12-21T21:48:28.514-08:00"
}
}
}
JSON
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