syntax = "proto3";

package exclave.core.app.observatory;
option java_package = "com.github.exclavenetwork.exclave.core.app.observatory";
option java_multiple_files = true;

message HealthPingMeasurementResult {
  int64 all = 1;
  int64 fail = 2;
  int64 deviation = 3;
  int64 average = 4;
  int64 max = 5;
  int64 min = 6;
}

message OutboundStatus{
  bool alive = 1;
  int64 delay = 2;
  string last_error_reason = 3;
  string outbound_tag = 4;
  int64 last_seen_time = 5;
  int64 last_try_time = 6;
  HealthPingMeasurementResult health_ping = 7;
}
