[#3c9g25] Add support for new endpoint to collect node information

This commit is contained in:
Dane Everitt 2019-12-09 21:05:39 -08:00
parent 979bdc1f9f
commit 564d947f7e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 74 additions and 5 deletions

View file

@ -153,14 +153,11 @@
(function getInformation() {
$.ajax({
method: 'GET',
url: '{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/v1',
url: '/admin/nodes/view/{{ $node->id }}/system-information',
timeout: 5000,
headers: {
'X-Access-Token': '{{ $node->daemonSecret }}'
},
}).done(function (data) {
$('[data-attr="info-version"]').html(data.version);
$('[data-attr="info-system"]').html(data.system.type + '(' + data.system.arch + ') <code>' + data.system.release + '</code>');
$('[data-attr="info-system"]').html(data.system.type + ' (' + data.system.arch + ') <code>' + data.system.release + '</code>');
$('[data-attr="info-cpus"]').html(data.system.cpus);
}).fail(function (jqXHR) {