Skip to content

Commit

Permalink
feat:调整配置灰度发布的结构题命名 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored Nov 19, 2023
1 parent 40a5773 commit e0750ad
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 287 deletions.
3 changes: 2 additions & 1 deletion api/v1/config_manage/config_file.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ message ConfigFileRelease {
google.protobuf.StringValue format = 16;
google.protobuf.StringValue release_description = 17;
google.protobuf.UInt32Value type = 18;
MatchTerm gray_rule = 19;
// 配置灰度发布时需要匹配的客户端标签信息
repeated ClientLabel beta_labels = 19;
}

message ConfigFileReleaseHistory {
Expand Down
24 changes: 8 additions & 16 deletions api/v1/model/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,23 @@ message MatchString {

MatchStringType type = 1;
google.protobuf.StringValue value = 2;
ValueType value_type = 3 [json_name = "value_type"];
ValueType value_type = 3 [ json_name = "value_type" ];
}


message StringList {
repeated string values = 1;
}
message StringList { repeated string values = 1; }

// 汇总查询数据
message Summary {
// 服务总数
uint32 total_service_count = 1 [json_name = "total_service_count"];
uint32 total_service_count = 1 [ json_name = "total_service_count" ];
// 健康实例总数
uint32 total_health_instance_count = 2 [json_name = "total_health_instance_count"];
uint32 total_health_instance_count = 2
[ json_name = "total_health_instance_count" ];
// 实例总数
uint32 total_instance_count = 3 [json_name = "total_instance_count"];
uint32 total_instance_count = 3 [ json_name = "total_instance_count" ];
}

// 匹配规则
message MatchTerm {
google.protobuf.StringValue key = 1;
message ClientLabel {
string key = 1;
MatchString value = 2;
}

message Tag {
google.protobuf.StringValue key = 1;
google.protobuf.StringValue value = 2;
}
4 changes: 2 additions & 2 deletions api/v1/service_manage/contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ message ServiceContract {
string ctime = 10;
// 更新时间
string mtime = 11;
// 接口状态,Offline/Online
string status = 12;
}

message InterfaceDescriptor {
Expand All @@ -54,6 +56,4 @@ message InterfaceDescriptor {
string ctime = 7;
// 更新时间
string mtime = 8;
// 接口状态,Offline/Online
string status = 9;
}
Loading

0 comments on commit e0750ad

Please sign in to comment.