Skip to content

Commit

Permalink
Include uptime and latency in online device request
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Nov 6, 2024
1 parent e5fa232 commit 5165826
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion API/Controller/Admin/GetOnlineDevices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public async Task<BaseResponse<IEnumerable<AdminOnlineDeviceResponse>>> GetOnlin
Owner = dbItem.Owner,
Name = dbItem.Name,
ConnectedAt = x.ConnectedAt,
UserAgent = x.UserAgent
UserAgent = x.UserAgent,
Latency = x.Latency,
Uptime = x.Uptime
};
})
};
Expand All @@ -71,5 +73,7 @@ public sealed class AdminOnlineDeviceResponse
public required DateTimeOffset ConnectedAt { get; init; }

public required string? UserAgent { get; init; }
public required TimeSpan? Uptime { get; init; }
public required TimeSpan? Latency { get; init; }
}
}

0 comments on commit 5165826

Please sign in to comment.