mirror of
https://github.com/singchia/frontier.git
synced 2025-09-26 20:31:25 +08:00
31 lines
654 B
Protocol Buffer
31 lines
654 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package controlplane;
|
|
|
|
option go_package = "github.com/singchia/frontier/api/controlplane/frontlas/v1;v1";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
message HealthCheckRequest {
|
|
string service = 1;
|
|
}
|
|
|
|
message HealthCheckResponse {
|
|
enum ServingStatus {
|
|
UNKNOWN = 0;
|
|
SERVING = 1;
|
|
NOT_SERVING = 2;
|
|
SERVICE_UNKNOWN = 3; // Used only by the Watch method.
|
|
}
|
|
ServingStatus status = 1;
|
|
}
|
|
|
|
service Health {
|
|
rpc Check(HealthCheckRequest) returns (HealthCheckResponse) {
|
|
option(google.api.http) = {
|
|
get: "/cluster/v1/health"
|
|
};
|
|
};
|
|
|
|
rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
|
|
} |