Skip to content

Commit 5717e66

Browse files
authored
add sleep mode analytics (#61)
Signed-off-by: Matt Klein <mklein@bitdrift.io>
1 parent 01b6339 commit 5717e66

File tree

1 file changed

+5
-0
lines changed
  • src/bitdrift_public/protobuf/client/v1

1 file changed

+5
-0
lines changed

src/bitdrift_public/protobuf/client/v1/api.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ message HandshakeRequest {
6565
// Reports the reason, if any, that the client was previously disconnected from the server. This
6666
// is useful for debugging reconnect loops.
6767
string previous_disconnect_reason = 6;
68+
69+
// At the time of the handshake, whether the client is operating in sleep mode.
70+
bool sleep_mode = 7;
6871
}
6972

7073
// Notifies the server about the intent to upload one or more batches of logs. The client is expected (but
@@ -139,6 +142,8 @@ message LogUploadRequest {
139142

140143
// Empty message to maintain a application layer keep alive mechanism.
141144
message PingRequest {
145+
// At the time of the ping, whether the client is operating in sleep mode.
146+
bool sleep_mode = 1;
142147
}
143148

144149
// Configuration update response from client to server.

0 commit comments

Comments
 (0)