mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
API Calls to list Device Outages, calculated Availability (#12103)
* API Calls to list Device Outages, calculated Availability * switch to eloquent * style correction
This commit is contained in:
@@ -87,6 +87,8 @@ Route::group(['prefix' => 'v0', 'namespace' => '\App\Api\Controllers'], function
|
||||
Route::group(['prefix' => 'devices'], function () {
|
||||
Route::get('{hostname}', 'LegacyApiController@get_device')->name('get_device');
|
||||
Route::get('{hostname}/discover', 'LegacyApiController@trigger_device_discovery')->name('trigger_device_discovery');
|
||||
Route::get('{hostname}/availability', 'LegacyApiController@device_availability')->name('device_availability');
|
||||
Route::get('{hostname}/outages', 'LegacyApiController@device_outages')->name('device_outages');
|
||||
Route::get('{hostname}/graphs/health/{type}/{sensor_id?}', 'LegacyApiController@get_graph_generic_by_hostname')->name('get_health_graph');
|
||||
Route::get('{hostname}/graphs/wireless/{type}/{sensor_id?}', 'LegacyApiController@get_graph_generic_by_hostname')->name('get_wireless_graph');
|
||||
Route::get('{hostname}/vlans', 'LegacyApiController@get_vlans')->name('get_vlans');
|
||||
|
Reference in New Issue
Block a user