30 lines
1.9 KiB
Plaintext
30 lines
1.9 KiB
Plaintext
MATCH
|
|
{class: HostingNode, as: hostingnode0, where: ($currentMatch['@class'] INSTANCEOF 'HostingNode')}
|
|
|
|
.outE('IsIdentifiedBy') { as: isidentifiedby00, where: ($currentMatch['@class'] INSTANCEOF 'IsIdentifiedBy')}
|
|
.inV('NetworkingFacet') { as: networkingfacet000, where: ($currentMatch['@class'] INSTANCEOF 'NetworkingFacet')}
|
|
.inE('IsIdentifiedBy') { where: ($matched.isidentifiedby00 == $currentMatch)}
|
|
.outV('HostingNode') { where: ($matched.hostingnode0 == $currentMatch)}
|
|
|
|
.outE('ConsistsOf') { as: consistsof01, where: ($currentMatch['@class'] INSTANCEOF 'ConsistsOf')}
|
|
.inV('StateFacet') { as: statefacet010, where: ($currentMatch['@class'] INSTANCEOF 'StateFacet')}
|
|
.inE('ConsistsOf') { where: ($matched.consistsof01 == $currentMatch)}
|
|
.outV('HostingNode') { where: ($matched.hostingnode0 == $currentMatch)}
|
|
|
|
.outE('HasPersistentMemory') { as: haspersistentmemory02, where: ($currentMatch['@class'] INSTANCEOF 'HasPersistentMemory')}
|
|
.inV('MemoryFacet') { as: memoryfacet020, where: ($currentMatch['@class'] INSTANCEOF 'MemoryFacet')}
|
|
.inE('HasPersistentMemory') { where: ($matched.haspersistentmemory02 == $currentMatch)}
|
|
.outV('HostingNode') { where: ($matched.hostingnode0 == $currentMatch)}
|
|
|
|
.outE('HasVolatileMemory') { as: hasvolatilememory03, where: ($currentMatch['@class'] INSTANCEOF 'HasVolatileMemory')}
|
|
.inV('MemoryFacet') { as: memoryfacet030, where: (($currentMatch['@class'] INSTANCEOF 'MemoryFacet') AND (jvmMaxMemory IS null))}
|
|
.inE('HasVolatileMemory') { where: ($matched.hasvolatilememory03 == $currentMatch)}
|
|
.outV('HostingNode') { where: ($matched.hostingnode0 == $currentMatch)}
|
|
|
|
RETURN
|
|
networkingfacet000.hostName AS `HostName`,
|
|
statefacet010.value AS `Status`,
|
|
((memoryfacet020.size - memoryfacet020.used) + ' ' + memoryfacet020.unit) AS `HD Space Left`,
|
|
(memoryfacet030.size + ' ' + memoryfacet030.unit) AS `Mem. Available.`,
|
|
hostingnode0.id AS `ID`,
|
|
hostingnode0.metadata.lastUpdateTime AS `Last Update Time` |