ConneX_Help.pdf - 第49页
en t i tyTyp es Type: [EntityTyp e!] Loo k up al l the kno wn e nti ty ty p e s that c a n be co nne c te d t o thi s in stanc e of C on ne X . Exa mple R e q ue st R e spo nse { "data": { "entities "…

entities
Type:
[Entity]
Look up all the known entities connected to this instance of ConneX.
Example
Request Response
{
"data": {
"adapters": [
{
"adapterId": "110008"
},
{
"adapterId": "110008"
},
{
"adapterId": "110008"
},
{
"adapterId": "110008"
},
{
"adapterId": "310008"
},
{
"adapterId": "310008"
}
]
}
}
JSON
query {
entities {
entityIdentifier
entityType
entityName
}
}
GraphQL

entityTypes
Type:
[EntityType!]
Look up all the known entity types that can be connected to this instance of ConneX.
Example
Request Response
{
"data": {
"entities": [
{
"entityIdentifier": "42707786-1a5b-4b2f-9c0d-9512bb30cbb0",
"entityType": "HANDLER",
"entityName": "PSV2800 #1"
},
{
"entityIdentifier": "ee232edf-05ef-4407-a4e4-1d0431099e97",
"entityType": "HANDLER",
"entityName": "PSV3000 #1"
},
{
"entityIdentifier": "853be1da-0847-4a85-b499-208c37ce40fb",
"entityType": "HANDLER",
"entityName": "PSV5000 #1"
},
{
"entityIdentifier": "777425b0-300e-43d6-b40a-0f94c57559fa",
"entityType": "HANDLER",
"entityName": "PSV5000 #2"
},
{
"entityIdentifier": "5573f981-10c4-4466-adf2-c68039cb9983",
"entityType": "HANDLER",
"entityName": "PSV7000 #1"
},
{
"entityIdentifier": "ee496e4a-2b14-4cd2-af6a-bb92ad9fa015",
"entityType": "HANDLER",
"entityName": "PSV7000 #2"
},
{
"entityIdentifier": "D1:AD:0D:28:26:9E",
"entityType": "PROGRAMMER",
"entityName": "FC - 1"
},
{
"entityIdentifier": "D1:AD:0D:28:26:9E_Socket0",
"entityType": "ADAPTER",
"entityName": null
}
]
}
}
JSON
query {
entityTypes
}
GraphQL

handlerMetrics
Type:
[HandlerMetrics]
Get metrics for the specified PSV system.
Arguments
Name Description
handlerIdentifier
(
String
)The PSV system's unique identifier.
interval
(
Interval
) An
Interval
defining how far back to query.
timeBucket
(
Interval
) An
Interval
over which the metrics will be aggregated.
Example
Request Response
{
"data": {
"entityTypes": [
"HANDLER",
"PROGRAMMER",
"ADAPTER",
"JOB"
]
}
}
JSON
query{
handlerMetrics(handlerIdentifier: "42707786-1a5b-4b2f-9c0d-9512bb30cbb0"
interval: "1 hour"
timeBucket: "15 minutes")
{
timeStamp
jobState
uptime
jobProcessingTime
unitsPerHour
yield
}
}
GraphQL