Exemplo n.º 1
0
 public static StitchHealthResponse Create(StitchHealthRequest request, long lastHeartbeatId, long currentHeartbeatId, StitchHealthType type)
 {
     return(new StitchHealthResponse
     {
         Status = type,
         StitchId = request.StitchId,
         LastHeartbeatReceived = lastHeartbeatId,
         HeartbeatsMissed = currentHeartbeatId - lastHeartbeatId
     });
 }
Exemplo n.º 2
0
 public StitchHealthReport(long lastHeartbeatSync, long missedHeartbeats, StitchHealthType healthType)
 {
     LastHeartbeatSync = lastHeartbeatSync;
     MissedHeartbeats  = missedHeartbeats;
     HealthType        = healthType;
 }