Skip to content

Commit

Permalink
feat: add endpoint for latest deployment status and quick health chec…
Browse files Browse the repository at this point in the history
…k endpoint for application (#1894)
  • Loading branch information
duonganhthu43 committed Aug 23, 2023
1 parent 6aa325a commit e0f4519
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dozer-types/protos/cloud.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,40 @@ service DozerCloud {

rpc OnLogMessage(LogMessageRequest) returns (stream LogMessage);
rpc OnStatusUpdate(StatusUpdateRequest) returns (stream StatusUpdate);

rpc latest_deployment_status(DeploymentHealthCheckRequest) returns (DeploymentHealthCheckResponse);
rpc app_health(AppHealthRequest) returns (AppHealthResponse);
}

service DozerPublic {
rpc company_metadata(CompanyRequest) returns (CompanyResponse);
}

message AppHealthRequest {
string app_id = 1;
}
message AppHealthResponse {
bool healthy = 1;
}
message DeploymentHealthCheckRequest {
string app_id = 1;
}
message DeploymentHealthCheckResponse {
bool all_healthy = 1;
repeated DeploymentHealth k8_deployments = 2;
uint32 latest_deployment = 3;
repeated string errors = 4;
}

message DeploymentHealth {
bool healthy = 1;
string name = 2;
string status = 3;
string created_at = 4;
int32 desired = 5;
int32 available = 6;
}

message AppConnectionRequest {
string app_id = 1;
oneof input {
Expand Down

0 comments on commit e0f4519

Please sign in to comment.