mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
38 lines
776 B
C#
38 lines
776 B
C#
using MQTTnet.Formatter;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MQTTnet.Server.Status
|
|
{
|
|
public interface IMqttClientStatus
|
|
{
|
|
string ClientId { get; }
|
|
|
|
string Endpoint { get; }
|
|
|
|
MqttProtocolVersion ProtocolVersion { get; }
|
|
|
|
DateTime LastPacketReceivedTimestamp { get; }
|
|
|
|
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();
|
|
}
|
|
}
|