ConneX_Help.pdf - 第45页
xecution of the current frag ment to indica te deprioritiz ation of the current fragment. A query with `@defer` d irective will cau se the request to potentially retu rn multiple re sponses, wher e non-deferred data is d…

none: ComparableByteOperationFilterInput
some: ComparableByteOperationFilterInput
any: Boolean
}
input MessageModelFilterInput {
and: [MessageModelFilterInput!]
or: [MessageModelFilterInput!]
topic: StringOperationFilterInput
contentType: StringOperationFilterInput
payload: ListComparableByteOperationFilterInput
timestamp: ComparableDateTimeOperationFilterInput
messageModelId: ComparableGuidOperationFilterInput
}
input MessageModelSortInput {
topic: SortEnumType
contentType: SortEnumType
timestamp: SortEnumType
messageModelId: SortEnumType
}
input StringOperationFilterInput {
and: [StringOperationFilterInput!]
or: [StringOperationFilterInput!]
eq: String
neq: String
contains: String
ncontains: String
in: [String]
nin: [String]
startsWith: String
nstartsWith: String
endsWith: String
nendsWith: String
}
enum AdapterState {
NOT_INSERTED
INSERTED
VALIDATED
VALIDATE_FAILED
UNKNOWN
POWER_FAULT
}
enum EntityType {
HANDLER
PROGRAMMER
ADAPTER
JOB
}
enum HandlerType {
DESKTOP
PSV2800
PSV3000
PSV5000
PSV7000
}
enum ProgrammerType {
FLASH_CORE
LUMEN_X
}
enum SortEnumType {
ASC
DESC
}
"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the e
x
e
c
u
t
i
o
n
o
f
t
h
e
c
u
r
r
e
n
t
f
r
a
g
m
e
n
t
t
o
i
n
d
i
c
a
t
e
d
e
p
r
i
o
r
i
t
i
z
a
t
i
o
n
o
f
t
h
e
c
u
r
r
e
n
t
f
r
a
g
m
e
n
t
.
A
q
u
e
r
y
w
i
t
h
`
@
d
e
f
e
r
`
d
i
r
e
c
t
i
v
e

xecution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive
will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial re
sponse and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`."
directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer
directive. This label is intended to give client applications a way to identify to which fragment a deferred result bel
ongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT
"The `@specifiedBy` directive is used within the type system definition language to provide a URL for specifying the be
havior of custom scalar definitions."
directive @specifiedBy("The specifiedBy URL points to a human-readable specification. This field will only read a resul
t for scalar types." url: String!) on SCALAR
"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as
asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent respo
nses. `@include` and `@skip` take precedence over `@stream`."
directive @stream("If this argument label has a value other than null, it will be passed on to the result of this strea
m directive. This label is intended to give client applications a way to identify to which fragment a streamed result b
elongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! = 0 "Strea
med when true." if: Boolean) on FIELD
"The `Byte` scalar type represents non-fractional whole numeric values. Byte can represent values between 0 and 255."
scalar Byte
"The `DateTime` scalar represents an ISO-8601 compliant date time type."
scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time")
"The `Long` scalar type represents non-fractional signed whole 64-bit numeric values. Long can represent values between
-(2^63) and 2^63 - 1."
scalar Long
scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
"The UnsignedInt scalar type represents a unsigned 32-bit numeric non-fractional value greater than or equal to 0."
scalar UnsignedInt

Queries
ConneX exposes the following GraphQL queries:
Query Description
adapterMetrics
Get metrics for the specified adapter.
adapters
Look up all the known adapters connected to this instance of ConneX.
entities
Look up all the known entities connected to this instance of ConneX.
entityTypes
Look up all the known entity types that can be connected to this instance of ConneX.
handlerMetrics
Get metrics for the specified PSV system.
latestAdapterStatistics
Get the latest metric entries for the specified adapter.
latestHandlerStatistics
Get the latest metric entries for the specified PSV system.
license
Get the installed license information.
message
Get the last received MQTT message.
messages
Get all MQTT messages.
programmers
Look up all the known programmers connected to this instance of ConneX.
programmerTypes
Look up all the known programmer system types that can be connected to this instance of ConneX.
system
Look up a singular PSV system by its database ID.
systems
Look up all the known PSV systems connected to this instance of ConneX.
systemTypes
Look up all the known PSV system types that can be connected to this instance of ConneX.
adapterMetrics
Type:
[AdapterMetrics]
Get metrics for the specified adapter.
Arguments
Name Description
adapterIdentifier
(
String
)The adapter'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
query{
adapterMetrics(adapterIdentifier: "222-032-205-139-137-224-207-100-238"
interval: "1 hour"
timeBucket: "15 minutes")
{
timeStamp
blankCheckDuration
eraseDuration
programmingDuration
verifyDuration
}
}
GraphQL