blob: f0836e116366c52a38edeebfc9a4b53e6a2801a1 [file] [log] [blame]
Serge Bazanski3d116b22021-03-27 15:43:18 +00001syntax = "proto3";
2package proto;
3option go_package = "code.hackerspace.pl/hscloud/personal/q3k/shipstuck/proto";
4
5import "google/api/annotations.proto";
6
7service ShipStuck {
8 rpc Status(StatusRequest) returns (StatusResponse) {
9 option (google.api.http) = {
10 get: "/v1/shipstuck/status"
11 };
12 };
13}
14
15message StatusRequest {
16}
17
18message StatusResponse {
19 // Timestamp (nanos from epoch) of last check.
20 int64 last_checked = 1;
21 enum Stuckness {
22 STUCKNESS_INVALID = 0;
23 STUCKNESS_STUCK = 1;
24 STUCKNESS_FREE = 2;
25 STUCKNESS_UNKNOWN = 3;
26 };
27 Stuckness current = 2;
28 // If STUCK, how many nanoseconds have elapsed since the whoopsie?
29 int64 elapsed = 3;
30}