ConneX_Help.pdf - 第51页

l a t est A da pt er S t a t i st i cs Type: [AdapterSt atistics] Get the la te st st ati ti stic s f o r t he spe c i f i e d a d ap ter. Ar gu me n ts Name D escrip t ion entityIde ntifier ( String )T he ad ap te r&apo…

100%1 / 86
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
latestAdapterStatistics
Type:
[AdapterStatistics]
Get the latest statitistics for the specified adapter.
Arguments
Name Description
entityIdentifier
(
String
)The adapter's unique identifier.
Example
Request Response
{
"data": {
"handlerMetrics": [
{
"timeStamp": "2022-10-06T12:01:57.173-07:00",
"jobState": null,
"uptime": 892,
"jobProcessingTime": null,
"unitsPerHour": 500,
"yield": 0.9923533439853912
},
{
"timeStamp": "2022-10-06T11:46:57.173-07:00",
"jobState": null,
"uptime": 597,
"jobProcessingTime": null,
"unitsPerHour": 503,
"yield": 0.9923533439853912
},
{
"timeStamp": "2022-10-06T11:31:57.173-07:00",
"jobState": null,
"uptime": 1187,
"jobProcessingTime": 873,
"unitsPerHour": 498,
"yield": 0.9923533439853912
},
{
"timeStamp": "2022-10-06T11:16:57.173-07:00",
"jobState": null,
"uptime": 890,
"jobProcessingTime": 884,
"unitsPerHour": 487,
"yield": 0.9923533439853912
}
]
}
}
JSON
latestHandlerStatistics
Type:
[HandlerStatistics]
Get the latest statistics for the specified PSV system.
Arguments
Name Description
entityIdentifier
(
String
)The PSV system's unique identifier.
Example
Request Response
query {
latestAdapterStatistics(
entityIdentifier: "136-043-225-168-137-224-207-100-238"
)
{
adapterId
cleanCount
lifetimeActuationCount
lifetimeContinuityFailCount
lifetimeFailCount
lifetimePassCount
socketIndex
adapterState
}
}
GraphQL
{
"data": {
"latestAdapterStatistics": {
"adapterId": "110008",
"cleanCount": 2,
"lifetimeActuationCount": 4955,
"lifetimeContinuityFailCount": 25,
"lifetimeFailCount": 70,
"lifetimePassCount": 9713,
"socketIndex": 4,
"adapterState": "VALIDATED"
}
}
}
JSON