Health check
This commit is contained in:
parent
7405d7c8ee
commit
d75073116f
|
@ -55,7 +55,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
@foreach ($nodes as $node)
|
@foreach ($nodes as $node)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center text-muted left-icon" data-action="ping" data-secret="{{ $node->daemonSecret }}" data-location="{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/v1"><i class="fa fa-fw fa-refresh fa-spin"></i></td>
|
<td class="text-center text-muted left-icon" data-action="ping" data-secret="{{ $node->daemonSecret }}" data-location="{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/api/system"><i class="fa fa-fw fa-refresh fa-spin"></i></td>
|
||||||
<td>{!! $node->maintenance_mode ? '<span class="label label-warning"><i class="fa fa-wrench"></i></span> ' : '' !!}<a href="{{ route('admin.nodes.view', $node->id) }}">{{ $node->name }}</a></td>
|
<td>{!! $node->maintenance_mode ? '<span class="label label-warning"><i class="fa fa-wrench"></i></span> ' : '' !!}<a href="{{ route('admin.nodes.view', $node->id) }}">{{ $node->name }}</a></td>
|
||||||
<td>{{ $node->location->short }}</td>
|
<td>{{ $node->location->short }}</td>
|
||||||
<td>{{ $node->memory }} MB</td>
|
<td>{{ $node->memory }} MB</td>
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: $(element).data('location'),
|
url: $(element).data('location'),
|
||||||
headers: {
|
headers: {
|
||||||
'X-Access-Token': $(element).data('secret'),
|
'Authorization': 'Bearer ' + $(element).data('secret'),
|
||||||
},
|
},
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
|
|
Loading…
Reference in New Issue