Hoping to adjust the response data for following endpoints to render in the web dashboard:
api/runtimes/
api/runtimes/{uuid}
api/modules
api/modules/{uuid
api/runtimes/
This lists all runtimes, so ideally this should include all at-a-glance info columns in a table.
The following columns are shown in the CLI that are not included in this endpoint.
- Node (up/down)
- Runtime (up/down ... is this the
alive field?)
- Model
- CPU
- Target, Arch (are these derived from
aot_target? Is it intended to be composed of individual runtime platform.cpu.arch + platform.cpu.class ?)
Modules or children field:
This currently lists the uuid, name, filename for each module. The CLI does not show any module information, but a short list could possibly be rendered in the runtime list table. For instance, this could be shown as:
modulename2 (), modulename2 (), ... (5 more)
Filtering
The API could support filtering by runtime UUID with query param, e.g. api/runtime/?module=<moduleuuid>
api/runtimes/{uuid}
This endpoint has more detail than the listing of all endpoints, but does not include the children or list of modules. This is needed to render the full list of modules on this runtime. Optionally this could be achieved with a separate, filtered api/modules request (see below).
api/modules/
Any additional columns that might be useful for each module, such as resource usage or alive status?
Filtering
Similar to the above runtimes endpoint, if the api/modules/ endpoint supported filtering queries, this might allow for easy list of all modules sharing the code, .e.g. api/modules/?runtime=<runtimeuuid>, api/modules/?name=<namestring>
api/modules/{uuid}
Since there is only a single parent for a module instance, is it useful or relevant in a detailed module view, to see all other instances the same program elsewhere?
Hoping to adjust the response data for following endpoints to render in the web dashboard:
api/runtimes/api/runtimes/{uuid}api/modulesapi/modules/{uuidapi/runtimes/This lists all runtimes, so ideally this should include all at-a-glance info columns in a table.
The following columns are shown in the CLI that are not included in this endpoint.
alivefield?)aot_target? Is it intended to be composed of individual runtimeplatform.cpu.arch+platform.cpu.class?)Modules or
childrenfield:This currently lists the
uuid,name,filenamefor each module. The CLI does not show any module information, but a short list could possibly be rendered in the runtime list table. For instance, this could be shown as:Filtering
The API could support filtering by runtime UUID with query param, e.g.
api/runtime/?module=<moduleuuid>api/runtimes/{uuid}This endpoint has more detail than the listing of all endpoints, but does not include the
childrenor list of modules. This is needed to render the full list of modules on this runtime. Optionally this could be achieved with a separate, filteredapi/modulesrequest (see below).api/modules/Any additional columns that might be useful for each module, such as resource usage or
alivestatus?Filtering
Similar to the above
runtimesendpoint, if theapi/modules/endpoint supported filtering queries, this might allow for easy list of all modules sharing the code, .e.g.api/modules/?runtime=<runtimeuuid>,api/modules/?name=<namestring>api/modules/{uuid}Since there is only a single parent for a module instance, is it useful or relevant in a detailed module view, to see all other instances the same program elsewhere?