RPC远程过程调用,二进制封装,提供高吞吐低延迟的高性能RPC框架
大石头
authored at
2022-08-10 13:26:19
NewLife.Remoting
using NewLife.Remoting.Models;
namespace NewLife.IoT.Models;
/// <summary>心跳信息</summary>
public class PingInfo : PingRequest
{
#region 属性
///// <summary>内存大小</summary>
//public UInt64 Memory { get; set; }
///// <summary>可用内存大小</summary>
//public UInt64 AvailableMemory { get; set; }
///// <summary>磁盘大小。应用所在盘</summary>
//public UInt64 TotalSize { get; set; }
///// <summary>磁盘可用空间。应用所在盘</summary>
//public UInt64 AvailableFreeSpace { get; set; }
///// <summary>CPU使用率</summary>
//public Double CpuRate { get; set; }
///// <summary>温度</summary>
//public Double Temperature { get; set; }
///// <summary>电量</summary>
//public Double Battery { get; set; }
///// <summary>本地IP</summary>
//public String IP { get; set; }
///// <summary>开机时间,单位s</summary>
//public Int32 Uptime { get; set; }
///// <summary>本地UTC时间。ms毫秒</summary>
//public Int64 Time { get; set; }
///// <summary>延迟。ms毫秒</summary>
//public Int32 Delay { get; set; }
#endregion
}
public class MyPingResponse : PingResponse
{
/// <summary>采集间隔。毫秒</summary>
public Int32 PollingTime { get; set; }
}
|