i want that filter table bs to be Going Away. restful? idk. we speak Devices now.
This commit is contained in:
@@ -31,7 +31,7 @@ async fn dispatch_status(req: StatusRequest) -> Result<CommandResult> {
|
||||
} else {
|
||||
wakey::get_status(query).await?
|
||||
};
|
||||
debug!(rows = status.table.len(), "dispatched status command");
|
||||
debug!(devices = status.devices.len(), "dispatched status command");
|
||||
Ok(CommandResult::Status(status))
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@ use std::fmt;
|
||||
use std::net::IpAddr;
|
||||
use wakey_core::parse::mac;
|
||||
use wakey_core::{
|
||||
DeviceFilters, DeviceInventory, DeviceQuery, DhcpLeaseWithState, InterfaceSummary,
|
||||
NeighborEntry, Status, WakeResult,
|
||||
DeviceFilters, DeviceInventory, DeviceQuery, DhcpLeaseWithState, InterfaceSummary, WakeResult,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
@@ -174,7 +173,7 @@ pub enum AgentCommand {
|
||||
#[derive(Debug, Serialize)]
|
||||
#[serde(tag = "kind", rename_all = "snake_case")]
|
||||
pub enum CommandResult {
|
||||
Status(Status<NeighborEntry>),
|
||||
Status(DeviceInventory),
|
||||
Leases { rows: Vec<DhcpLeaseWithState> },
|
||||
Devs { rows: Vec<InterfaceSummary> },
|
||||
Inventory(DeviceInventory),
|
||||
|
||||
Reference in New Issue
Block a user