blob: a76d19930e5d5095de8d6c22cf071c70194c70c2 [file] [log] [blame]
syntax = "proto3";
package proto;
option go_package = "code.hackerspace.pl/hscloud/personal/q3k/shipstuck/proto";
import "google/api/annotations.proto";
service ShipStuck {
rpc Status(StatusRequest) returns (StatusResponse) {
option (google.api.http) = {
get: "/v1/shipstuck/status"
};
};
}
message StatusRequest {
}
message StatusResponse {
// Timestamp (nanos from epoch) of last check.
int64 last_checked = 1;
enum Stuckness {
STUCKNESS_INVALID = 0;
STUCKNESS_STUCK = 1;
STUCKNESS_FREE = 2;
STUCKNESS_UNKNOWN = 3;
STUCKNESS_TOWED = 4;
};
Stuckness current = 2;
// If STUCK or TOWED, how many nanoseconds have elapsed since the whoopsie?
int64 elapsed = 3;
}