Skip to content

Commit

Permalink
Add waitForHealthy and status reporting to KeepaliveSources
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS-ovm committed Sep 20, 2023
1 parent 7d2805c commit acdb31a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions account.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/timestamp.proto";

package account;

Expand Down Expand Up @@ -74,12 +74,12 @@ message CreateAccountResponse {

message AdminGetAccountRequest {
// The name of the account to get
string name = 1;
string name = 1;
}

message DeleteAccountRequest {
// The name of the account to delete
string name = 1;
string name = 1;
}
message DeleteAccountResponse {}

Expand Down Expand Up @@ -229,7 +229,7 @@ message CreateSourceResponse {
}

message GetSourceRequest {
bytes UUID = 1;
bytes UUID = 1;
}

message GetSourceResponse {
Expand All @@ -254,8 +254,17 @@ message DeleteSourceRequest {

message DeleteSourceResponse {}

message KeepaliveSourcesRequest {}
message KeepaliveSourcesResponse {}
message KeepaliveSourcesRequest {
// Set to true to have the API call wait until the source is up and healthy
bool waitForHealthy = 1;
}
message KeepaliveSourcesResponse {
// returns true if any of the sources did not come up in time
bool failed = 1;

// returns an indication of why not all sources were healthy
string error = 2;
}

message CreateTokenRequest {
// The Public NKey of the user that is requesting a token
Expand Down

0 comments on commit acdb31a

Please sign in to comment.