mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-28 01:02:37 +08:00
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using MQTTnet.Formatter;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MQTTnet.Server.Status
|
|
{
|
|
public interface IMqttClientStatus
|
|
{
|
|
/// <summary>
|
|
/// Gets the client identifier.
|
|
/// Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
|
|
/// </summary>
|
|
string ClientId { get; }
|
|
|
|
string Endpoint { get; }
|
|
|
|
MqttProtocolVersion ProtocolVersion { get; }
|
|
|
|
DateTime ConnectedTimestamp { get; set; }
|
|
|
|
DateTime LastPacketReceivedTimestamp { get; }
|
|
|
|
DateTime LastPacketSentTimestamp { get; set; }
|
|
|
|
DateTime LastNonKeepAlivePacketReceivedTimestamp { get; }
|
|
|
|
long ReceivedApplicationMessagesCount { get; }
|
|
|
|
long SentApplicationMessagesCount { get; }
|
|
|
|
long ReceivedPacketsCount { get; }
|
|
|
|
long SentPacketsCount { get; }
|
|
|
|
IMqttSessionStatus Session { get; }
|
|
|
|
long BytesSent { get; }
|
|
|
|
long BytesReceived { get; }
|
|
|
|
Task DisconnectAsync();
|
|
|
|
void ResetStatistics();
|
|
}
|
|
}
|