From 5240d33fa6e227e8e1930d6f4a049e324896b2bd Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Fri, 10 Oct 2025 14:49:23 +0900 Subject: [PATCH] more validation rules to avoid avoidable problems --- go/svc/alert/v1/service.pb.go | 396 +++++------------ go/svc/dashboard/v1/service.pb.go | 41 +- go/svc/ingest/v1/service.pb.go | 21 +- go/svc/localhost/v1/service.pb.go | 9 +- go/svc/organization/v1/service.pb.go | 48 +- go/svc/product/v1/service.pb.go | 7 +- go/svc/project/v1/service.pb.go | 33 +- go/types/v1/alert.pb.go | 555 ++++++++++++++---------- js/svc/alert/v1/service_pb.ts | 67 +-- js/svc/dashboard/v1/service_pb.ts | 3 +- js/svc/ingest/v1/service_pb.ts | 3 +- js/svc/localhost/v1/service_pb.ts | 3 +- js/svc/organization/v1/service_pb.ts | 2 +- js/svc/product/v1/service_pb.ts | 3 +- js/svc/project/v1/service_pb.ts | 3 +- js/types/v1/alert_pb.ts | 187 ++++---- package-lock.json | 64 +-- package.json | 2 +- proto/svc/alert/v1/service.proto | 59 +-- proto/svc/dashboard/v1/service.proto | 21 +- proto/svc/ingest/v1/service.proto | 13 +- proto/svc/localhost/v1/service.proto | 3 +- proto/svc/organization/v1/service.proto | 17 +- proto/svc/product/v1/service.proto | 3 +- proto/svc/project/v1/service.proto | 13 +- proto/types/v1/alert.proto | 47 +- script/install_codegen_deps | 2 +- 27 files changed, 776 insertions(+), 849 deletions(-) diff --git a/go/svc/alert/v1/service.pb.go b/go/svc/alert/v1/service.pb.go index b5e114b..3e88d6f 100644 --- a/go/svc/alert/v1/service.pb.go +++ b/go/svc/alert/v1/service.pb.go @@ -7,6 +7,7 @@ package alertv1 import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -825,12 +826,11 @@ func (x *GetAlertRuleResponse) GetAlertRule() *v1.AlertRule { } type UpdateAlertRuleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - EnvironmentId int64 `protobuf:"varint,101,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` - ProjectName string `protobuf:"bytes,102,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` - GroupName string `protobuf:"bytes,103,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Mutations []*UpdateAlertRuleRequest_Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + EnvironmentId int64 `protobuf:"varint,101,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` + ProjectName string `protobuf:"bytes,102,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` + GroupName string `protobuf:"bytes,103,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + Spec *v1.AlertRuleSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -886,16 +886,9 @@ func (x *UpdateAlertRuleRequest) GetGroupName() string { return "" } -func (x *UpdateAlertRuleRequest) GetName() string { +func (x *UpdateAlertRuleRequest) GetSpec() *v1.AlertRuleSpec { if x != nil { - return x.Name - } - return "" -} - -func (x *UpdateAlertRuleRequest) GetMutations() []*UpdateAlertRuleRequest_Mutation { - if x != nil { - return x.Mutations + return x.Spec } return nil } @@ -1220,152 +1213,6 @@ func (x *ListAlertGroupResponse_ListItem) GetAlertGroup() *v1.AlertGroup { return nil } -type UpdateAlertRuleRequest_Mutation struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Do: - // - // *UpdateAlertRuleRequest_Mutation_SetName - // *UpdateAlertRuleRequest_Mutation_SetExpr - // *UpdateAlertRuleRequest_Mutation_SetLabels - // *UpdateAlertRuleRequest_Mutation_SetAnnotations - // *UpdateAlertRuleRequest_Mutation_SetFor - // *UpdateAlertRuleRequest_Mutation_SetKeepFiringFor - Do isUpdateAlertRuleRequest_Mutation_Do `protobuf_oneof:"do"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateAlertRuleRequest_Mutation) Reset() { - *x = UpdateAlertRuleRequest_Mutation{} - mi := &file_svc_alert_v1_service_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateAlertRuleRequest_Mutation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateAlertRuleRequest_Mutation) ProtoMessage() {} - -func (x *UpdateAlertRuleRequest_Mutation) ProtoReflect() protoreflect.Message { - mi := &file_svc_alert_v1_service_proto_msgTypes[21] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateAlertRuleRequest_Mutation.ProtoReflect.Descriptor instead. -func (*UpdateAlertRuleRequest_Mutation) Descriptor() ([]byte, []int) { - return file_svc_alert_v1_service_proto_rawDescGZIP(), []int{14, 0} -} - -func (x *UpdateAlertRuleRequest_Mutation) GetDo() isUpdateAlertRuleRequest_Mutation_Do { - if x != nil { - return x.Do - } - return nil -} - -func (x *UpdateAlertRuleRequest_Mutation) GetSetName() string { - if x != nil { - if x, ok := x.Do.(*UpdateAlertRuleRequest_Mutation_SetName); ok { - return x.SetName - } - } - return "" -} - -func (x *UpdateAlertRuleRequest_Mutation) GetSetExpr() *v1.Query { - if x != nil { - if x, ok := x.Do.(*UpdateAlertRuleRequest_Mutation_SetExpr); ok { - return x.SetExpr - } - } - return nil -} - -func (x *UpdateAlertRuleRequest_Mutation) GetSetLabels() *v1.Obj { - if x != nil { - if x, ok := x.Do.(*UpdateAlertRuleRequest_Mutation_SetLabels); ok { - return x.SetLabels - } - } - return nil -} - -func (x *UpdateAlertRuleRequest_Mutation) GetSetAnnotations() *v1.Obj { - if x != nil { - if x, ok := x.Do.(*UpdateAlertRuleRequest_Mutation_SetAnnotations); ok { - return x.SetAnnotations - } - } - return nil -} - -func (x *UpdateAlertRuleRequest_Mutation) GetSetFor() *durationpb.Duration { - if x != nil { - if x, ok := x.Do.(*UpdateAlertRuleRequest_Mutation_SetFor); ok { - return x.SetFor - } - } - return nil -} - -func (x *UpdateAlertRuleRequest_Mutation) GetSetKeepFiringFor() *durationpb.Duration { - if x != nil { - if x, ok := x.Do.(*UpdateAlertRuleRequest_Mutation_SetKeepFiringFor); ok { - return x.SetKeepFiringFor - } - } - return nil -} - -type isUpdateAlertRuleRequest_Mutation_Do interface { - isUpdateAlertRuleRequest_Mutation_Do() -} - -type UpdateAlertRuleRequest_Mutation_SetName struct { - SetName string `protobuf:"bytes,1,opt,name=set_name,json=setName,proto3,oneof"` -} - -type UpdateAlertRuleRequest_Mutation_SetExpr struct { - SetExpr *v1.Query `protobuf:"bytes,2,opt,name=set_expr,json=setExpr,proto3,oneof"` -} - -type UpdateAlertRuleRequest_Mutation_SetLabels struct { - SetLabels *v1.Obj `protobuf:"bytes,3,opt,name=set_labels,json=setLabels,proto3,oneof"` -} - -type UpdateAlertRuleRequest_Mutation_SetAnnotations struct { - SetAnnotations *v1.Obj `protobuf:"bytes,4,opt,name=set_annotations,json=setAnnotations,proto3,oneof"` -} - -type UpdateAlertRuleRequest_Mutation_SetFor struct { - SetFor *durationpb.Duration `protobuf:"bytes,51,opt,name=set_for,json=setFor,proto3,oneof"` -} - -type UpdateAlertRuleRequest_Mutation_SetKeepFiringFor struct { - SetKeepFiringFor *durationpb.Duration `protobuf:"bytes,52,opt,name=set_keep_firing_for,json=setKeepFiringFor,proto3,oneof"` -} - -func (*UpdateAlertRuleRequest_Mutation_SetName) isUpdateAlertRuleRequest_Mutation_Do() {} - -func (*UpdateAlertRuleRequest_Mutation_SetExpr) isUpdateAlertRuleRequest_Mutation_Do() {} - -func (*UpdateAlertRuleRequest_Mutation_SetLabels) isUpdateAlertRuleRequest_Mutation_Do() {} - -func (*UpdateAlertRuleRequest_Mutation_SetAnnotations) isUpdateAlertRuleRequest_Mutation_Do() {} - -func (*UpdateAlertRuleRequest_Mutation_SetFor) isUpdateAlertRuleRequest_Mutation_Do() {} - -func (*UpdateAlertRuleRequest_Mutation_SetKeepFiringFor) isUpdateAlertRuleRequest_Mutation_Do() {} - type ListAlertRuleResponse_ListItem struct { state protoimpl.MessageState `protogen:"open.v1"` AlertRule *v1.AlertRule `protobuf:"bytes,1,opt,name=alert_rule,json=alertRule,proto3" json:"alert_rule,omitempty"` @@ -1375,7 +1222,7 @@ type ListAlertRuleResponse_ListItem struct { func (x *ListAlertRuleResponse_ListItem) Reset() { *x = ListAlertRuleResponse_ListItem{} - mi := &file_svc_alert_v1_service_proto_msgTypes[22] + mi := &file_svc_alert_v1_service_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1387,7 +1234,7 @@ func (x *ListAlertRuleResponse_ListItem) String() string { func (*ListAlertRuleResponse_ListItem) ProtoMessage() {} func (x *ListAlertRuleResponse_ListItem) ProtoReflect() protoreflect.Message { - mi := &file_svc_alert_v1_service_proto_msgTypes[22] + mi := &file_svc_alert_v1_service_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1414,37 +1261,37 @@ var File_svc_alert_v1_service_proto protoreflect.FileDescriptor const file_svc_alert_v1_service_proto_rawDesc = "" + "\n" + - "\x1asvc/alert/v1/service.proto\x12\fsvc.alert.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14types/v1/alert.proto\x1a\x15types/v1/cursor.proto\x1a\x14types/v1/query.proto\x1a\x14types/v1/types.proto\"\x91\x01\n" + + "\x1asvc/alert/v1/service.proto\x12\fsvc.alert.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14types/v1/alert.proto\x1a\x15types/v1/cursor.proto\x1a\x14types/v1/query.proto\x1a\x14types/v1/types.proto\"\xa1\x01\n" + "\x17CreateAlertGroupRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12,\n" + - "\x04spec\x18\x01 \x01(\v2\x18.types.v1.AlertGroupSpecR\x04spec\"Q\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x124\n" + + "\x04spec\x18\x01 \x01(\v2\x18.types.v1.AlertGroupSpecB\x06\xbaH\x03\xc8\x01\x01R\x04spec\"Q\n" + "\x18CreateAlertGroupResponse\x125\n" + "\valert_group\x18\x01 \x01(\v2\x14.types.v1.AlertGroupR\n" + - "alertGroup\"t\n" + + "alertGroup\"\x84\x01\n" + "\x14GetAlertGroupRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"N\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\"N\n" + "\x15GetAlertGroupResponse\x125\n" + "\valert_group\x18\x01 \x01(\v2\x14.types.v1.AlertGroupR\n" + - "alertGroup\"\xa5\x01\n" + + "alertGroup\"\xbd\x01\n" + "\x17UpdateAlertGroupRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12,\n" + - "\x04spec\x18\x02 \x01(\v2\x18.types.v1.AlertGroupSpecR\x04spec\"Q\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\x124\n" + + "\x04spec\x18\x02 \x01(\v2\x18.types.v1.AlertGroupSpecB\x06\xbaH\x03\xc8\x01\x01R\x04spec\"Q\n" + "\x18UpdateAlertGroupResponse\x125\n" + "\valert_group\x18\x01 \x01(\v2\x14.types.v1.AlertGroupR\n" + - "alertGroup\"w\n" + + "alertGroup\"\x87\x01\n" + "\x17DeleteAlertGroupRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"\x1a\n" + - "\x18DeleteAlertGroupResponse\"\xa1\x01\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\"\x1a\n" + + "\x18DeleteAlertGroupResponse\"\xa9\x01\n" + "\x15ListAlertGroupRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12(\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12(\n" + "\x06cursor\x18\x02 \x01(\v2\x10.types.v1.CursorR\x06cursor\x12\x14\n" + "\x05limit\x18\x03 \x01(\x05R\x05limit\"\xc7\x01\n" + "\x16ListAlertGroupResponse\x12$\n" + @@ -1452,61 +1299,51 @@ const file_svc_alert_v1_service_proto_rawDesc = "" + "\x05items\x18\xc8\x01 \x03(\v2-.svc.alert.v1.ListAlertGroupResponse.ListItemR\x05items\x1aA\n" + "\bListItem\x125\n" + "\valert_group\x18\x02 \x01(\v2\x14.types.v1.AlertGroupR\n" + - "alertGroup\"\x82\x03\n" + + "alertGroup\"\xa2\x03\n" + "\x16CreateAlertRuleRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x1d\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12%\n" + "\n" + - "group_name\x18g \x01(\tR\tgroupName\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12#\n" + - "\x04expr\x18\x02 \x01(\v2\x0f.types.v1.QueryR\x04expr\x12%\n" + + "group_name\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\tgroupName\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\x12+\n" + + "\x04expr\x18\x02 \x01(\v2\x0f.types.v1.QueryB\x06\xbaH\x03\xc8\x01\x01R\x04expr\x12%\n" + "\x06labels\x18\x03 \x01(\v2\r.types.v1.ObjR\x06labels\x12/\n" + "\vannotations\x18\x04 \x01(\v2\r.types.v1.ObjR\vannotations\x12+\n" + "\x03for\x183 \x01(\v2\x19.google.protobuf.DurationR\x03for\x12A\n" + "\x0fkeep_firing_for\x184 \x01(\v2\x19.google.protobuf.DurationR\rkeepFiringFor\"M\n" + "\x17CreateAlertRuleResponse\x122\n" + "\n" + - "alert_rule\x18\x01 \x01(\v2\x13.types.v1.AlertRuleR\talertRule\"\x92\x01\n" + + "alert_rule\x18\x01 \x01(\v2\x13.types.v1.AlertRuleR\talertRule\"\xaa\x01\n" + "\x13GetAlertRuleRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x1d\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12%\n" + "\n" + - "group_name\x18g \x01(\tR\tgroupName\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"J\n" + + "group_name\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\tgroupName\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\"J\n" + "\x14GetAlertRuleResponse\x122\n" + "\n" + - "alert_rule\x18\x01 \x01(\v2\x13.types.v1.AlertRuleR\talertRule\"\xac\x04\n" + + "alert_rule\x18\x01 \x01(\v2\x13.types.v1.AlertRuleR\talertRule\"\xb6\x01\n" + "\x16UpdateAlertRuleRequest\x12%\n" + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + "\fproject_name\x18f \x01(\tR\vprojectName\x12\x1d\n" + "\n" + - "group_name\x18g \x01(\tR\tgroupName\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12K\n" + - "\tmutations\x18\x02 \x03(\v2-.svc.alert.v1.UpdateAlertRuleRequest.MutationR\tmutations\x1a\xc7\x02\n" + - "\bMutation\x12\x1b\n" + - "\bset_name\x18\x01 \x01(\tH\x00R\asetName\x12,\n" + - "\bset_expr\x18\x02 \x01(\v2\x0f.types.v1.QueryH\x00R\asetExpr\x12.\n" + - "\n" + - "set_labels\x18\x03 \x01(\v2\r.types.v1.ObjH\x00R\tsetLabels\x128\n" + - "\x0fset_annotations\x18\x04 \x01(\v2\r.types.v1.ObjH\x00R\x0esetAnnotations\x124\n" + - "\aset_for\x183 \x01(\v2\x19.google.protobuf.DurationH\x00R\x06setFor\x12J\n" + - "\x13set_keep_firing_for\x184 \x01(\v2\x19.google.protobuf.DurationH\x00R\x10setKeepFiringForB\x04\n" + - "\x02do\"M\n" + + "group_name\x18g \x01(\tR\tgroupName\x123\n" + + "\x04spec\x18\x01 \x01(\v2\x17.types.v1.AlertRuleSpecB\x06\xbaH\x03\xc8\x01\x01R\x04spec\"M\n" + "\x17UpdateAlertRuleResponse\x122\n" + "\n" + - "alert_rule\x18\x01 \x01(\v2\x13.types.v1.AlertRuleR\talertRule\"\x95\x01\n" + + "alert_rule\x18\x01 \x01(\v2\x13.types.v1.AlertRuleR\talertRule\"\xad\x01\n" + "\x16DeleteAlertRuleRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x1d\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12%\n" + "\n" + - "group_name\x18g \x01(\tR\tgroupName\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"\x19\n" + - "\x17DeleteAlertRuleResponse\"\xbf\x01\n" + + "group_name\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\tgroupName\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\"\x19\n" + + "\x17DeleteAlertRuleResponse\"\xcf\x01\n" + "\x14ListAlertRuleRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x1d\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12%\n" + "\n" + - "group_name\x18g \x01(\tR\tgroupName\x12(\n" + + "group_name\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\tgroupName\x12(\n" + "\x06cursor\x18\x02 \x01(\v2\x10.types.v1.CursorR\x06cursor\x12\x14\n" + "\x05limit\x18\x03 \x01(\x05R\x05limit\"\xc2\x01\n" + "\x15ListAlertRuleResponse\x12$\n" + @@ -1540,7 +1377,7 @@ func file_svc_alert_v1_service_proto_rawDescGZIP() []byte { return file_svc_alert_v1_service_proto_rawDescData } -var file_svc_alert_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23) +var file_svc_alert_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_svc_alert_v1_service_proto_goTypes = []any{ (*CreateAlertGroupRequest)(nil), // 0: svc.alert.v1.CreateAlertGroupRequest (*CreateAlertGroupResponse)(nil), // 1: svc.alert.v1.CreateAlertGroupResponse @@ -1563,69 +1400,64 @@ var file_svc_alert_v1_service_proto_goTypes = []any{ (*ListAlertRuleRequest)(nil), // 18: svc.alert.v1.ListAlertRuleRequest (*ListAlertRuleResponse)(nil), // 19: svc.alert.v1.ListAlertRuleResponse (*ListAlertGroupResponse_ListItem)(nil), // 20: svc.alert.v1.ListAlertGroupResponse.ListItem - (*UpdateAlertRuleRequest_Mutation)(nil), // 21: svc.alert.v1.UpdateAlertRuleRequest.Mutation - (*ListAlertRuleResponse_ListItem)(nil), // 22: svc.alert.v1.ListAlertRuleResponse.ListItem - (*v1.AlertGroupSpec)(nil), // 23: types.v1.AlertGroupSpec - (*v1.AlertGroup)(nil), // 24: types.v1.AlertGroup - (*v1.Cursor)(nil), // 25: types.v1.Cursor - (*v1.Query)(nil), // 26: types.v1.Query - (*v1.Obj)(nil), // 27: types.v1.Obj - (*durationpb.Duration)(nil), // 28: google.protobuf.Duration - (*v1.AlertRule)(nil), // 29: types.v1.AlertRule + (*ListAlertRuleResponse_ListItem)(nil), // 21: svc.alert.v1.ListAlertRuleResponse.ListItem + (*v1.AlertGroupSpec)(nil), // 22: types.v1.AlertGroupSpec + (*v1.AlertGroup)(nil), // 23: types.v1.AlertGroup + (*v1.Cursor)(nil), // 24: types.v1.Cursor + (*v1.Query)(nil), // 25: types.v1.Query + (*v1.Obj)(nil), // 26: types.v1.Obj + (*durationpb.Duration)(nil), // 27: google.protobuf.Duration + (*v1.AlertRule)(nil), // 28: types.v1.AlertRule + (*v1.AlertRuleSpec)(nil), // 29: types.v1.AlertRuleSpec } var file_svc_alert_v1_service_proto_depIdxs = []int32{ - 23, // 0: svc.alert.v1.CreateAlertGroupRequest.spec:type_name -> types.v1.AlertGroupSpec - 24, // 1: svc.alert.v1.CreateAlertGroupResponse.alert_group:type_name -> types.v1.AlertGroup - 24, // 2: svc.alert.v1.GetAlertGroupResponse.alert_group:type_name -> types.v1.AlertGroup - 23, // 3: svc.alert.v1.UpdateAlertGroupRequest.spec:type_name -> types.v1.AlertGroupSpec - 24, // 4: svc.alert.v1.UpdateAlertGroupResponse.alert_group:type_name -> types.v1.AlertGroup - 25, // 5: svc.alert.v1.ListAlertGroupRequest.cursor:type_name -> types.v1.Cursor - 25, // 6: svc.alert.v1.ListAlertGroupResponse.next:type_name -> types.v1.Cursor + 22, // 0: svc.alert.v1.CreateAlertGroupRequest.spec:type_name -> types.v1.AlertGroupSpec + 23, // 1: svc.alert.v1.CreateAlertGroupResponse.alert_group:type_name -> types.v1.AlertGroup + 23, // 2: svc.alert.v1.GetAlertGroupResponse.alert_group:type_name -> types.v1.AlertGroup + 22, // 3: svc.alert.v1.UpdateAlertGroupRequest.spec:type_name -> types.v1.AlertGroupSpec + 23, // 4: svc.alert.v1.UpdateAlertGroupResponse.alert_group:type_name -> types.v1.AlertGroup + 24, // 5: svc.alert.v1.ListAlertGroupRequest.cursor:type_name -> types.v1.Cursor + 24, // 6: svc.alert.v1.ListAlertGroupResponse.next:type_name -> types.v1.Cursor 20, // 7: svc.alert.v1.ListAlertGroupResponse.items:type_name -> svc.alert.v1.ListAlertGroupResponse.ListItem - 26, // 8: svc.alert.v1.CreateAlertRuleRequest.expr:type_name -> types.v1.Query - 27, // 9: svc.alert.v1.CreateAlertRuleRequest.labels:type_name -> types.v1.Obj - 27, // 10: svc.alert.v1.CreateAlertRuleRequest.annotations:type_name -> types.v1.Obj - 28, // 11: svc.alert.v1.CreateAlertRuleRequest.for:type_name -> google.protobuf.Duration - 28, // 12: svc.alert.v1.CreateAlertRuleRequest.keep_firing_for:type_name -> google.protobuf.Duration - 29, // 13: svc.alert.v1.CreateAlertRuleResponse.alert_rule:type_name -> types.v1.AlertRule - 29, // 14: svc.alert.v1.GetAlertRuleResponse.alert_rule:type_name -> types.v1.AlertRule - 21, // 15: svc.alert.v1.UpdateAlertRuleRequest.mutations:type_name -> svc.alert.v1.UpdateAlertRuleRequest.Mutation - 29, // 16: svc.alert.v1.UpdateAlertRuleResponse.alert_rule:type_name -> types.v1.AlertRule - 25, // 17: svc.alert.v1.ListAlertRuleRequest.cursor:type_name -> types.v1.Cursor - 25, // 18: svc.alert.v1.ListAlertRuleResponse.next:type_name -> types.v1.Cursor - 22, // 19: svc.alert.v1.ListAlertRuleResponse.items:type_name -> svc.alert.v1.ListAlertRuleResponse.ListItem - 24, // 20: svc.alert.v1.ListAlertGroupResponse.ListItem.alert_group:type_name -> types.v1.AlertGroup - 26, // 21: svc.alert.v1.UpdateAlertRuleRequest.Mutation.set_expr:type_name -> types.v1.Query - 27, // 22: svc.alert.v1.UpdateAlertRuleRequest.Mutation.set_labels:type_name -> types.v1.Obj - 27, // 23: svc.alert.v1.UpdateAlertRuleRequest.Mutation.set_annotations:type_name -> types.v1.Obj - 28, // 24: svc.alert.v1.UpdateAlertRuleRequest.Mutation.set_for:type_name -> google.protobuf.Duration - 28, // 25: svc.alert.v1.UpdateAlertRuleRequest.Mutation.set_keep_firing_for:type_name -> google.protobuf.Duration - 29, // 26: svc.alert.v1.ListAlertRuleResponse.ListItem.alert_rule:type_name -> types.v1.AlertRule - 0, // 27: svc.alert.v1.AlertService.CreateAlertGroup:input_type -> svc.alert.v1.CreateAlertGroupRequest - 2, // 28: svc.alert.v1.AlertService.GetAlertGroup:input_type -> svc.alert.v1.GetAlertGroupRequest - 4, // 29: svc.alert.v1.AlertService.UpdateAlertGroup:input_type -> svc.alert.v1.UpdateAlertGroupRequest - 6, // 30: svc.alert.v1.AlertService.DeleteAlertGroup:input_type -> svc.alert.v1.DeleteAlertGroupRequest - 8, // 31: svc.alert.v1.AlertService.ListAlertGroup:input_type -> svc.alert.v1.ListAlertGroupRequest - 10, // 32: svc.alert.v1.AlertService.CreateAlertRule:input_type -> svc.alert.v1.CreateAlertRuleRequest - 12, // 33: svc.alert.v1.AlertService.GetAlertRule:input_type -> svc.alert.v1.GetAlertRuleRequest - 14, // 34: svc.alert.v1.AlertService.UpdateAlertRule:input_type -> svc.alert.v1.UpdateAlertRuleRequest - 16, // 35: svc.alert.v1.AlertService.DeleteAlertRule:input_type -> svc.alert.v1.DeleteAlertRuleRequest - 18, // 36: svc.alert.v1.AlertService.ListAlertRule:input_type -> svc.alert.v1.ListAlertRuleRequest - 1, // 37: svc.alert.v1.AlertService.CreateAlertGroup:output_type -> svc.alert.v1.CreateAlertGroupResponse - 3, // 38: svc.alert.v1.AlertService.GetAlertGroup:output_type -> svc.alert.v1.GetAlertGroupResponse - 5, // 39: svc.alert.v1.AlertService.UpdateAlertGroup:output_type -> svc.alert.v1.UpdateAlertGroupResponse - 7, // 40: svc.alert.v1.AlertService.DeleteAlertGroup:output_type -> svc.alert.v1.DeleteAlertGroupResponse - 9, // 41: svc.alert.v1.AlertService.ListAlertGroup:output_type -> svc.alert.v1.ListAlertGroupResponse - 11, // 42: svc.alert.v1.AlertService.CreateAlertRule:output_type -> svc.alert.v1.CreateAlertRuleResponse - 13, // 43: svc.alert.v1.AlertService.GetAlertRule:output_type -> svc.alert.v1.GetAlertRuleResponse - 15, // 44: svc.alert.v1.AlertService.UpdateAlertRule:output_type -> svc.alert.v1.UpdateAlertRuleResponse - 17, // 45: svc.alert.v1.AlertService.DeleteAlertRule:output_type -> svc.alert.v1.DeleteAlertRuleResponse - 19, // 46: svc.alert.v1.AlertService.ListAlertRule:output_type -> svc.alert.v1.ListAlertRuleResponse - 37, // [37:47] is the sub-list for method output_type - 27, // [27:37] is the sub-list for method input_type - 27, // [27:27] is the sub-list for extension type_name - 27, // [27:27] is the sub-list for extension extendee - 0, // [0:27] is the sub-list for field type_name + 25, // 8: svc.alert.v1.CreateAlertRuleRequest.expr:type_name -> types.v1.Query + 26, // 9: svc.alert.v1.CreateAlertRuleRequest.labels:type_name -> types.v1.Obj + 26, // 10: svc.alert.v1.CreateAlertRuleRequest.annotations:type_name -> types.v1.Obj + 27, // 11: svc.alert.v1.CreateAlertRuleRequest.for:type_name -> google.protobuf.Duration + 27, // 12: svc.alert.v1.CreateAlertRuleRequest.keep_firing_for:type_name -> google.protobuf.Duration + 28, // 13: svc.alert.v1.CreateAlertRuleResponse.alert_rule:type_name -> types.v1.AlertRule + 28, // 14: svc.alert.v1.GetAlertRuleResponse.alert_rule:type_name -> types.v1.AlertRule + 29, // 15: svc.alert.v1.UpdateAlertRuleRequest.spec:type_name -> types.v1.AlertRuleSpec + 28, // 16: svc.alert.v1.UpdateAlertRuleResponse.alert_rule:type_name -> types.v1.AlertRule + 24, // 17: svc.alert.v1.ListAlertRuleRequest.cursor:type_name -> types.v1.Cursor + 24, // 18: svc.alert.v1.ListAlertRuleResponse.next:type_name -> types.v1.Cursor + 21, // 19: svc.alert.v1.ListAlertRuleResponse.items:type_name -> svc.alert.v1.ListAlertRuleResponse.ListItem + 23, // 20: svc.alert.v1.ListAlertGroupResponse.ListItem.alert_group:type_name -> types.v1.AlertGroup + 28, // 21: svc.alert.v1.ListAlertRuleResponse.ListItem.alert_rule:type_name -> types.v1.AlertRule + 0, // 22: svc.alert.v1.AlertService.CreateAlertGroup:input_type -> svc.alert.v1.CreateAlertGroupRequest + 2, // 23: svc.alert.v1.AlertService.GetAlertGroup:input_type -> svc.alert.v1.GetAlertGroupRequest + 4, // 24: svc.alert.v1.AlertService.UpdateAlertGroup:input_type -> svc.alert.v1.UpdateAlertGroupRequest + 6, // 25: svc.alert.v1.AlertService.DeleteAlertGroup:input_type -> svc.alert.v1.DeleteAlertGroupRequest + 8, // 26: svc.alert.v1.AlertService.ListAlertGroup:input_type -> svc.alert.v1.ListAlertGroupRequest + 10, // 27: svc.alert.v1.AlertService.CreateAlertRule:input_type -> svc.alert.v1.CreateAlertRuleRequest + 12, // 28: svc.alert.v1.AlertService.GetAlertRule:input_type -> svc.alert.v1.GetAlertRuleRequest + 14, // 29: svc.alert.v1.AlertService.UpdateAlertRule:input_type -> svc.alert.v1.UpdateAlertRuleRequest + 16, // 30: svc.alert.v1.AlertService.DeleteAlertRule:input_type -> svc.alert.v1.DeleteAlertRuleRequest + 18, // 31: svc.alert.v1.AlertService.ListAlertRule:input_type -> svc.alert.v1.ListAlertRuleRequest + 1, // 32: svc.alert.v1.AlertService.CreateAlertGroup:output_type -> svc.alert.v1.CreateAlertGroupResponse + 3, // 33: svc.alert.v1.AlertService.GetAlertGroup:output_type -> svc.alert.v1.GetAlertGroupResponse + 5, // 34: svc.alert.v1.AlertService.UpdateAlertGroup:output_type -> svc.alert.v1.UpdateAlertGroupResponse + 7, // 35: svc.alert.v1.AlertService.DeleteAlertGroup:output_type -> svc.alert.v1.DeleteAlertGroupResponse + 9, // 36: svc.alert.v1.AlertService.ListAlertGroup:output_type -> svc.alert.v1.ListAlertGroupResponse + 11, // 37: svc.alert.v1.AlertService.CreateAlertRule:output_type -> svc.alert.v1.CreateAlertRuleResponse + 13, // 38: svc.alert.v1.AlertService.GetAlertRule:output_type -> svc.alert.v1.GetAlertRuleResponse + 15, // 39: svc.alert.v1.AlertService.UpdateAlertRule:output_type -> svc.alert.v1.UpdateAlertRuleResponse + 17, // 40: svc.alert.v1.AlertService.DeleteAlertRule:output_type -> svc.alert.v1.DeleteAlertRuleResponse + 19, // 41: svc.alert.v1.AlertService.ListAlertRule:output_type -> svc.alert.v1.ListAlertRuleResponse + 32, // [32:42] is the sub-list for method output_type + 22, // [22:32] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name } func init() { file_svc_alert_v1_service_proto_init() } @@ -1633,21 +1465,13 @@ func file_svc_alert_v1_service_proto_init() { if File_svc_alert_v1_service_proto != nil { return } - file_svc_alert_v1_service_proto_msgTypes[21].OneofWrappers = []any{ - (*UpdateAlertRuleRequest_Mutation_SetName)(nil), - (*UpdateAlertRuleRequest_Mutation_SetExpr)(nil), - (*UpdateAlertRuleRequest_Mutation_SetLabels)(nil), - (*UpdateAlertRuleRequest_Mutation_SetAnnotations)(nil), - (*UpdateAlertRuleRequest_Mutation_SetFor)(nil), - (*UpdateAlertRuleRequest_Mutation_SetKeepFiringFor)(nil), - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_alert_v1_service_proto_rawDesc), len(file_svc_alert_v1_service_proto_rawDesc)), NumEnums: 0, - NumMessages: 23, + NumMessages: 22, NumExtensions: 0, NumServices: 1, }, diff --git a/go/svc/dashboard/v1/service.pb.go b/go/svc/dashboard/v1/service.pb.go index ae6c3a9..4f3eb75 100644 --- a/go/svc/dashboard/v1/service.pb.go +++ b/go/svc/dashboard/v1/service.pb.go @@ -7,6 +7,7 @@ package dashboardv1 import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -614,34 +615,34 @@ var File_svc_dashboard_v1_service_proto protoreflect.FileDescriptor const file_svc_dashboard_v1_service_proto_rawDesc = "" + "\n" + - "\x1esvc/dashboard/v1/service.proto\x12\x10svc.dashboard.v1\x1a\x15types/v1/cursor.proto\x1a\x18types/v1/dashboard.proto\"\x8f\x01\n" + + "\x1esvc/dashboard/v1/service.proto\x12\x10svc.dashboard.v1\x1a\x1bbuf/validate/validate.proto\x1a\x15types/v1/cursor.proto\x1a\x18types/v1/dashboard.proto\"\x9f\x01\n" + "\x16CreateDashboardRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12+\n" + - "\x04spec\x18\x01 \x01(\v2\x17.types.v1.DashboardSpecR\x04spec\"L\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x123\n" + + "\x04spec\x18\x01 \x01(\v2\x17.types.v1.DashboardSpecB\x06\xbaH\x03\xc8\x01\x01R\x04spec\"L\n" + "\x17CreateDashboardResponse\x121\n" + - "\tdashboard\x18\x01 \x01(\v2\x13.types.v1.DashboardR\tdashboard\"o\n" + + "\tdashboard\x18\x01 \x01(\v2\x13.types.v1.DashboardR\tdashboard\"\x7f\n" + "\x13GetDashboardRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\"I\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12\x16\n" + + "\x02id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x02id\"I\n" + "\x14GetDashboardResponse\x121\n" + - "\tdashboard\x18\x01 \x01(\v2\x13.types.v1.DashboardR\tdashboard\"\x9f\x01\n" + + "\tdashboard\x18\x01 \x01(\v2\x13.types.v1.DashboardR\tdashboard\"\xb7\x01\n" + "\x16UpdateDashboardRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12+\n" + - "\x04spec\x18\x02 \x01(\v2\x17.types.v1.DashboardSpecR\x04spec\"L\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12\x16\n" + + "\x02id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x02id\x123\n" + + "\x04spec\x18\x02 \x01(\v2\x17.types.v1.DashboardSpecB\x06\xbaH\x03\xc8\x01\x01R\x04spec\"L\n" + "\x17UpdateDashboardResponse\x121\n" + - "\tdashboard\x18\x01 \x01(\v2\x13.types.v1.DashboardR\tdashboard\"r\n" + + "\tdashboard\x18\x01 \x01(\v2\x13.types.v1.DashboardR\tdashboard\"\x82\x01\n" + "\x16DeleteDashboardRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\"\x19\n" + - "\x17DeleteDashboardResponse\"\xc3\x01\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12\x16\n" + + "\x02id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x02id\"\x19\n" + + "\x17DeleteDashboardResponse\"\xcb\x01\n" + "\x14ListDashboardRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12!\n" + - "\fproject_name\x18f \x01(\tR\vprojectName\x12(\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + + "\fproject_name\x18f \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vprojectName\x12(\n" + "\x06cursor\x18\x01 \x01(\v2\x10.types.v1.CursorR\x06cursor\x12\x14\n" + "\x05limit\x18\x02 \x01(\x05R\x05limit\x12!\n" + "\fdashboard_id\x18\x03 \x01(\x03R\vdashboardId\"\xc4\x01\n" + diff --git a/go/svc/ingest/v1/service.pb.go b/go/svc/ingest/v1/service.pb.go index e3acf55..052be6b 100644 --- a/go/svc/ingest/v1/service.pb.go +++ b/go/svc/ingest/v1/service.pb.go @@ -7,6 +7,7 @@ package ingestv1 import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -220,16 +221,16 @@ var File_svc_ingest_v1_service_proto protoreflect.FileDescriptor const file_svc_ingest_v1_service_proto_rawDesc = "" + "\n" + - "\x1bsvc/ingest/v1/service.proto\x12\rsvc.ingest.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1btypes/v1/otel_logging.proto\x1a\x1ctypes/v1/otel_resource.proto\x1a\x19types/v1/otel_scope.proto\"\x89\x01\n" + - "\rIngestRequest\x12.\n" + - "\bresource\x18\x01 \x01(\v2\x12.types.v1.ResourceR\bresource\x12%\n" + - "\x05scope\x18\x02 \x01(\v2\x0f.types.v1.ScopeR\x05scope\x12!\n" + - "\x04logs\x18\x03 \x03(\v2\r.types.v1.LogR\x04logs\"\x10\n" + - "\x0eIngestResponse\"\x8f\x01\n" + - "\x13IngestStreamRequest\x12.\n" + - "\bresource\x18\x01 \x01(\v2\x12.types.v1.ResourceR\bresource\x12%\n" + - "\x05scope\x18\x02 \x01(\v2\x0f.types.v1.ScopeR\x05scope\x12!\n" + - "\x04logs\x18\x03 \x03(\v2\r.types.v1.LogR\x04logs\"\x16\n" + + "\x1bsvc/ingest/v1/service.proto\x12\rsvc.ingest.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1btypes/v1/otel_logging.proto\x1a\x1ctypes/v1/otel_resource.proto\x1a\x19types/v1/otel_scope.proto\"\xa1\x01\n" + + "\rIngestRequest\x126\n" + + "\bresource\x18\x01 \x01(\v2\x12.types.v1.ResourceB\x06\xbaH\x03\xc8\x01\x01R\bresource\x12-\n" + + "\x05scope\x18\x02 \x01(\v2\x0f.types.v1.ScopeB\x06\xbaH\x03\xc8\x01\x01R\x05scope\x12)\n" + + "\x04logs\x18\x03 \x03(\v2\r.types.v1.LogB\x06\xbaH\x03\xc8\x01\x01R\x04logs\"\x10\n" + + "\x0eIngestResponse\"\xa7\x01\n" + + "\x13IngestStreamRequest\x126\n" + + "\bresource\x18\x01 \x01(\v2\x12.types.v1.ResourceB\x06\xbaH\x03\xc8\x01\x01R\bresource\x12-\n" + + "\x05scope\x18\x02 \x01(\v2\x0f.types.v1.ScopeB\x06\xbaH\x03\xc8\x01\x01R\x05scope\x12)\n" + + "\x04logs\x18\x03 \x03(\v2\r.types.v1.LogB\x06\xbaH\x03\xc8\x01\x01R\x04logs\"\x16\n" + "\x14IngestStreamResponse2\xb1\x01\n" + "\rIngestService\x12E\n" + "\x06Ingest\x12\x1c.svc.ingest.v1.IngestRequest\x1a\x1d.svc.ingest.v1.IngestResponse\x12Y\n" + diff --git a/go/svc/localhost/v1/service.pb.go b/go/svc/localhost/v1/service.pb.go index b219e21..0b89ecd 100644 --- a/go/svc/localhost/v1/service.pb.go +++ b/go/svc/localhost/v1/service.pb.go @@ -7,6 +7,7 @@ package localhostv1 import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -746,7 +747,7 @@ var File_svc_localhost_v1_service_proto protoreflect.FileDescriptor const file_svc_localhost_v1_service_proto_rawDesc = "" + "\n" + - "\x1esvc/localhost/v1/service.proto\x12\x10svc.localhost.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17types/v1/database.proto\x1a\x1ftypes/v1/localhost_config.proto\x1a\x13types/v1/meta.proto\x1a\x1btypes/v1/organization.proto\x1a\x14types/v1/types.proto\x1a\x13types/v1/user.proto\x1a\x16types/v1/version.proto\"\r\n" + + "\x1esvc/localhost/v1/service.proto\x12\x10svc.localhost.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17types/v1/database.proto\x1a\x1ftypes/v1/localhost_config.proto\x1a\x13types/v1/meta.proto\x1a\x1btypes/v1/organization.proto\x1a\x14types/v1/types.proto\x1a\x13types/v1/user.proto\x1a\x16types/v1/version.proto\"\r\n" + "\vPingRequest\"\xdb\x03\n" + "\fPingResponse\x128\n" + "\x0eclient_version\x18\x01 \x01(\v2\x11.types.v1.VersionR\rclientVersion\x12\"\n" + @@ -770,9 +771,9 @@ const file_svc_localhost_v1_service_proto_rawDesc = "" + "\x11DoRestartResponse\"\x12\n" + "\x10GetConfigRequest\"F\n" + "\x11GetConfigResponse\x121\n" + - "\x06config\x18\x01 \x01(\v2\x19.types.v1.LocalhostConfigR\x06config\"E\n" + - "\x10SetConfigRequest\x121\n" + - "\x06config\x18\x01 \x01(\v2\x19.types.v1.LocalhostConfigR\x06config\"\x13\n" + + "\x06config\x18\x01 \x01(\v2\x19.types.v1.LocalhostConfigR\x06config\"M\n" + + "\x10SetConfigRequest\x129\n" + + "\x06config\x18\x01 \x01(\v2\x19.types.v1.LocalhostConfigB\x06\xbaH\x03\xc8\x01\x01R\x06config\"\x13\n" + "\x11SetConfigResponse\"\x11\n" + "\x0fGetStatsRequest\"R\n" + "\x10GetStatsResponse\x12>\n" + diff --git a/go/svc/organization/v1/service.pb.go b/go/svc/organization/v1/service.pb.go index 8e737e3..38fedb4 100644 --- a/go/svc/organization/v1/service.pb.go +++ b/go/svc/organization/v1/service.pb.go @@ -1977,25 +1977,25 @@ var File_svc_organization_v1_service_proto protoreflect.FileDescriptor const file_svc_organization_v1_service_proto_rawDesc = "" + "\n" + - "!svc/organization/v1/service.proto\x12\x13svc.organization.v1\x1a\x1bbuf/validate/validate.proto\x1a\x15types/v1/cursor.proto\x1a\x1atypes/v1/environment.proto\x1a\x1btypes/v1/organization.proto\x1a\x1dtypes/v1/payment_method.proto\x1a\x16types/v1/product.proto\x1a\x1btypes/v1/subscription.proto\x1a\x13types/v1/user.proto\"\x9c\x02\n" + + "!svc/organization/v1/service.proto\x12\x13svc.organization.v1\x1a\x1bbuf/validate/validate.proto\x1a\x15types/v1/cursor.proto\x1a\x1atypes/v1/environment.proto\x1a\x1btypes/v1/organization.proto\x1a\x1dtypes/v1/payment_method.proto\x1a\x16types/v1/product.proto\x1a\x1btypes/v1/subscription.proto\x1a\x13types/v1/user.proto\"\xb3\x02\n" + "\x18CreateEnvironmentRequest\x12P\n" + "\x10environment_name\x18\x01 \x01(\tB%\xbaH\"r \x10\x03\x18'2\x1a^[a-zA-Z0-9][a-zA-Z0-9-]+$R\x0fenvironmentName\x12O\n" + - "\x06stripe\x18\xc9\x01 \x01(\v24.svc.organization.v1.CreateEnvironmentRequest.StripeH\x00R\x06stripe\x1aR\n" + - "\x06Stripe\x12-\n" + - "\x12confirmation_token\x18\x01 \x01(\tR\x11confirmationToken\x12\x19\n" + - "\bprice_id\x18\x02 \x01(\tR\apriceIdB\t\n" + - "\apayment\"\xf8\x01\n" + + "\x06stripe\x18\xc9\x01 \x01(\v24.svc.organization.v1.CreateEnvironmentRequest.StripeH\x00R\x06stripe\x1ab\n" + + "\x06Stripe\x125\n" + + "\x12confirmation_token\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x11confirmationToken\x12!\n" + + "\bprice_id\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\apriceIdB\x10\n" + + "\apayment\x12\x05\xbaH\x02\b\x01\"\xf8\x01\n" + "\x19CreateEnvironmentResponse\x127\n" + "\venvironment\x18\x01 \x01(\v2\x15.types.v1.EnvironmentR\venvironment\x12P\n" + "\x06stripe\x18\xc9\x01 \x01(\v25.svc.organization.v1.CreateEnvironmentResponse.StripeH\x00R\x06stripe\x1aE\n" + "\x06Stripe\x12\x16\n" + "\x06status\x18\x01 \x01(\tR\x06status\x12#\n" + "\rclient_secret\x18\x02 \x01(\tR\fclientSecretB\t\n" + - "\apayment\"E\n" + + "\apayment\"L\n" + "\x15GetEnvironmentRequest\x12\x10\n" + "\x02id\x18\x01 \x01(\x03H\x00R\x02id\x12\x14\n" + - "\x04name\x18\x02 \x01(\tH\x00R\x04nameB\x04\n" + - "\x02by\"~\n" + + "\x04name\x18\x02 \x01(\tH\x00R\x04nameB\v\n" + + "\x02by\x12\x05\xbaH\x02\b\x01\"~\n" + "\x16GetEnvironmentResponse\x127\n" + "\venvironment\x18\x01 \x01(\v2\x15.types.v1.EnvironmentR\venvironment\x12+\n" + "\aproduct\x18\x02 \x01(\v2\x11.types.v1.ProductR\aproduct\"X\n" + @@ -2015,16 +2015,16 @@ const file_svc_organization_v1_service_proto_rawDesc = "" + "\x04next\x18\x01 \x01(\v2\x10.types.v1.CursorR\x04next\x12D\n" + "\x05items\x18\x02 \x03(\v2..svc.organization.v1.ListUserResponse.ListItemR\x05items\x1a.\n" + "\bListItem\x12\"\n" + - "\x04user\x18\x01 \x01(\v2\x0e.types.v1.UserR\x04user\"2\n" + - "\x11InviteUserRequest\x12\x1d\n" + + "\x04user\x18\x01 \x01(\v2\x0e.types.v1.UserR\x04user\":\n" + + "\x11InviteUserRequest\x12%\n" + "\n" + - "user_email\x18\x01 \x01(\tR\tuserEmail\"J\n" + + "user_email\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\tuserEmail\"J\n" + "\x12InviteUserResponse\x124\n" + "\n" + "invitation\x18\x01 \x01(\v2\x14.types.v1.InvitationR\n" + - "invitation\":\n" + - "\x1bRevokeUserInvitationRequest\x12\x1b\n" + - "\tinvite_id\x18\x01 \x01(\x03R\binviteId\"T\n" + + "invitation\"B\n" + + "\x1bRevokeUserInvitationRequest\x12#\n" + + "\tinvite_id\x18\x01 \x01(\x03B\x06\xbaH\x03\xc8\x01\x01R\binviteId\"T\n" + "\x1cRevokeUserInvitationResponse\x124\n" + "\n" + "invitation\x18\x01 \x01(\v2\x14.types.v1.InvitationR\n" + @@ -2038,13 +2038,13 @@ const file_svc_organization_v1_service_proto_rawDesc = "" + "\bListItem\x124\n" + "\n" + "invitation\x18\x01 \x01(\v2\x14.types.v1.InvitationR\n" + - "invitation\"\xd6\x01\n" + + "invitation\"\xed\x01\n" + "\x1eCreateAddonSubscriptionRequest\x12U\n" + - "\x06stripe\x18\xc9\x01 \x01(\v2:.svc.organization.v1.CreateAddonSubscriptionRequest.StripeH\x00R\x06stripe\x1aR\n" + - "\x06Stripe\x12-\n" + - "\x12confirmation_token\x18\x01 \x01(\tR\x11confirmationToken\x12\x19\n" + - "\bprice_id\x18\x02 \x01(\tR\apriceIdB\t\n" + - "\apayment\"\xcb\x01\n" + + "\x06stripe\x18\xc9\x01 \x01(\v2:.svc.organization.v1.CreateAddonSubscriptionRequest.StripeH\x00R\x06stripe\x1ab\n" + + "\x06Stripe\x125\n" + + "\x12confirmation_token\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x11confirmationToken\x12!\n" + + "\bprice_id\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\apriceIdB\x10\n" + + "\apayment\x12\x05\xbaH\x02\b\x01\"\xcb\x01\n" + "\x1fCreateAddonSubscriptionResponse\x12V\n" + "\x06stripe\x18\xc9\x01 \x01(\v2;.svc.organization.v1.CreateAddonSubscriptionResponse.StripeH\x00R\x06stripe\x1aE\n" + "\x06Stripe\x12\x16\n" + @@ -2059,9 +2059,9 @@ const file_svc_organization_v1_service_proto_rawDesc = "" + "\x05items\x18\x02 \x03(\v2;.svc.organization.v1.ListAddonSubscriptionResponse.ListItemR\x05items\x1as\n" + "\bListItem\x12+\n" + "\aproduct\x18\x01 \x01(\v2\x11.types.v1.ProductR\aproduct\x12:\n" + - "\fsubscription\x18\x02 \x01(\v2\x16.types.v1.SubscriptionR\fsubscription\"\x85\x02\n" + - "\x1eRemoveAddonSubscriptionRequest\x12+\n" + - "\aproduct\x18\x01 \x01(\v2\x11.types.v1.ProductR\aproduct\x12d\n" + + "\fsubscription\x18\x02 \x01(\v2\x16.types.v1.SubscriptionR\fsubscription\"\x8d\x02\n" + + "\x1eRemoveAddonSubscriptionRequest\x123\n" + + "\aproduct\x18\x01 \x01(\v2\x11.types.v1.ProductB\x06\xbaH\x03\xc8\x01\x01R\aproduct\x12d\n" + "\rcancel_reason\x18\x02 \x01(\v2:.svc.organization.v1.RemoveAddonSubscriptionRequest.ReasonH\x00R\fcancelReason\x88\x01\x01\x1a>\n" + "\x06Reason\x12\x18\n" + "\acomment\x18\x01 \x01(\tR\acomment\x12\x1a\n" + diff --git a/go/svc/product/v1/service.pb.go b/go/svc/product/v1/service.pb.go index 3d11953..be875fc 100644 --- a/go/svc/product/v1/service.pb.go +++ b/go/svc/product/v1/service.pb.go @@ -7,6 +7,7 @@ package productv1 import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -303,9 +304,9 @@ var File_svc_product_v1_service_proto protoreflect.FileDescriptor const file_svc_product_v1_service_proto_rawDesc = "" + "\n" + - "\x1csvc/product/v1/service.proto\x12\x0esvc.product.v1\x1a\x15types/v1/cursor.proto\x1a\x14types/v1/price.proto\x1a\x16types/v1/product.proto\"0\n" + - "\x11GetProductRequest\x12\x1b\n" + - "\tstripe_id\x18\x01 \x01(\tR\bstripeId\"j\n" + + "\x1csvc/product/v1/service.proto\x12\x0esvc.product.v1\x1a\x1bbuf/validate/validate.proto\x1a\x15types/v1/cursor.proto\x1a\x14types/v1/price.proto\x1a\x16types/v1/product.proto\"8\n" + + "\x11GetProductRequest\x12#\n" + + "\tstripe_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\bstripeId\"j\n" + "\x12GetProductResponse\x12+\n" + "\aproduct\x18\x01 \x01(\v2\x11.types.v1.ProductR\aproduct\x12'\n" + "\x06prices\x18\x02 \x03(\v2\x0f.types.v1.PriceR\x06prices\"\xaf\x01\n" + diff --git a/go/svc/project/v1/service.pb.go b/go/svc/project/v1/service.pb.go index 4b6ca65..e60b081 100644 --- a/go/svc/project/v1/service.pb.go +++ b/go/svc/project/v1/service.pb.go @@ -7,6 +7,7 @@ package projectv1 import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -678,30 +679,30 @@ var File_svc_project_v1_service_proto protoreflect.FileDescriptor const file_svc_project_v1_service_proto_rawDesc = "" + "\n" + - "\x1csvc/project/v1/service.proto\x12\x0esvc.project.v1\x1a\x14types/v1/alert.proto\x1a\x15types/v1/cursor.proto\x1a\x18types/v1/dashboard.proto\x1a\x16types/v1/project.proto\"h\n" + + "\x1csvc/project/v1/service.proto\x12\x0esvc.project.v1\x1a\x1bbuf/validate/validate.proto\x1a\x14types/v1/alert.proto\x1a\x15types/v1/cursor.proto\x1a\x18types/v1/dashboard.proto\x1a\x16types/v1/project.proto\"p\n" + "\x14CreateProjectRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12)\n" + - "\x04spec\x18\x01 \x01(\v2\x15.types.v1.ProjectSpecR\x04spec\"D\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x121\n" + + "\x04spec\x18\x01 \x01(\v2\x15.types.v1.ProjectSpecB\x06\xbaH\x03\xc8\x01\x01R\x04spec\"D\n" + "\x15CreateProjectResponse\x12+\n" + - "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject\"N\n" + + "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject\"V\n" + "\x11GetProjectRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"\xaf\x01\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\"\xaf\x01\n" + "\x12GetProjectResponse\x12+\n" + "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject\x123\n" + "\n" + "dashboards\x18\x02 \x03(\v2\x13.types.v1.DashboardR\n" + "dashboards\x127\n" + - "\falert_groups\x18\x03 \x03(\v2\x14.types.v1.AlertGroupR\valertGroups\"|\n" + + "\falert_groups\x18\x03 \x03(\v2\x14.types.v1.AlertGroupR\valertGroups\"\x8c\x01\n" + "\x14UpdateProjectRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12)\n" + - "\x04spec\x18\x02 \x01(\v2\x15.types.v1.ProjectSpecR\x04spec\"D\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\x121\n" + + "\x04spec\x18\x02 \x01(\v2\x15.types.v1.ProjectSpecB\x06\xbaH\x03\xc8\x01\x01R\x04spec\"D\n" + "\x15UpdateProjectResponse\x12+\n" + - "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject\"Q\n" + + "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject\"Y\n" + "\x14DeleteProjectRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"\x17\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\"\x17\n" + "\x15DeleteProjectResponse\"{\n" + "\x12ListProjectRequest\x12%\n" + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12(\n" + @@ -711,10 +712,10 @@ const file_svc_project_v1_service_proto_rawDesc = "" + "\x04next\x18\x01 \x01(\v2\x10.types.v1.CursorR\x04next\x12B\n" + "\x05items\x18\x02 \x03(\v2,.svc.project.v1.ListProjectResponse.ListItemR\x05items\x1a7\n" + "\bListItem\x12+\n" + - "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject\"O\n" + + "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject\"W\n" + "\x12SyncProjectRequest\x12%\n" + - "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"B\n" + + "\x0eenvironment_id\x18e \x01(\x03R\renvironmentId\x12\x1a\n" + + "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\"B\n" + "\x13SyncProjectResponse\x12+\n" + "\aproject\x18\x01 \x01(\v2\x11.types.v1.ProjectR\aproject2\xaf\x04\n" + "\x0eProjectService\x12\\\n" + diff --git a/go/types/v1/alert.pb.go b/go/types/v1/alert.pb.go index b48cea4..70fa0fc 100644 --- a/go/types/v1/alert.pb.go +++ b/go/types/v1/alert.pb.go @@ -133,7 +133,7 @@ type AlertGroupSpec struct { Interval *durationpb.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` QueryOffset *durationpb.Duration `protobuf:"bytes,3,opt,name=query_offset,json=queryOffset,proto3" json:"query_offset,omitempty"` Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Rules []*AlertRule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` + Rules []*AlertRuleSpec `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` Labels *Obj `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -197,7 +197,7 @@ func (x *AlertGroupSpec) GetLimit() int32 { return 0 } -func (x *AlertGroupSpec) GetRules() []*AlertRule { +func (x *AlertGroupSpec) GetRules() []*AlertRuleSpec { if x != nil { return x.Rules } @@ -216,6 +216,7 @@ type AlertGroupStatus struct { CreatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Errors []string `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` + Rules []*AlertRuleStatus `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -271,14 +272,18 @@ func (x *AlertGroupStatus) GetErrors() []string { return nil } +func (x *AlertGroupStatus) GetRules() []*AlertRuleStatus { + if x != nil { + return x.Rules + } + return nil +} + type AlertRule struct { state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Expr *Query `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` - Labels *Obj `protobuf:"bytes,3,opt,name=labels,proto3" json:"labels,omitempty"` - Annotations *Obj `protobuf:"bytes,4,opt,name=annotations,proto3" json:"annotations,omitempty"` - For *durationpb.Duration `protobuf:"bytes,51,opt,name=for,proto3" json:"for,omitempty"` - KeepFiringFor *durationpb.Duration `protobuf:"bytes,52,opt,name=keep_firing_for,json=keepFiringFor,proto3" json:"keep_firing_for,omitempty"` + Meta *AlertRuleMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Spec *AlertRuleSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *AlertRuleStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -313,68 +318,48 @@ func (*AlertRule) Descriptor() ([]byte, []int) { return file_types_v1_alert_proto_rawDescGZIP(), []int{4} } -func (x *AlertRule) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *AlertRule) GetExpr() *Query { +func (x *AlertRule) GetMeta() *AlertRuleMeta { if x != nil { - return x.Expr - } - return nil -} - -func (x *AlertRule) GetLabels() *Obj { - if x != nil { - return x.Labels - } - return nil -} - -func (x *AlertRule) GetAnnotations() *Obj { - if x != nil { - return x.Annotations + return x.Meta } return nil } -func (x *AlertRule) GetFor() *durationpb.Duration { +func (x *AlertRule) GetSpec() *AlertRuleSpec { if x != nil { - return x.For + return x.Spec } return nil } -func (x *AlertRule) GetKeepFiringFor() *durationpb.Duration { +func (x *AlertRule) GetStatus() *AlertRuleStatus { if x != nil { - return x.KeepFiringFor + return x.Status } return nil } -type AlertUnknown struct { +type AlertRuleMeta struct { state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *AlertUnknown) Reset() { - *x = AlertUnknown{} +func (x *AlertRuleMeta) Reset() { + *x = AlertRuleMeta{} mi := &file_types_v1_alert_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AlertUnknown) String() string { +func (x *AlertRuleMeta) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AlertUnknown) ProtoMessage() {} +func (*AlertRuleMeta) ProtoMessage() {} -func (x *AlertUnknown) ProtoReflect() protoreflect.Message { +func (x *AlertRuleMeta) ProtoReflect() protoreflect.Message { mi := &file_types_v1_alert_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -386,31 +371,43 @@ func (x *AlertUnknown) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AlertUnknown.ProtoReflect.Descriptor instead. -func (*AlertUnknown) Descriptor() ([]byte, []int) { +// Deprecated: Use AlertRuleMeta.ProtoReflect.Descriptor instead. +func (*AlertRuleMeta) Descriptor() ([]byte, []int) { return file_types_v1_alert_proto_rawDescGZIP(), []int{5} } -type AlertOk struct { +func (x *AlertRuleMeta) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AlertRuleSpec struct { state protoimpl.MessageState `protogen:"open.v1"` + Expr *Query `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"` + Labels *Obj `protobuf:"bytes,2,opt,name=labels,proto3" json:"labels,omitempty"` + Annotations *Obj `protobuf:"bytes,3,opt,name=annotations,proto3" json:"annotations,omitempty"` + For *durationpb.Duration `protobuf:"bytes,41,opt,name=for,proto3" json:"for,omitempty"` + KeepFiringFor *durationpb.Duration `protobuf:"bytes,42,opt,name=keep_firing_for,json=keepFiringFor,proto3" json:"keep_firing_for,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *AlertOk) Reset() { - *x = AlertOk{} +func (x *AlertRuleSpec) Reset() { + *x = AlertRuleSpec{} mi := &file_types_v1_alert_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AlertOk) String() string { +func (x *AlertRuleSpec) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AlertOk) ProtoMessage() {} +func (*AlertRuleSpec) ProtoMessage() {} -func (x *AlertOk) ProtoReflect() protoreflect.Message { +func (x *AlertRuleSpec) ProtoReflect() protoreflect.Message { mi := &file_types_v1_alert_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -422,31 +419,75 @@ func (x *AlertOk) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AlertOk.ProtoReflect.Descriptor instead. -func (*AlertOk) Descriptor() ([]byte, []int) { +// Deprecated: Use AlertRuleSpec.ProtoReflect.Descriptor instead. +func (*AlertRuleSpec) Descriptor() ([]byte, []int) { return file_types_v1_alert_proto_rawDescGZIP(), []int{6} } -type AlertPending struct { - state protoimpl.MessageState `protogen:"open.v1"` +func (x *AlertRuleSpec) GetExpr() *Query { + if x != nil { + return x.Expr + } + return nil +} + +func (x *AlertRuleSpec) GetLabels() *Obj { + if x != nil { + return x.Labels + } + return nil +} + +func (x *AlertRuleSpec) GetAnnotations() *Obj { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *AlertRuleSpec) GetFor() *durationpb.Duration { + if x != nil { + return x.For + } + return nil +} + +func (x *AlertRuleSpec) GetKeepFiringFor() *durationpb.Duration { + if x != nil { + return x.KeepFiringFor + } + return nil +} + +type AlertRuleStatus struct { + state protoimpl.MessageState `protogen:"open.v1"` + TransitionedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=transitioned_at,json=transitionedAt,proto3" json:"transitioned_at,omitempty"` + LastFiringAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_firing_at,json=lastFiringAt,proto3" json:"last_firing_at,omitempty"` + // Types that are valid to be assigned to Status: + // + // *AlertRuleStatus_Unknown + // *AlertRuleStatus_Ok + // *AlertRuleStatus_Pending + // *AlertRuleStatus_Firing + Status isAlertRuleStatus_Status `protobuf_oneof:"status"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *AlertPending) Reset() { - *x = AlertPending{} +func (x *AlertRuleStatus) Reset() { + *x = AlertRuleStatus{} mi := &file_types_v1_alert_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AlertPending) String() string { +func (x *AlertRuleStatus) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AlertPending) ProtoMessage() {} +func (*AlertRuleStatus) ProtoMessage() {} -func (x *AlertPending) ProtoReflect() protoreflect.Message { +func (x *AlertRuleStatus) ProtoReflect() protoreflect.Message { mi := &file_types_v1_alert_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -458,32 +499,116 @@ func (x *AlertPending) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AlertPending.ProtoReflect.Descriptor instead. -func (*AlertPending) Descriptor() ([]byte, []int) { +// Deprecated: Use AlertRuleStatus.ProtoReflect.Descriptor instead. +func (*AlertRuleStatus) Descriptor() ([]byte, []int) { return file_types_v1_alert_proto_rawDescGZIP(), []int{7} } -type AlertFiring struct { +func (x *AlertRuleStatus) GetTransitionedAt() *timestamppb.Timestamp { + if x != nil { + return x.TransitionedAt + } + return nil +} + +func (x *AlertRuleStatus) GetLastFiringAt() *timestamppb.Timestamp { + if x != nil { + return x.LastFiringAt + } + return nil +} + +func (x *AlertRuleStatus) GetStatus() isAlertRuleStatus_Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *AlertRuleStatus) GetUnknown() *AlertUnknown { + if x != nil { + if x, ok := x.Status.(*AlertRuleStatus_Unknown); ok { + return x.Unknown + } + } + return nil +} + +func (x *AlertRuleStatus) GetOk() *AlertOk { + if x != nil { + if x, ok := x.Status.(*AlertRuleStatus_Ok); ok { + return x.Ok + } + } + return nil +} + +func (x *AlertRuleStatus) GetPending() *AlertPending { + if x != nil { + if x, ok := x.Status.(*AlertRuleStatus_Pending); ok { + return x.Pending + } + } + return nil +} + +func (x *AlertRuleStatus) GetFiring() *AlertFiring { + if x != nil { + if x, ok := x.Status.(*AlertRuleStatus_Firing); ok { + return x.Firing + } + } + return nil +} + +type isAlertRuleStatus_Status interface { + isAlertRuleStatus_Status() +} + +type AlertRuleStatus_Unknown struct { + Unknown *AlertUnknown `protobuf:"bytes,300,opt,name=unknown,proto3,oneof"` +} + +type AlertRuleStatus_Ok struct { + Ok *AlertOk `protobuf:"bytes,301,opt,name=ok,proto3,oneof"` +} + +type AlertRuleStatus_Pending struct { + Pending *AlertPending `protobuf:"bytes,302,opt,name=pending,proto3,oneof"` +} + +type AlertRuleStatus_Firing struct { + Firing *AlertFiring `protobuf:"bytes,303,opt,name=firing,proto3,oneof"` +} + +func (*AlertRuleStatus_Unknown) isAlertRuleStatus_Status() {} + +func (*AlertRuleStatus_Ok) isAlertRuleStatus_Status() {} + +func (*AlertRuleStatus_Pending) isAlertRuleStatus_Status() {} + +func (*AlertRuleStatus_Firing) isAlertRuleStatus_Status() {} + +type AlertUnknown struct { state protoimpl.MessageState `protogen:"open.v1"` - Labels *Obj `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *AlertFiring) Reset() { - *x = AlertFiring{} +func (x *AlertUnknown) Reset() { + *x = AlertUnknown{} mi := &file_types_v1_alert_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AlertFiring) String() string { +func (x *AlertUnknown) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AlertFiring) ProtoMessage() {} +func (*AlertUnknown) ProtoMessage() {} -func (x *AlertFiring) ProtoReflect() protoreflect.Message { +func (x *AlertUnknown) ProtoReflect() protoreflect.Message { mi := &file_types_v1_alert_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -495,48 +620,31 @@ func (x *AlertFiring) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AlertFiring.ProtoReflect.Descriptor instead. -func (*AlertFiring) Descriptor() ([]byte, []int) { +// Deprecated: Use AlertUnknown.ProtoReflect.Descriptor instead. +func (*AlertUnknown) Descriptor() ([]byte, []int) { return file_types_v1_alert_proto_rawDescGZIP(), []int{8} } -func (x *AlertFiring) GetLabels() *Obj { - if x != nil { - return x.Labels - } - return nil +type AlertOk struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type AlertState struct { - state protoimpl.MessageState `protogen:"open.v1"` - Rule *AlertRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` - // Types that are valid to be assigned to Status: - // - // *AlertState_Unknown - // *AlertState_Ok - // *AlertState_Pending - // *AlertState_Firing - Status isAlertState_Status `protobuf_oneof:"status"` - TransitionedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transitioned_at,json=transitionedAt,proto3" json:"transitioned_at,omitempty"` - LastFiringAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_firing_at,json=lastFiringAt,proto3" json:"last_firing_at,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AlertState) Reset() { - *x = AlertState{} +func (x *AlertOk) Reset() { + *x = AlertOk{} mi := &file_types_v1_alert_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AlertState) String() string { +func (x *AlertOk) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AlertState) ProtoMessage() {} +func (*AlertOk) ProtoMessage() {} -func (x *AlertState) ProtoReflect() protoreflect.Message { +func (x *AlertOk) ProtoReflect() protoreflect.Message { mi := &file_types_v1_alert_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -548,103 +656,91 @@ func (x *AlertState) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AlertState.ProtoReflect.Descriptor instead. -func (*AlertState) Descriptor() ([]byte, []int) { +// Deprecated: Use AlertOk.ProtoReflect.Descriptor instead. +func (*AlertOk) Descriptor() ([]byte, []int) { return file_types_v1_alert_proto_rawDescGZIP(), []int{9} } -func (x *AlertState) GetRule() *AlertRule { - if x != nil { - return x.Rule - } - return nil +type AlertPending struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *AlertState) GetStatus() isAlertState_Status { - if x != nil { - return x.Status - } - return nil +func (x *AlertPending) Reset() { + *x = AlertPending{} + mi := &file_types_v1_alert_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *AlertState) GetUnknown() *AlertUnknown { - if x != nil { - if x, ok := x.Status.(*AlertState_Unknown); ok { - return x.Unknown - } - } - return nil +func (x *AlertPending) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *AlertState) GetOk() *AlertOk { - if x != nil { - if x, ok := x.Status.(*AlertState_Ok); ok { - return x.Ok - } - } - return nil -} +func (*AlertPending) ProtoMessage() {} -func (x *AlertState) GetPending() *AlertPending { +func (x *AlertPending) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_alert_proto_msgTypes[10] if x != nil { - if x, ok := x.Status.(*AlertState_Pending); ok { - return x.Pending + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return nil + return mi.MessageOf(x) } -func (x *AlertState) GetFiring() *AlertFiring { - if x != nil { - if x, ok := x.Status.(*AlertState_Firing); ok { - return x.Firing - } - } - return nil +// Deprecated: Use AlertPending.ProtoReflect.Descriptor instead. +func (*AlertPending) Descriptor() ([]byte, []int) { + return file_types_v1_alert_proto_rawDescGZIP(), []int{10} } -func (x *AlertState) GetTransitionedAt() *timestamppb.Timestamp { - if x != nil { - return x.TransitionedAt - } - return nil +type AlertFiring struct { + state protoimpl.MessageState `protogen:"open.v1"` + Labels *Obj `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *AlertState) GetLastFiringAt() *timestamppb.Timestamp { - if x != nil { - return x.LastFiringAt - } - return nil +func (x *AlertFiring) Reset() { + *x = AlertFiring{} + mi := &file_types_v1_alert_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type isAlertState_Status interface { - isAlertState_Status() +func (x *AlertFiring) String() string { + return protoimpl.X.MessageStringOf(x) } -type AlertState_Unknown struct { - Unknown *AlertUnknown `protobuf:"bytes,200,opt,name=unknown,proto3,oneof"` -} +func (*AlertFiring) ProtoMessage() {} -type AlertState_Ok struct { - Ok *AlertOk `protobuf:"bytes,201,opt,name=ok,proto3,oneof"` +func (x *AlertFiring) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_alert_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type AlertState_Pending struct { - Pending *AlertPending `protobuf:"bytes,202,opt,name=pending,proto3,oneof"` +// Deprecated: Use AlertFiring.ProtoReflect.Descriptor instead. +func (*AlertFiring) Descriptor() ([]byte, []int) { + return file_types_v1_alert_proto_rawDescGZIP(), []int{11} } -type AlertState_Firing struct { - Firing *AlertFiring `protobuf:"bytes,203,opt,name=firing,proto3,oneof"` +func (x *AlertFiring) GetLabels() *Obj { + if x != nil { + return x.Labels + } + return nil } -func (*AlertState_Unknown) isAlertState_Status() {} - -func (*AlertState_Ok) isAlertState_Status() {} - -func (*AlertState_Pending) isAlertState_Status() {} - -func (*AlertState_Firing) isAlertState_Status() {} - var File_types_v1_alert_proto protoreflect.FileDescriptor const file_types_v1_alert_proto_rawDesc = "" + @@ -656,42 +752,46 @@ const file_types_v1_alert_proto_rawDesc = "" + "\x04spec\x18\x02 \x01(\v2\x18.types.v1.AlertGroupSpecR\x04spec\x122\n" + "\x06status\x18\x03 \x01(\v2\x1a.types.v1.AlertGroupStatusR\x06status\" \n" + "\x0eAlertGroupMeta\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\"\x81\x02\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\x85\x02\n" + "\x0eAlertGroupSpec\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x125\n" + "\binterval\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\binterval\x12<\n" + "\fquery_offset\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\vqueryOffset\x12\x14\n" + - "\x05limit\x18\x04 \x01(\x05R\x05limit\x12)\n" + - "\x05rules\x18\x05 \x03(\v2\x13.types.v1.AlertRuleR\x05rules\x12%\n" + - "\x06labels\x18\x06 \x01(\v2\r.types.v1.ObjR\x06labels\"\xa0\x01\n" + + "\x05limit\x18\x04 \x01(\x05R\x05limit\x12-\n" + + "\x05rules\x18\x05 \x03(\v2\x17.types.v1.AlertRuleSpecR\x05rules\x12%\n" + + "\x06labels\x18\x06 \x01(\v2\r.types.v1.ObjR\x06labels\"\xd1\x01\n" + "\x10AlertGroupStatus\x129\n" + "\n" + "created_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + "\n" + "updated_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x16\n" + - "\x06errors\x18\x03 \x03(\tR\x06errors\"\x8c\x02\n" + - "\tAlertRule\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12#\n" + - "\x04expr\x18\x02 \x01(\v2\x0f.types.v1.QueryR\x04expr\x12%\n" + - "\x06labels\x18\x03 \x01(\v2\r.types.v1.ObjR\x06labels\x12/\n" + - "\vannotations\x18\x04 \x01(\v2\r.types.v1.ObjR\vannotations\x12+\n" + - "\x03for\x183 \x01(\v2\x19.google.protobuf.DurationR\x03for\x12A\n" + - "\x0fkeep_firing_for\x184 \x01(\v2\x19.google.protobuf.DurationR\rkeepFiringFor\"\x0e\n" + + "\x06errors\x18\x03 \x03(\tR\x06errors\x12/\n" + + "\x05rules\x18\x04 \x03(\v2\x19.types.v1.AlertRuleStatusR\x05rules\"\x98\x01\n" + + "\tAlertRule\x12+\n" + + "\x04meta\x18\x01 \x01(\v2\x17.types.v1.AlertRuleMetaR\x04meta\x12+\n" + + "\x04spec\x18\x02 \x01(\v2\x17.types.v1.AlertRuleSpecR\x04spec\x121\n" + + "\x06status\x18\x03 \x01(\v2\x19.types.v1.AlertRuleStatusR\x06status\"\x1f\n" + + "\rAlertRuleMeta\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\xfc\x01\n" + + "\rAlertRuleSpec\x12#\n" + + "\x04expr\x18\x01 \x01(\v2\x0f.types.v1.QueryR\x04expr\x12%\n" + + "\x06labels\x18\x02 \x01(\v2\r.types.v1.ObjR\x06labels\x12/\n" + + "\vannotations\x18\x03 \x01(\v2\r.types.v1.ObjR\vannotations\x12+\n" + + "\x03for\x18) \x01(\v2\x19.google.protobuf.DurationR\x03for\x12A\n" + + "\x0fkeep_firing_for\x18* \x01(\v2\x19.google.protobuf.DurationR\rkeepFiringFor\"\xe4\x02\n" + + "\x0fAlertRuleStatus\x12C\n" + + "\x0ftransitioned_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x0etransitionedAt\x12@\n" + + "\x0elast_firing_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\flastFiringAt\x123\n" + + "\aunknown\x18\xac\x02 \x01(\v2\x16.types.v1.AlertUnknownH\x00R\aunknown\x12$\n" + + "\x02ok\x18\xad\x02 \x01(\v2\x11.types.v1.AlertOkH\x00R\x02ok\x123\n" + + "\apending\x18\xae\x02 \x01(\v2\x16.types.v1.AlertPendingH\x00R\apending\x120\n" + + "\x06firing\x18\xaf\x02 \x01(\v2\x15.types.v1.AlertFiringH\x00R\x06firingB\b\n" + + "\x06status\"\x0e\n" + "\fAlertUnknown\"\t\n" + "\aAlertOk\"\x0e\n" + "\fAlertPending\"4\n" + "\vAlertFiring\x12%\n" + - "\x06labels\x18\x01 \x01(\v2\r.types.v1.ObjR\x06labels\"\x88\x03\n" + - "\n" + - "AlertState\x12'\n" + - "\x04rule\x18\x01 \x01(\v2\x13.types.v1.AlertRuleR\x04rule\x123\n" + - "\aunknown\x18\xc8\x01 \x01(\v2\x16.types.v1.AlertUnknownH\x00R\aunknown\x12$\n" + - "\x02ok\x18\xc9\x01 \x01(\v2\x11.types.v1.AlertOkH\x00R\x02ok\x123\n" + - "\apending\x18\xca\x01 \x01(\v2\x16.types.v1.AlertPendingH\x00R\apending\x120\n" + - "\x06firing\x18\xcb\x01 \x01(\v2\x15.types.v1.AlertFiringH\x00R\x06firing\x12C\n" + - "\x0ftransitioned_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x0etransitionedAt\x12@\n" + - "\x0elast_firing_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\flastFiringAtB\b\n" + - "\x06statusB\x8a\x01\n" + + "\x06labels\x18\x01 \x01(\v2\r.types.v1.ObjR\x06labelsB\x8a\x01\n" + "\fcom.types.v1B\n" + "AlertProtoP\x01Z-github.com/humanlogio/api/go/types/v1;typesv1\xa2\x02\x03TXX\xaa\x02\bTypes.V1\xca\x02\bTypes\\V1\xe2\x02\x14Types\\V1\\GPBMetadata\xea\x02\tTypes::V1b\x06proto3" @@ -707,51 +807,56 @@ func file_types_v1_alert_proto_rawDescGZIP() []byte { return file_types_v1_alert_proto_rawDescData } -var file_types_v1_alert_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_types_v1_alert_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_types_v1_alert_proto_goTypes = []any{ (*AlertGroup)(nil), // 0: types.v1.AlertGroup (*AlertGroupMeta)(nil), // 1: types.v1.AlertGroupMeta (*AlertGroupSpec)(nil), // 2: types.v1.AlertGroupSpec (*AlertGroupStatus)(nil), // 3: types.v1.AlertGroupStatus (*AlertRule)(nil), // 4: types.v1.AlertRule - (*AlertUnknown)(nil), // 5: types.v1.AlertUnknown - (*AlertOk)(nil), // 6: types.v1.AlertOk - (*AlertPending)(nil), // 7: types.v1.AlertPending - (*AlertFiring)(nil), // 8: types.v1.AlertFiring - (*AlertState)(nil), // 9: types.v1.AlertState - (*durationpb.Duration)(nil), // 10: google.protobuf.Duration - (*Obj)(nil), // 11: types.v1.Obj - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp - (*Query)(nil), // 13: types.v1.Query + (*AlertRuleMeta)(nil), // 5: types.v1.AlertRuleMeta + (*AlertRuleSpec)(nil), // 6: types.v1.AlertRuleSpec + (*AlertRuleStatus)(nil), // 7: types.v1.AlertRuleStatus + (*AlertUnknown)(nil), // 8: types.v1.AlertUnknown + (*AlertOk)(nil), // 9: types.v1.AlertOk + (*AlertPending)(nil), // 10: types.v1.AlertPending + (*AlertFiring)(nil), // 11: types.v1.AlertFiring + (*durationpb.Duration)(nil), // 12: google.protobuf.Duration + (*Obj)(nil), // 13: types.v1.Obj + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*Query)(nil), // 15: types.v1.Query } var file_types_v1_alert_proto_depIdxs = []int32{ 1, // 0: types.v1.AlertGroup.meta:type_name -> types.v1.AlertGroupMeta 2, // 1: types.v1.AlertGroup.spec:type_name -> types.v1.AlertGroupSpec 3, // 2: types.v1.AlertGroup.status:type_name -> types.v1.AlertGroupStatus - 10, // 3: types.v1.AlertGroupSpec.interval:type_name -> google.protobuf.Duration - 10, // 4: types.v1.AlertGroupSpec.query_offset:type_name -> google.protobuf.Duration - 4, // 5: types.v1.AlertGroupSpec.rules:type_name -> types.v1.AlertRule - 11, // 6: types.v1.AlertGroupSpec.labels:type_name -> types.v1.Obj - 12, // 7: types.v1.AlertGroupStatus.created_at:type_name -> google.protobuf.Timestamp - 12, // 8: types.v1.AlertGroupStatus.updated_at:type_name -> google.protobuf.Timestamp - 13, // 9: types.v1.AlertRule.expr:type_name -> types.v1.Query - 11, // 10: types.v1.AlertRule.labels:type_name -> types.v1.Obj - 11, // 11: types.v1.AlertRule.annotations:type_name -> types.v1.Obj - 10, // 12: types.v1.AlertRule.for:type_name -> google.protobuf.Duration - 10, // 13: types.v1.AlertRule.keep_firing_for:type_name -> google.protobuf.Duration - 11, // 14: types.v1.AlertFiring.labels:type_name -> types.v1.Obj - 4, // 15: types.v1.AlertState.rule:type_name -> types.v1.AlertRule - 5, // 16: types.v1.AlertState.unknown:type_name -> types.v1.AlertUnknown - 6, // 17: types.v1.AlertState.ok:type_name -> types.v1.AlertOk - 7, // 18: types.v1.AlertState.pending:type_name -> types.v1.AlertPending - 8, // 19: types.v1.AlertState.firing:type_name -> types.v1.AlertFiring - 12, // 20: types.v1.AlertState.transitioned_at:type_name -> google.protobuf.Timestamp - 12, // 21: types.v1.AlertState.last_firing_at:type_name -> google.protobuf.Timestamp - 22, // [22:22] is the sub-list for method output_type - 22, // [22:22] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name + 12, // 3: types.v1.AlertGroupSpec.interval:type_name -> google.protobuf.Duration + 12, // 4: types.v1.AlertGroupSpec.query_offset:type_name -> google.protobuf.Duration + 6, // 5: types.v1.AlertGroupSpec.rules:type_name -> types.v1.AlertRuleSpec + 13, // 6: types.v1.AlertGroupSpec.labels:type_name -> types.v1.Obj + 14, // 7: types.v1.AlertGroupStatus.created_at:type_name -> google.protobuf.Timestamp + 14, // 8: types.v1.AlertGroupStatus.updated_at:type_name -> google.protobuf.Timestamp + 7, // 9: types.v1.AlertGroupStatus.rules:type_name -> types.v1.AlertRuleStatus + 5, // 10: types.v1.AlertRule.meta:type_name -> types.v1.AlertRuleMeta + 6, // 11: types.v1.AlertRule.spec:type_name -> types.v1.AlertRuleSpec + 7, // 12: types.v1.AlertRule.status:type_name -> types.v1.AlertRuleStatus + 15, // 13: types.v1.AlertRuleSpec.expr:type_name -> types.v1.Query + 13, // 14: types.v1.AlertRuleSpec.labels:type_name -> types.v1.Obj + 13, // 15: types.v1.AlertRuleSpec.annotations:type_name -> types.v1.Obj + 12, // 16: types.v1.AlertRuleSpec.for:type_name -> google.protobuf.Duration + 12, // 17: types.v1.AlertRuleSpec.keep_firing_for:type_name -> google.protobuf.Duration + 14, // 18: types.v1.AlertRuleStatus.transitioned_at:type_name -> google.protobuf.Timestamp + 14, // 19: types.v1.AlertRuleStatus.last_firing_at:type_name -> google.protobuf.Timestamp + 8, // 20: types.v1.AlertRuleStatus.unknown:type_name -> types.v1.AlertUnknown + 9, // 21: types.v1.AlertRuleStatus.ok:type_name -> types.v1.AlertOk + 10, // 22: types.v1.AlertRuleStatus.pending:type_name -> types.v1.AlertPending + 11, // 23: types.v1.AlertRuleStatus.firing:type_name -> types.v1.AlertFiring + 13, // 24: types.v1.AlertFiring.labels:type_name -> types.v1.Obj + 25, // [25:25] is the sub-list for method output_type + 25, // [25:25] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name } func init() { file_types_v1_alert_proto_init() } @@ -761,11 +866,11 @@ func file_types_v1_alert_proto_init() { } file_types_v1_query_proto_init() file_types_v1_types_proto_init() - file_types_v1_alert_proto_msgTypes[9].OneofWrappers = []any{ - (*AlertState_Unknown)(nil), - (*AlertState_Ok)(nil), - (*AlertState_Pending)(nil), - (*AlertState_Firing)(nil), + file_types_v1_alert_proto_msgTypes[7].OneofWrappers = []any{ + (*AlertRuleStatus_Unknown)(nil), + (*AlertRuleStatus_Ok)(nil), + (*AlertRuleStatus_Pending)(nil), + (*AlertRuleStatus_Firing)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -773,7 +878,7 @@ func file_types_v1_alert_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_v1_alert_proto_rawDesc), len(file_types_v1_alert_proto_rawDesc)), NumEnums: 0, - NumMessages: 10, + NumMessages: 12, NumExtensions: 0, NumServices: 0, }, diff --git a/js/svc/alert/v1/service_pb.ts b/js/svc/alert/v1/service_pb.ts index c2d3e15..039c6c3 100644 --- a/js/svc/alert/v1/service_pb.ts +++ b/js/svc/alert/v1/service_pb.ts @@ -4,9 +4,10 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import type { Duration } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; -import type { AlertGroup, AlertGroupSpec, AlertRule } from "../../../types/v1/alert_pb"; +import type { AlertGroup, AlertGroupSpec, AlertRule, AlertRuleSpec } from "../../../types/v1/alert_pb"; import { file_types_v1_alert } from "../../../types/v1/alert_pb"; import type { Cursor } from "../../../types/v1/cursor_pb"; import { file_types_v1_cursor } from "../../../types/v1/cursor_pb"; @@ -20,7 +21,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/alert/v1/service.proto. */ export const file_svc_alert_v1_service: GenFile = /*@__PURE__*/ - fileDesc("ChpzdmMvYWxlcnQvdjEvc2VydmljZS5wcm90bxIMc3ZjLmFsZXJ0LnYxIm8KF0NyZWF0ZUFsZXJ0R3JvdXBSZXF1ZXN0EhYKDmVudmlyb25tZW50X2lkGGUgASgDEhQKDHByb2plY3RfbmFtZRhmIAEoCRImCgRzcGVjGAEgASgLMhgudHlwZXMudjEuQWxlcnRHcm91cFNwZWMiRQoYQ3JlYXRlQWxlcnRHcm91cFJlc3BvbnNlEikKC2FsZXJ0X2dyb3VwGAEgASgLMhQudHlwZXMudjEuQWxlcnRHcm91cCJSChRHZXRBbGVydEdyb3VwUmVxdWVzdBIWCg5lbnZpcm9ubWVudF9pZBhlIAEoAxIUCgxwcm9qZWN0X25hbWUYZiABKAkSDAoEbmFtZRgBIAEoCSJCChVHZXRBbGVydEdyb3VwUmVzcG9uc2USKQoLYWxlcnRfZ3JvdXAYASABKAsyFC50eXBlcy52MS5BbGVydEdyb3VwIn0KF1VwZGF0ZUFsZXJ0R3JvdXBSZXF1ZXN0EhYKDmVudmlyb25tZW50X2lkGGUgASgDEhQKDHByb2plY3RfbmFtZRhm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bzM", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_types_v1_alert, file_types_v1_cursor, file_types_v1_query, file_types_v1_types]); + fileDesc("ChpzdmMvYWxlcnQvdjEvc2VydmljZS5wcm90bxIMc3ZjLmFsZXJ0LnYxIn8KF0NyZWF0ZUFsZXJ0R3JvdXBSZXF1ZXN0EhYKDmVudmlyb25tZW50X2lkGGUgASgDEhwKDHByb2plY3RfbmFtZRhmIAEoCUIGukgDyAEBEi4KBHNwZWMYASABKAsyGC50eXBlcy52MS5BbGVydEdyb3VwU3BlY0IGukgDyAEBIkUKGENyZWF0ZUFsZXJ0R3JvdXBSZXNwb25zZRIpCgthbGVydF9ncm91cBgBIAEoCzIULnR5cGVzLnYxLkFsZXJ0R3JvdXAiYgoUR2V0QWxlcnRHcm91cFJlcXVlc3QSFgoOZW52aXJvbm1lbnRfaWQYZSABKAMSHAoMcHJvamVjdF9uYW1lGGYgASgJQga6SAPIAQESFAoEbmFtZRgBIAEoCUIGukgDyAEBIkIKFUdldEFsZXJ0R3JvdXBSZXNwb25zZRIpCgthbGVydF9ncm91cBgBIAEoCzIULnR5cGVzLnYxLkFsZXJ0R3JvdXAilQEKF1VwZGF0ZUFsZXJ0R3JvdXBSZXF1ZXN0EhYKDmVudmlyb25tZW50X2lkGGUgASgDEhwKDHByb2plY3RfbmFtZRhmIAEoCUIGukgDyAEBEhQKBG5hbWUYASABKAlCBrpIA8gBARIuCgRzcGVjGAIgASgLMhgudHlwZXMudjEuQWxlcnRHcm91cFNwZWNCBrpIA8gBASJFChhVcGRhdGVBbGVydEdyb3VwUmVzcG9uc2USKQoLYWxlcnRfZ3JvdXAYASABKAsyFC50eXBlcy52MS5BbGVydEdyb3VwImUKF0RlbGV0ZUFsZXJ0R3JvdXBSZXF1ZXN0EhYKDmVudmlyb25tZW50X2lkGGUgASgDEhwKDHByb2plY3RfbmFtZRhmIAEoCUIGukgDyAEBEhQKBG5hbWUYASABKAlCBrpIA8gBASIaChhEZWxldGVBbGVydEd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UFsZXJ0UnVsZRIkLnN2Yy5hbGVydC52MS5EZWxldGVBbGVydFJ1bGVSZXF1ZXN0GiUuc3ZjLmFsZXJ0LnYxLkRlbGV0ZUFsZXJ0UnVsZVJlc3BvbnNlElgKDUxpc3RBbGVydFJ1bGUSIi5zdmMuYWxlcnQudjEuTGlzdEFsZXJ0UnVsZVJlcXVlc3QaIy5zdmMuYWxlcnQudjEuTGlzdEFsZXJ0UnVsZVJlc3BvbnNlQqUBChBjb20uc3ZjLmFsZXJ0LnYxQgxTZXJ2aWNlUHJvdG9QAVoxZ2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby9zdmMvYWxlcnQvdjE7YWxlcnR2MaICA1NBWKoCDFN2Yy5BbGVydC5WMcoCDFN2Y1xBbGVydFxWMeICGFN2Y1xBbGVydFxWMVxHUEJNZXRhZGF0YeoCDlN2Yzo6QWxlcnQ6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_duration, file_google_protobuf_timestamp, file_types_v1_alert, file_types_v1_cursor, file_types_v1_query, file_types_v1_types]); /** * @generated from message svc.alert.v1.CreateAlertGroupRequest @@ -413,14 +414,9 @@ export type UpdateAlertRuleRequest = Message<"svc.alert.v1.UpdateAlertRuleReques groupName: string; /** - * @generated from field: string name = 1; - */ - name: string; - - /** - * @generated from field: repeated svc.alert.v1.UpdateAlertRuleRequest.Mutation mutations = 2; + * @generated from field: types.v1.AlertRuleSpec spec = 1; */ - mutations: UpdateAlertRuleRequest_Mutation[]; + spec?: AlertRuleSpec; }; /** @@ -430,59 +426,6 @@ export type UpdateAlertRuleRequest = Message<"svc.alert.v1.UpdateAlertRuleReques export const UpdateAlertRuleRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_svc_alert_v1_service, 14); -/** - * @generated from message svc.alert.v1.UpdateAlertRuleRequest.Mutation - */ -export type UpdateAlertRuleRequest_Mutation = Message<"svc.alert.v1.UpdateAlertRuleRequest.Mutation"> & { - /** - * @generated from oneof svc.alert.v1.UpdateAlertRuleRequest.Mutation.do - */ - do: { - /** - * @generated from field: string set_name = 1; - */ - value: string; - case: "setName"; - } | { - /** - * @generated from field: types.v1.Query set_expr = 2; - */ - value: Query; - case: "setExpr"; - } | { - /** - * @generated from field: types.v1.Obj set_labels = 3; - */ - value: Obj; - case: "setLabels"; - } | { - /** - * @generated from field: types.v1.Obj set_annotations = 4; - */ - value: Obj; - case: "setAnnotations"; - } | { - /** - * @generated from field: google.protobuf.Duration set_for = 51; - */ - value: Duration; - case: "setFor"; - } | { - /** - * @generated from field: google.protobuf.Duration set_keep_firing_for = 52; - */ - value: Duration; - case: "setKeepFiringFor"; - } | { case: undefined; value?: undefined }; -}; - -/** - * Describes the message svc.alert.v1.UpdateAlertRuleRequest.Mutation. - * Use `create(UpdateAlertRuleRequest_MutationSchema)` to create a new message. - */ -export const UpdateAlertRuleRequest_MutationSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_alert_v1_service, 14, 0); - /** * @generated from message svc.alert.v1.UpdateAlertRuleResponse */ diff --git a/js/svc/dashboard/v1/service_pb.ts b/js/svc/dashboard/v1/service_pb.ts index ff148e1..9773373 100644 --- a/js/svc/dashboard/v1/service_pb.ts +++ b/js/svc/dashboard/v1/service_pb.ts @@ -4,6 +4,7 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import type { Cursor } from "../../../types/v1/cursor_pb"; import { file_types_v1_cursor } from "../../../types/v1/cursor_pb"; import type { Dashboard, DashboardSpec } from "../../../types/v1/dashboard_pb"; @@ -14,7 +15,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/dashboard/v1/service.proto. */ export const file_svc_dashboard_v1_service: GenFile = /*@__PURE__*/ - fileDesc("Ch5zdmMvZGFzaGJvYXJkL3YxL3NlcnZpY2UucHJvdG8SEHN2Yy5kYXNoYm9hc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mAKDUxpc3REYXNoYm9hcmQSJi5zdmMuZGFzaGJvYXJkLnYxLkxpc3REYXNoYm9hcmRSZXF1ZXN0Gicuc3ZjLmRhc2hib2FyZC52MS5MaXN0RGFzaGJvYXJkUmVzcG9uc2VCwQEKFGNvbS5zdmMuZGFzaGJvYXJkLnYxQgxTZXJ2aWNlUHJvdG9QAVo5Z2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby9zdmMvZGFzaGJvYXJkL3YxO2Rhc2hib2FyZHYxogIDU0RYqgIQU3ZjLkRhc2hib2FyZC5WMcoCEFN2Y1xEYXNoYm9hcmRcVjHiAhxTdmNcRGFzaGJvYXJkXFYxXEdQQk1ldGFkYXRh6gISU3ZjOjpEYXNoYm9hcmQ6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_types_v1_cursor, file_types_v1_dashboard]); /** * @generated from message svc.dashboard.v1.CreateDashboardRequest diff --git a/js/svc/ingest/v1/service_pb.ts b/js/svc/ingest/v1/service_pb.ts index beb6a88..3ec5b78 100644 --- a/js/svc/ingest/v1/service_pb.ts +++ b/js/svc/ingest/v1/service_pb.ts @@ -4,6 +4,7 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_google_protobuf_duration } from "@bufbuild/protobuf/wkt"; import type { Log } from "../../../types/v1/otel_logging_pb"; import { file_types_v1_otel_logging } from "../../../types/v1/otel_logging_pb"; @@ -17,7 +18,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/ingest/v1/service.proto. */ export const file_svc_ingest_v1_service: GenFile = /*@__PURE__*/ - fileDesc("ChtzdmMvaW5nZXN0L3YxL3NlcnZpY2UucHJvdG8SDXN2Yy5pbmdlc3QudjEicgoNSW5nZXN0UmVxdWVzdBIkCghyZXNvdXJjZRgBIAEoCzISLnR5cGVzLnYxLlJlc291cmNl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dzGAMgAygLMg0udHlwZXMudjEuTG9nQga6SAPIAQEiEAoOSW5nZXN0UmVzcG9uc2UikAEKE0luZ2VzdFN0cmVhbVJlcXVlc3QSLAoIcmVzb3VyY2UYASABKAsyEi50eXBlcy52MS5SZXNvdXJjZUIGukgDyAEBEiYKBXNjb3BlGAIgASgLMg8udHlwZXMudjEuU2NvcGVCBrpIA8gBARIjCgRsb2dzGAMgAygLMg0udHlwZXMudjEuTG9nQga6SAPIAQEiFgoUSW5nZXN0U3RyZWFtUmVzcG9uc2UysQEKDUluZ2VzdFNlcnZpY2USRQoGSW5nZXN0Ehwuc3ZjLmluZ2VzdC52MS5Jbmdlc3RSZXF1ZXN0Gh0uc3ZjLmluZ2VzdC52MS5Jbmdlc3RSZXNwb25zZRJZCgxJbmdlc3RTdHJlYW0SIi5zdmMuaW5nZXN0LnYxLkluZ2VzdFN0cmVhbVJlcXVlc3QaIy5zdmMuaW5nZXN0LnYxLkluZ2VzdFN0cmVhbVJlc3BvbnNlKAFCrAEKEWNvbS5zdmMuaW5nZXN0LnYxQgxTZXJ2aWNlUHJvdG9QAVozZ2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby9zdmMvaW5nZXN0L3YxO2luZ2VzdHYxogIDU0lYqgINU3ZjLkluZ2VzdC5WMcoCDVN2Y1xJbmdlc3RcVjHiAhlTdmNcSW5nZXN0XFYxXEdQQk1ldGFkYXRh6gIPU3ZjOjpJbmdlc3Q6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_duration, file_types_v1_otel_logging, file_types_v1_otel_resource, file_types_v1_otel_scope]); /** * @generated from message svc.ingest.v1.IngestRequest diff --git a/js/svc/localhost/v1/service_pb.ts b/js/svc/localhost/v1/service_pb.ts index d099887..12a90ae 100644 --- a/js/svc/localhost/v1/service_pb.ts +++ b/js/svc/localhost/v1/service_pb.ts @@ -4,6 +4,7 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; import type { DatabaseStats } from "../../../types/v1/database_pb"; import { file_types_v1_database } from "../../../types/v1/database_pb"; @@ -24,7 +25,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/localhost/v1/service.proto. */ export const file_svc_localhost_v1_service: GenFile = /*@__PURE__*/ - fileDesc("Ch5zdmMvbG9jYWxob3N0L3YxL3NlcnZpY2UucHJvdG8SEHN2Yy5sb2NhbGhvc3QudjEiDQoLUGluZ1JlcXVlc3Qi6QIKDFBpbmdSZXNwb25zZRIpCg5jbGllbnRfdmVyc2lvbhgBIAEoCzIRLnR5cGVzLnYxLlZlcnNpb24SFAoMYXJjaGl0ZWN0dXJlGAIgASgJEhgKEG9wZXJhdGluZ19zeXN0ZW0YAyABKAkSQgoObG9nZ2VkX2luX3VzZXIYBCABKAsyKi5zdmMubG9jYWxob3N0LnYxLlBpbmdSZXNwb25zZS5Vc2VyRGV0YWlscxIgCgRtZXRhGOgHIAEoCzIRLnR5cGVzLnYxLlJlc01ldGEalwEKC1VzZXJEZXRhaWxzEhwKBHVzZXIYASABKAsyDi50eXBlcy52MS5Vc2VyEjQKFGN1cnJlbnRfb3JnYW5pemF0aW9uGAIgASgLMhYudHlwZXMudjEuT3JnYW5pemF0aW9uEjQKFGRlZmF1bHRfb3JnYW5pemF0aW9uGAMgASgLMhYudHlwZXMudjEuT3JnYW5pemF0aW9uIiUKDkRvTG9naW5SZXF1ZXN0EhMKC3JldHVyblRvVVJMGAEgASgJIhEKD0RvTG9naW5SZXNwb25zZSImCg9Eb0xvZ291dFJlcXVlc3QSEwoLcmV0dXJuVG9VUkwYASABKAkiEgoQRG9Mb2dvdXRSZXNwb25zZSIRCg9Eb1VwZGF0ZVJlcXVlc3QiEgoQRG9VcGRhdGVSZXNwb25zZSISChBEb1Jlc3RhcnRSZXF1Z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N2Yy5sb2NhbGhvc3QudjEuR2V0Q29uZmlnUmVxdWVzdBojLnN2Yy5sb2NhbGhvc3QudjEuR2V0Q29uZmlnUmVzcG9uc2USVAoJU2V0Q29uZmlnEiIuc3ZjLmxvY2FsaG9zdC52MS5TZXRDb25maWdSZXF1ZXN0GiMuc3ZjLmxvY2FsaG9zdC52MS5TZXRDb25maWdSZXNwb25zZRJRCghHZXRTdGF0cxIhLnN2Yy5sb2NhbGhvc3QudjEuR2V0U3RhdHNSZXF1ZXN0GiIuc3ZjLmxvY2FsaG9zdC52MS5HZXRTdGF0c1Jlc3BvbnNlQsEBChRjb20uc3ZjLmxvY2FsaG9zdC52MUIMU2VydmljZVByb3RvUAFaOWdpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vc3ZjL2xvY2FsaG9zdC92MTtsb2NhbGhvc3R2MaICA1NMWKoCEFN2Yy5Mb2NhbGhvc3QuVjHKAhBTdmNcTG9jYWxob3N0XFYx4gIcU3ZjXExvY2FsaG9zdFxWMVxHUEJNZXRhZGF0YeoCElN2Yzo6TG9jYWxob3N0OjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_types_v1_database, file_types_v1_localhost_config, file_types_v1_meta, file_types_v1_organization, file_types_v1_types, file_types_v1_user, file_types_v1_version]); + fileDesc("Ch5zdmMvbG9jYWxob3N0L3YxL3NlcnZpY2UucHJvdG8SEHN2Yy5sb2NhbGhvc3QudjEiDQoLUGluZ1JlcXVlc3Qi6QIKDFBpbmdSZXNwb25zZRIpCg5jbGllbnRfdmVyc2lvbhgBIAEoCzIRLnR5cGVzLnYxLlZlcnNpb24SFAoMYXJjaGl0ZWN0dXJlGAIgASgJEhgKEG9wZXJhdGluZ19zeXN0ZW0YAyABKAkSQgoObG9nZ2VkX2luX3VzZXIYBCABKAsyKi5zdmMubG9jYWxob3N0LnYxLlBpbmdSZXNwb25zZS5Vc2VyRGV0YWlscxIgCgRtZXRhGOgHIAEoCzIRLnR5cGVzLnYxLlJlc01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validate, file_google_protobuf_timestamp, file_types_v1_database, file_types_v1_localhost_config, file_types_v1_meta, file_types_v1_organization, file_types_v1_types, file_types_v1_user, file_types_v1_version]); /** * @generated from message svc.localhost.v1.PingRequest diff --git a/js/svc/organization/v1/service_pb.ts b/js/svc/organization/v1/service_pb.ts index 330090d..72f6aa7 100644 --- a/js/svc/organization/v1/service_pb.ts +++ b/js/svc/organization/v1/service_pb.ts @@ -25,7 +25,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/organization/v1/service.proto. */ export const file_svc_organization_v1_service: GenFile = /*@__PURE__*/ - fileDesc("CiFzdmMvb3JnYW5pemF0aW9uL3YxL3NlcnZpY2UucHJvdG8SE3N2Yy5vcmdhbml6YXRpb24udjEi5wEKGENyZWF0ZUVudmlyb25tZW50UmVxdWVzdBI/ChBlbnZpcm9ubWVudF9uYW1lGAEgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEkcKBnN0cmlwZRjJASABKAsyNC5zdmMub3JnYW5pemF0aW9uLnYxLkNyZWF0ZUVudmlyb25tZW50UmVxdWVzdC5TdHJpcGVIABo2CgZTdHJpcGUSGgoSY29uZmlybWF0aW9uX3Rva2VuGAEgASgJEhAKCHByaWNlX2lkGAIgASgJQgkKB3BheW1lbnQizQEKGUNyZWF0ZUVudmlyb25tZW50UmVzcG9uc2USKgoLZW52aXJvbm1lbnQYASABKAsyFS50eXBlcy52MS5FbnZpcm9ubWVudBJICgZzdHJpcGUYyQEgASgLMjUuc3ZjLm9yZ2FuaXphdGlvbi52MS5DcmVhdGVFbnZpcm9ubWVudFJlc3BvbnNlLlN0cmlwZUgAGi8KBlN0cmlwZRIOCgZzdGF0dXMYASABKAkSFQoNY2xpZW50X3NlY3JldBgCIAEoCUIJCgdwYXltZW50IjsKFUdldEVudmlyb25tZW50UmVxdWVzdBIMCgJpZBgBIAEoA0gAEg4KBG5hbWUYAiABKAlIAEIECgJieSJoChZHZXRFbnZpcm9ubWVud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LnYxLkdldFN0cmlwZUJpbGxpbmdQb3J0YWxSZXF1ZXN0GjMuc3ZjLm9yZ2FuaXphdGlvbi52MS5HZXRTdHJpcGVCaWxsaW5nUG9ydGFsUmVzcG9uc2UiABKSAQobQ3JlYXRlU3RyaXBlQ3VzdG9tZXJTZXNzaW9uEjcuc3ZjLm9yZ2FuaXphdGlvbi52MS5DcmVhdGVTdHJpcGVDdXN0b21lclNlc3Npb25SZXF1ZXN0Gjguc3ZjLm9yZ2FuaXphdGlvbi52MS5DcmVhdGVTdHJpcGVDdXN0b21lclNlc3Npb25SZXNwb25zZSIAEnQKEUxpc3RQYXltZW50TWV0aG9kEi0uc3ZjLm9yZ2FuaXphdGlvbi52MS5MaXN0UGF5bWVudE1ldGhvZFJlcXVlc3QaLi5zdmMub3JnYW5pemF0aW9uLnYxLkxpc3RQYXltZW50TWV0aG9kUmVzcG9uc2UiAELWAQoXY29tLnN2Yy5vcmdhbml6YXRpb24udjFCDFNlcnZpY2VQcm90b1ABWj9naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3N2Yy9vcmdhbml6YXRpb24vdjE7b3JnYW5pemF0aW9udjGiAgNTT1iqAhNTdmMuT3JnYW5pemF0aW9uLlYxygITU3ZjXE9yZ2FuaXphdGlvblxWMeICH1N2Y1xPcmdhbml6YXRpb25cVjFcR1BCTWV0YWRhdGHqAhVTdmM6Ok9yZ2FuaXphdGlvbjo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_types_v1_cursor, file_types_v1_environment, file_types_v1_organization, file_types_v1_payment_method, file_types_v1_product, file_types_v1_subscription, file_types_v1_user]); + fileDesc("CiFzdmMvb3JnYW5pemF0aW9uL3YxL3NlcnZpY2UucHJvdG8SE3N2Yy5vcmdhbml6YXRpb24udjEi/gEKGENyZWF0ZUVudmlyb25tZW50UmVxdWVzdBI/ChBlbnZpcm9ubWVudF9uYW1lGAEgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEkcK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cmdhbml6YXRpb24udjEuTGlzdFBheW1lbnRNZXRob2RSZXNwb25zZSIAQtYBChdjb20uc3ZjLm9yZ2FuaXphdGlvbi52MUIMU2VydmljZVByb3RvUAFaP2dpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vc3ZjL29yZ2FuaXphdGlvbi92MTtvcmdhbml6YXRpb252MaICA1NPWKoCE1N2Yy5Pcmdhbml6YXRpb24uVjHKAhNTdmNcT3JnYW5pemF0aW9uXFYx4gIfU3ZjXE9yZ2FuaXphdGlvblxWMVxHUEJNZXRhZGF0YeoCFVN2Yzo6T3JnYW5pemF0aW9uOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_types_v1_cursor, file_types_v1_environment, file_types_v1_organization, file_types_v1_payment_method, file_types_v1_product, file_types_v1_subscription, file_types_v1_user]); /** * @generated from message svc.organization.v1.CreateEnvironmentRequest diff --git a/js/svc/product/v1/service_pb.ts b/js/svc/product/v1/service_pb.ts index b1aa17c..4fca4f1 100644 --- a/js/svc/product/v1/service_pb.ts +++ b/js/svc/product/v1/service_pb.ts @@ -4,6 +4,7 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import type { Cursor } from "../../../types/v1/cursor_pb"; import { file_types_v1_cursor } from "../../../types/v1/cursor_pb"; import type { Price } from "../../../types/v1/price_pb"; @@ -16,7 +17,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/product/v1/service.proto. */ export const file_svc_product_v1_service: GenFile = /*@__PURE__*/ - fileDesc("ChxzdmMvcHJvZHVjdC92MS9zZXJ2aWNlLnByb3RvEg5zdmMucHJvZHVjdC52MSImChFHZXRQcm9kdWN0UmVxdWVzdBIRCglzdHJpcGVfaWQYASABKAkiWQoSR2V0UHJvZHVjdFJlc3BvbnNlEiIKB3Byb2R1Y3QYASABKAsyES50eXBl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VjdC52MS5MaXN0UHJvZHVjdFJlc3BvbnNlQrMBChJjb20uc3ZjLnByb2R1Y3QudjFCDFNlcnZpY2VQcm90b1ABWjVnaXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3N2Yy9wcm9kdWN0L3YxO3Byb2R1Y3R2MaICA1NQWKoCDlN2Yy5Qcm9kdWN0LlYxygIOU3ZjXFByb2R1Y3RcVjHiAhpTdmNcUHJvZHVjdFxWMVxHUEJNZXRhZGF0YeoCEFN2Yzo6UHJvZHVjdDo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_types_v1_cursor, file_types_v1_price, file_types_v1_product]); /** * @generated from message svc.product.v1.GetProductRequest diff --git a/js/svc/project/v1/service_pb.ts b/js/svc/project/v1/service_pb.ts index 4c23e6d..8d7d377 100644 --- a/js/svc/project/v1/service_pb.ts +++ b/js/svc/project/v1/service_pb.ts @@ -4,6 +4,7 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import type { AlertGroup } from "../../../types/v1/alert_pb"; import { file_types_v1_alert } from "../../../types/v1/alert_pb"; import type { Cursor } from "../../../types/v1/cursor_pb"; @@ -18,7 +19,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/project/v1/service.proto. */ export const file_svc_project_v1_service: GenFile = /*@__PURE__*/ - fileDesc("ChxzdmMvcHJvamVjdC92MS9zZXJ2aWNlLnByb3RvEg5zdmMucHJvamVjdC52MSJTChRDcmVhdGVQcm9qZWN0UmVxdWVzdBIWCg5lbnZpcm9ubWVudF9pZBhlIAEoAxIjCgRzcGVjGAEgASgLMhUudHlwZXMudjEuUHJvamVjdFNwZWMiOwoVQ3JlYXRlUHJvamVjdFJlc3BvbnNlEiIKB3Byb2plY3QYASABKAsyES50eXBlcy52MS5Qcm9qZWN0IjkKEUdldFByb2plY3RSZXF1ZXN0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C52MUIMU2VydmljZVByb3RvUAFaNWdpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vc3ZjL3Byb2plY3QvdjE7cHJvamVjdHYxogIDU1BYqgIOU3ZjLlByb2plY3QuVjHKAg5TdmNcUHJvamVjdFxWMeICGlN2Y1xQcm9qZWN0XFYxXEdQQk1ldGFkYXRh6gIQU3ZjOjpQcm9qZWN0OjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_types_v1_alert, file_types_v1_cursor, file_types_v1_dashboard, file_types_v1_project]); /** * @generated from message svc.project.v1.CreateProjectRequest diff --git a/js/types/v1/alert_pb.ts b/js/types/v1/alert_pb.ts index 63f0e67..863c1fe 100644 --- a/js/types/v1/alert_pb.ts +++ b/js/types/v1/alert_pb.ts @@ -16,7 +16,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file types/v1/alert.proto. */ export const file_types_v1_alert: GenFile = /*@__PURE__*/ - fileDesc("ChR0eXBlcy92MS9hbGVydC5wcm90bxIIdHlwZXMudjEiiAEKCkFsZXJ0R3JvdXASJgoEbWV0YRgBIAEoCzIYLnR5cGVzLnYxLkFsZXJ0R3JvdXBNZXRhEiYKBHNwZWMYAiABKAsyGC50eXBlcy52MS5BbGVydEdyb3VwU3BlYxIqCgZzdGF0dXMYAyABKAsyGi50eXBlcy52MS5BbGVydEdyb3VwU3RhdHVzIhwKDkFsZXJ0R3JvdXBNZXRhEgoKAmlkGAEgASgJIs4BCg5BbGVydEdyb3VwU3BlYxIMCgRuYW1lGAEgASgJEisKCGludGVydmFsGAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEi8KDHF1ZXJ5X29mZnNldBgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhINCgVsaW1pdBgEIAEoBRIiCgVydWxlcxgFIAMoCzITLnR5cGVzLnYxLkFsZXJ0UnVsZRIdCgZsYWJlbHMYBiABKAsyDS50eXBlcy52MS5PYmoiggEKEEFsZXJ0R3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Z2lvL2FwaS9nby90eXBlcy92MTt0eXBlc3YxogIDVFhYqgIIVHlwZXMuVjHKAghUeXBlc1xWMeICFFR5cGVzXFYxXEdQQk1ldGFkYXRh6gIJVHlwZXM6OlYxYgZwcm90bzM", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_types_v1_query, file_types_v1_types]); + fileDesc("ChR0eXBlcy92MS9hbGVydC5wcm90bxIIdHlwZXMudjEiiAEKCkFsZXJ0R3JvdXASJgoEbWV0YRgBIAEoCzIYLnR5cGVzLnYxLkFsZXJ0R3JvdXBNZXRhEiYKBHNwZWMYAiABKAsyGC50eXBlcy52MS5BbGVydEdyb3VwU3BlYxIqCgZzdGF0dXMYAyABKAsyGi50eXBlcy52MS5BbGVydEdyb3VwU3RhdHVzIhwKDkFsZXJ0R3JvdXBNZXRhEgoKAmlkGAEgASgJItIBCg5BbGVydEdyb3VwU3BlYxIMCgRuYW1lGAEgASgJEisKCGludGVydmFsGAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEi8KDHF1ZXJ5X29mZnNldBgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhINCgVsaW1pdBgEIAEoBRImCgVydWxlcxgFIAMoCzIXLnR5cGVzLnYxLkFsZXJ0UnVsZVNwZWMSHQoGbGFiZWxzGAYgASgLMg0udHlwZXMudjEuT2JqIqwBChBBbGVydEdyb3VwU3RhdHVzEi4KCmNyZWF0ZWRfYXQYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg4KBmVycm9ycxgDIAMoCRIoCgVydWxlcxgEIAMoCzIZLnR5cGVzLnYxLkFsZXJ0UnVsZVN0YXR1cyKEAQoJQWxlcnRSdWxlEiUKBG1ldGEYASABKAsyFy50eXBlcy52MS5BbGVydFJ1bGVNZXRhEiUKBHNwZWMYAiABKAsyFy50eXBlcy52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dGHqAglUeXBlczo6VjFiBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_types_v1_query, file_types_v1_types]); /** * @generated from message types.v1.AlertGroup @@ -87,9 +87,9 @@ export type AlertGroupSpec = Message<"types.v1.AlertGroupSpec"> & { limit: number; /** - * @generated from field: repeated types.v1.AlertRule rules = 5; + * @generated from field: repeated types.v1.AlertRuleSpec rules = 5; */ - rules: AlertRule[]; + rules: AlertRuleSpec[]; /** * @generated from field: types.v1.Obj labels = 6; @@ -122,6 +122,11 @@ export type AlertGroupStatus = Message<"types.v1.AlertGroupStatus"> & { * @generated from field: repeated string errors = 3; */ errors: string[]; + + /** + * @generated from field: repeated types.v1.AlertRuleStatus rules = 4; + */ + rules: AlertRuleStatus[]; }; /** @@ -136,42 +141,132 @@ export const AlertGroupStatusSchema: GenMessage = /*@__PURE__* */ export type AlertRule = Message<"types.v1.AlertRule"> & { /** - * @generated from field: string name = 1; + * @generated from field: types.v1.AlertRuleMeta meta = 1; */ - name: string; + meta?: AlertRuleMeta; + + /** + * @generated from field: types.v1.AlertRuleSpec spec = 2; + */ + spec?: AlertRuleSpec; + + /** + * @generated from field: types.v1.AlertRuleStatus status = 3; + */ + status?: AlertRuleStatus; +}; + +/** + * Describes the message types.v1.AlertRule. + * Use `create(AlertRuleSchema)` to create a new message. + */ +export const AlertRuleSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_alert, 4); +/** + * @generated from message types.v1.AlertRuleMeta + */ +export type AlertRuleMeta = Message<"types.v1.AlertRuleMeta"> & { /** - * @generated from field: types.v1.Query expr = 2; + * @generated from field: string id = 1; + */ + id: string; +}; + +/** + * Describes the message types.v1.AlertRuleMeta. + * Use `create(AlertRuleMetaSchema)` to create a new message. + */ +export const AlertRuleMetaSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_alert, 5); + +/** + * @generated from message types.v1.AlertRuleSpec + */ +export type AlertRuleSpec = Message<"types.v1.AlertRuleSpec"> & { + /** + * @generated from field: types.v1.Query expr = 1; */ expr?: Query; /** - * @generated from field: types.v1.Obj labels = 3; + * @generated from field: types.v1.Obj labels = 2; */ labels?: Obj; /** - * @generated from field: types.v1.Obj annotations = 4; + * @generated from field: types.v1.Obj annotations = 3; */ annotations?: Obj; /** - * @generated from field: google.protobuf.Duration for = 51; + * @generated from field: google.protobuf.Duration for = 41; */ for?: Duration; /** - * @generated from field: google.protobuf.Duration keep_firing_for = 52; + * @generated from field: google.protobuf.Duration keep_firing_for = 42; */ keepFiringFor?: Duration; }; /** - * Describes the message types.v1.AlertRule. - * Use `create(AlertRuleSchema)` to create a new message. + * Describes the message types.v1.AlertRuleSpec. + * Use `create(AlertRuleSpecSchema)` to create a new message. */ -export const AlertRuleSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_types_v1_alert, 4); +export const AlertRuleSpecSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_alert, 6); + +/** + * @generated from message types.v1.AlertRuleStatus + */ +export type AlertRuleStatus = Message<"types.v1.AlertRuleStatus"> & { + /** + * @generated from field: google.protobuf.Timestamp transitioned_at = 1; + */ + transitionedAt?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp last_firing_at = 2; + */ + lastFiringAt?: Timestamp; + + /** + * @generated from oneof types.v1.AlertRuleStatus.status + */ + status: { + /** + * @generated from field: types.v1.AlertUnknown unknown = 300; + */ + value: AlertUnknown; + case: "unknown"; + } | { + /** + * @generated from field: types.v1.AlertOk ok = 301; + */ + value: AlertOk; + case: "ok"; + } | { + /** + * @generated from field: types.v1.AlertPending pending = 302; + */ + value: AlertPending; + case: "pending"; + } | { + /** + * @generated from field: types.v1.AlertFiring firing = 303; + */ + value: AlertFiring; + case: "firing"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message types.v1.AlertRuleStatus. + * Use `create(AlertRuleStatusSchema)` to create a new message. + */ +export const AlertRuleStatusSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_alert, 7); /** * @generated from message types.v1.AlertUnknown @@ -184,7 +279,7 @@ export type AlertUnknown = Message<"types.v1.AlertUnknown"> & { * Use `create(AlertUnknownSchema)` to create a new message. */ export const AlertUnknownSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_types_v1_alert, 5); + messageDesc(file_types_v1_alert, 8); /** * @generated from message types.v1.AlertOk @@ -197,7 +292,7 @@ export type AlertOk = Message<"types.v1.AlertOk"> & { * Use `create(AlertOkSchema)` to create a new message. */ export const AlertOkSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_types_v1_alert, 6); + messageDesc(file_types_v1_alert, 9); /** * @generated from message types.v1.AlertPending @@ -210,7 +305,7 @@ export type AlertPending = Message<"types.v1.AlertPending"> & { * Use `create(AlertPendingSchema)` to create a new message. */ export const AlertPendingSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_types_v1_alert, 7); + messageDesc(file_types_v1_alert, 10); /** * @generated from message types.v1.AlertFiring @@ -227,61 +322,5 @@ export type AlertFiring = Message<"types.v1.AlertFiring"> & { * Use `create(AlertFiringSchema)` to create a new message. */ export const AlertFiringSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_types_v1_alert, 8); - -/** - * @generated from message types.v1.AlertState - */ -export type AlertState = Message<"types.v1.AlertState"> & { - /** - * @generated from field: types.v1.AlertRule rule = 1; - */ - rule?: AlertRule; - - /** - * @generated from oneof types.v1.AlertState.status - */ - status: { - /** - * @generated from field: types.v1.AlertUnknown unknown = 200; - */ - value: AlertUnknown; - case: "unknown"; - } | { - /** - * @generated from field: types.v1.AlertOk ok = 201; - */ - value: AlertOk; - case: "ok"; - } | { - /** - * @generated from field: types.v1.AlertPending pending = 202; - */ - value: AlertPending; - case: "pending"; - } | { - /** - * @generated from field: types.v1.AlertFiring firing = 203; - */ - value: AlertFiring; - case: "firing"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from field: google.protobuf.Timestamp transitioned_at = 3; - */ - transitionedAt?: Timestamp; - - /** - * @generated from field: google.protobuf.Timestamp last_firing_at = 4; - */ - lastFiringAt?: Timestamp; -}; - -/** - * Describes the message types.v1.AlertState. - * Use `create(AlertStateSchema)` to create a new message. - */ -export const AlertStateSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_types_v1_alert, 9); + messageDesc(file_types_v1_alert, 11); diff --git a/package-lock.json b/package-lock.json index d70314d..9ec6f52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "typescript": "^4.5.2" }, "devDependencies": { - "@bufbuild/buf": "^1.57.2", + "@bufbuild/buf": "^1.58.0", "@bufbuild/protoc-gen-es": "^2.9.0", "@connectrpc/connect": "^2.1.0", "@connectrpc/connect-query": "^2.2.0", @@ -25,9 +25,9 @@ } }, "node_modules/@bufbuild/buf": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.57.2.tgz", - "integrity": "sha512-N51MOnjROdtBX3fPU2KGdmwfiT1WWXzs8Jw1tMMkyVAmCSahWbObGIPq7e1fw7lR5i0s3bTxQyk3KRmb2/uwNg==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.58.0.tgz", + "integrity": "sha512-/R+6kyZijftKDFLwY2JlvXqreZrIkz6jvcsmILXC0HwjkJ8dcADSPS93CFTZrtDQfui6K/GCJOsZrNbY5SLRyA==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", @@ -40,19 +40,19 @@ "node": ">=12" }, "optionalDependencies": { - "@bufbuild/buf-darwin-arm64": "1.57.2", - "@bufbuild/buf-darwin-x64": "1.57.2", - "@bufbuild/buf-linux-aarch64": "1.57.2", - "@bufbuild/buf-linux-armv7": "1.57.2", - "@bufbuild/buf-linux-x64": "1.57.2", - "@bufbuild/buf-win32-arm64": "1.57.2", - "@bufbuild/buf-win32-x64": "1.57.2" + "@bufbuild/buf-darwin-arm64": "1.58.0", + "@bufbuild/buf-darwin-x64": "1.58.0", + "@bufbuild/buf-linux-aarch64": "1.58.0", + "@bufbuild/buf-linux-armv7": "1.58.0", + "@bufbuild/buf-linux-x64": "1.58.0", + "@bufbuild/buf-win32-arm64": "1.58.0", + "@bufbuild/buf-win32-x64": "1.58.0" } }, "node_modules/@bufbuild/buf-darwin-arm64": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.57.2.tgz", - "integrity": "sha512-ybwjZ8hFpDiSfTY8ltuNulh6e4CYcojZX+joo/VocFb4InRFyF08S+JSO+1ld+nTmJ24ziGwXZTg8qXiiN6qog==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.58.0.tgz", + "integrity": "sha512-bMlTG23f7oIrroVM7dijbCxwLy+fd4QOAkmnIkZ922UIuwXkexr8TWzrul4Ivs0Af6aOWNzQSyHrh3UkGNZa2A==", "cpu": [ "arm64" ], @@ -67,9 +67,9 @@ } }, "node_modules/@bufbuild/buf-darwin-x64": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.57.2.tgz", - "integrity": "sha512-uoNjkkyjmJlzQyfPI/mwlutDvu48gFg8pYzlK0RhNshvTWCDo2vXbw1gZSaQnv1xK585N9Axmyjp0K2sYJkaDQ==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.58.0.tgz", + "integrity": "sha512-sNOu4ta7IDaQi4F66BXk76AQVCr0H10Ic7UFfU9ELs1f+FP+JYsQRU5CrWeaDWnLUTu3o4EZqwC6AvhGLOJUnw==", "cpu": [ "x64" ], @@ -84,9 +84,9 @@ } }, "node_modules/@bufbuild/buf-linux-aarch64": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.57.2.tgz", - "integrity": "sha512-JvB9M+GraP7tgYlyKUhF46+pw/hctFyAjcLvPCPxr8Lr9uo3I6uqU8KywE4AuzdFReaZ4wtdF6sUlsfDOo8Geg==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.58.0.tgz", + "integrity": "sha512-UE3tmIBpA4tK4Y34602UAbCFJzZVuRrFoXys5qSu9LnqhP9OF+vT6x9SXpAlQigmq3VGwNr8wgxD17ys2oDEmA==", "cpu": [ "arm64" ], @@ -101,9 +101,9 @@ } }, "node_modules/@bufbuild/buf-linux-armv7": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-armv7/-/buf-linux-armv7-1.57.2.tgz", - "integrity": "sha512-13ZBU/LTboW7B/qjMV6fY6z8q0uyfSpp+y2J+/PAzCrC64ewSTE30pMKFQujMQ05Po0kY5e9yWvTElJcLbzt5w==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-armv7/-/buf-linux-armv7-1.58.0.tgz", + "integrity": "sha512-6V0bEseFAcNGP8IyHb1b3dEr/FpeuN6A/gHNotJ8zZbtyWsKEPsiSNomED8bARvW/3hs802khVJAUeD0duIpAw==", "cpu": [ "arm" ], @@ -118,9 +118,9 @@ } }, "node_modules/@bufbuild/buf-linux-x64": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.57.2.tgz", - "integrity": "sha512-R28Y6g0kGlM/agtVc8sAjzGhgtbA4JyJYg4w7ZPm/FaVEw2sAYZBsa5uxmMNNOmWopKfd0yr2Pgq8ndfG0QSug==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.58.0.tgz", + "integrity": "sha512-k2xOlOky3IY9Zxeih5vccfp/MDfO0UPZfGYxkYJ7reNuUTtJEOWfzuQxeZY+E8q1W83RtIwGjAVhbKYCGA1MpQ==", "cpu": [ "x64" ], @@ -135,9 +135,9 @@ } }, "node_modules/@bufbuild/buf-win32-arm64": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.57.2.tgz", - "integrity": "sha512-6YlPr2Z0VLae/76raYDEcotN7YGNgn3qaNy7x5idAoNeAr0EK2WsKtlBypK0/fQO3GOrYo0HGM/0SFENXoQKbw==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.58.0.tgz", + "integrity": "sha512-GXNjYaOyjJ2J4hhCkldsc3r6eS1YqQ+qOHsn/PvtcxUkzV6UN5HoLoh0Bx/NStZOA4QqCEfQphLUqJLvwBuhbw==", "cpu": [ "arm64" ], @@ -152,9 +152,9 @@ } }, "node_modules/@bufbuild/buf-win32-x64": { - "version": "1.57.2", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.57.2.tgz", - "integrity": "sha512-7YKz2RVPQlL+rJYzNL7JK3LpvZUz7wY6hof3QOTNX3sHY6pRD+mtWt/PITTlC3PtyjSKy17wAhbkokC0JErsHw==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.58.0.tgz", + "integrity": "sha512-5o1d/7lEeDXuTyroiro+rRmFAbKIaKjVCFZwF0pPISUmIANFzvI41UpzciMQACXCSnYQdEcNHLtZRGCzGT9GiQ==", "cpu": [ "x64" ], diff --git a/package.json b/package.json index d85b31c..0414c9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "@bufbuild/buf": "^1.57.2", + "@bufbuild/buf": "^1.58.0", "@bufbuild/protoc-gen-es": "^2.9.0", "@connectrpc/connect": "^2.1.0", "@connectrpc/connect-query": "^2.2.0", diff --git a/proto/svc/alert/v1/service.proto b/proto/svc/alert/v1/service.proto index fc73d77..137c485 100644 --- a/proto/svc/alert/v1/service.proto +++ b/proto/svc/alert/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package svc.alert.v1; +import "buf/validate/validate.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "types/v1/alert.proto"; @@ -27,8 +28,8 @@ service AlertService { message CreateAlertGroupRequest { int64 environment_id = 101; - string project_name = 102; - types.v1.AlertGroupSpec spec = 1; + string project_name = 102 [(buf.validate.field).required = true]; + types.v1.AlertGroupSpec spec = 1 [(buf.validate.field).required = true]; } message CreateAlertGroupResponse { @@ -37,8 +38,8 @@ message CreateAlertGroupResponse { message GetAlertGroupRequest { int64 environment_id = 101; - string project_name = 102; - string name = 1; + string project_name = 102 [(buf.validate.field).required = true]; + string name = 1 [(buf.validate.field).required = true]; } message GetAlertGroupResponse { @@ -47,9 +48,9 @@ message GetAlertGroupResponse { message UpdateAlertGroupRequest { int64 environment_id = 101; - string project_name = 102; - string name = 1; - types.v1.AlertGroupSpec spec = 2; + string project_name = 102 [(buf.validate.field).required = true]; + string name = 1 [(buf.validate.field).required = true]; + types.v1.AlertGroupSpec spec = 2 [(buf.validate.field).required = true]; } message UpdateAlertGroupResponse { @@ -58,15 +59,15 @@ message UpdateAlertGroupResponse { message DeleteAlertGroupRequest { int64 environment_id = 101; - string project_name = 102; - string name = 1; + string project_name = 102 [(buf.validate.field).required = true]; + string name = 1 [(buf.validate.field).required = true]; } message DeleteAlertGroupResponse {} message ListAlertGroupRequest { int64 environment_id = 101; - string project_name = 102; + string project_name = 102 [(buf.validate.field).required = true]; types.v1.Cursor cursor = 2; int32 limit = 3; } @@ -81,10 +82,10 @@ message ListAlertGroupResponse { message CreateAlertRuleRequest { int64 environment_id = 101; - string project_name = 102; - string group_name = 103; - string name = 1; - types.v1.Query expr = 2; + string project_name = 102 [(buf.validate.field).required = true]; + string group_name = 103 [(buf.validate.field).required = true]; + string name = 1 [(buf.validate.field).required = true]; + types.v1.Query expr = 2 [(buf.validate.field).required = true]; types.v1.Obj labels = 3; types.v1.Obj annotations = 4; google.protobuf.Duration for = 51; @@ -97,9 +98,9 @@ message CreateAlertRuleResponse { message GetAlertRuleRequest { int64 environment_id = 101; - string project_name = 102; - string group_name = 103; - string name = 1; + string project_name = 102 [(buf.validate.field).required = true]; + string group_name = 103 [(buf.validate.field).required = true]; + string name = 1 [(buf.validate.field).required = true]; } message GetAlertRuleResponse { @@ -107,23 +108,11 @@ message GetAlertRuleResponse { } message UpdateAlertRuleRequest { - message Mutation { - oneof do { - string set_name = 1; - types.v1.Query set_expr = 2; - types.v1.Obj set_labels = 3; - types.v1.Obj set_annotations = 4; - google.protobuf.Duration set_for = 51; - google.protobuf.Duration set_keep_firing_for = 52; - } - } - int64 environment_id = 101; string project_name = 102; string group_name = 103; - string name = 1; - repeated Mutation mutations = 2; + types.v1.AlertRuleSpec spec = 1 [(buf.validate.field).required = true]; } message UpdateAlertRuleResponse { @@ -132,18 +121,18 @@ message UpdateAlertRuleResponse { message DeleteAlertRuleRequest { int64 environment_id = 101; - string project_name = 102; - string group_name = 103; + string project_name = 102 [(buf.validate.field).required = true]; + string group_name = 103 [(buf.validate.field).required = true]; - string name = 1; + string name = 1 [(buf.validate.field).required = true]; } message DeleteAlertRuleResponse {} message ListAlertRuleRequest { int64 environment_id = 101; - string project_name = 102; - string group_name = 103; + string project_name = 102 [(buf.validate.field).required = true]; + string group_name = 103 [(buf.validate.field).required = true]; types.v1.Cursor cursor = 2; int32 limit = 3; diff --git a/proto/svc/dashboard/v1/service.proto b/proto/svc/dashboard/v1/service.proto index 713bf75..c9ec7df 100644 --- a/proto/svc/dashboard/v1/service.proto +++ b/proto/svc/dashboard/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package svc.dashboard.v1; +import "buf/validate/validate.proto"; import "types/v1/cursor.proto"; import "types/v1/dashboard.proto"; @@ -17,8 +18,8 @@ service DashboardService { message CreateDashboardRequest { int64 environment_id = 101; - string project_name = 102; - types.v1.DashboardSpec spec = 1; + string project_name = 102 [(buf.validate.field).required = true]; + types.v1.DashboardSpec spec = 1 [(buf.validate.field).required = true]; } message CreateDashboardResponse { @@ -27,8 +28,8 @@ message CreateDashboardResponse { message GetDashboardRequest { int64 environment_id = 101; - string project_name = 102; - string id = 1; + string project_name = 102 [(buf.validate.field).required = true]; + string id = 1 [(buf.validate.field).required = true]; } message GetDashboardResponse { @@ -37,9 +38,9 @@ message GetDashboardResponse { message UpdateDashboardRequest { int64 environment_id = 101; - string project_name = 102; - string id = 1; - types.v1.DashboardSpec spec = 2; + string project_name = 102 [(buf.validate.field).required = true]; + string id = 1 [(buf.validate.field).required = true]; + types.v1.DashboardSpec spec = 2 [(buf.validate.field).required = true]; } message UpdateDashboardResponse { @@ -48,15 +49,15 @@ message UpdateDashboardResponse { message DeleteDashboardRequest { int64 environment_id = 101; - string project_name = 102; - string id = 1; + string project_name = 102 [(buf.validate.field).required = true]; + string id = 1 [(buf.validate.field).required = true]; } message DeleteDashboardResponse {} message ListDashboardRequest { int64 environment_id = 101; - string project_name = 102; + string project_name = 102 [(buf.validate.field).required = true]; types.v1.Cursor cursor = 1; int32 limit = 2; int64 dashboard_id = 3; diff --git a/proto/svc/ingest/v1/service.proto b/proto/svc/ingest/v1/service.proto index b33ea3d..414fac5 100644 --- a/proto/svc/ingest/v1/service.proto +++ b/proto/svc/ingest/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package svc.ingest.v1; +import "buf/validate/validate.proto"; import "google/protobuf/duration.proto"; import "types/v1/otel_logging.proto"; import "types/v1/otel_resource.proto"; @@ -15,18 +16,18 @@ service IngestService { } message IngestRequest { - types.v1.Resource resource = 1; - types.v1.Scope scope = 2; - repeated types.v1.Log logs = 3; + types.v1.Resource resource = 1 [(buf.validate.field).required = true]; + types.v1.Scope scope = 2 [(buf.validate.field).required = true]; + repeated types.v1.Log logs = 3 [(buf.validate.field).required = true]; } message IngestResponse {} message IngestStreamRequest { // only evaluated on the first message - types.v1.Resource resource = 1; - types.v1.Scope scope = 2; - repeated types.v1.Log logs = 3; + types.v1.Resource resource = 1 [(buf.validate.field).required = true]; + types.v1.Scope scope = 2 [(buf.validate.field).required = true]; + repeated types.v1.Log logs = 3 [(buf.validate.field).required = true]; } message IngestStreamResponse {} diff --git a/proto/svc/localhost/v1/service.proto b/proto/svc/localhost/v1/service.proto index 0088ec8..47f145e 100644 --- a/proto/svc/localhost/v1/service.proto +++ b/proto/svc/localhost/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package svc.localhost.v1; +import "buf/validate/validate.proto"; import "google/protobuf/timestamp.proto"; import "types/v1/database.proto"; import "types/v1/localhost_config.proto"; @@ -67,7 +68,7 @@ message GetConfigResponse { } message SetConfigRequest { - types.v1.LocalhostConfig config = 1; + types.v1.LocalhostConfig config = 1 [(buf.validate.field).required = true]; } message SetConfigResponse {} diff --git a/proto/svc/organization/v1/service.proto b/proto/svc/organization/v1/service.proto index 828021e..b627aa4 100644 --- a/proto/svc/organization/v1/service.proto +++ b/proto/svc/organization/v1/service.proto @@ -36,8 +36,8 @@ service OrganizationService { message CreateEnvironmentRequest { message Stripe { - string confirmation_token = 1; - string price_id = 2; + string confirmation_token = 1 [(buf.validate.field).required = true]; + string price_id = 2 [(buf.validate.field).required = true]; } string environment_name = 1 [ @@ -46,6 +46,7 @@ message CreateEnvironmentRequest { (buf.validate.field).string.pattern = "^[a-zA-Z0-9][a-zA-Z0-9-]+$" ]; oneof payment { + option (buf.validate.oneof).required = true; Stripe stripe = 201; } } @@ -64,6 +65,7 @@ message CreateEnvironmentResponse { message GetEnvironmentRequest { oneof by { + option (buf.validate.oneof).required = true; int64 id = 1; string name = 2; } @@ -102,14 +104,14 @@ message ListUserResponse { } message InviteUserRequest { - string user_email = 1; + string user_email = 1 [(buf.validate.field).required = true]; } message InviteUserResponse { types.v1.Invitation invitation = 1; } message RevokeUserInvitationRequest { - int64 invite_id = 1; + int64 invite_id = 1 [(buf.validate.field).required = true]; } message RevokeUserInvitationResponse { types.v1.Invitation invitation = 1; @@ -129,11 +131,12 @@ message ListUserInvitationResponse { message CreateAddonSubscriptionRequest { message Stripe { - string confirmation_token = 1; - string price_id = 2; + string confirmation_token = 1 [(buf.validate.field).required = true]; + string price_id = 2 [(buf.validate.field).required = true]; } oneof payment { + option (buf.validate.oneof).required = true; Stripe stripe = 201; } } @@ -165,7 +168,7 @@ message RemoveAddonSubscriptionRequest { string comment = 1; string feedback = 2; } - types.v1.Product product = 1; + types.v1.Product product = 1 [(buf.validate.field).required = true]; optional Reason cancel_reason = 2; } diff --git a/proto/svc/product/v1/service.proto b/proto/svc/product/v1/service.proto index 09e6d30..57f51b1 100644 --- a/proto/svc/product/v1/service.proto +++ b/proto/svc/product/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package svc.product.v1; +import "buf/validate/validate.proto"; import "types/v1/cursor.proto"; import "types/v1/price.proto"; import "types/v1/product.proto"; @@ -14,7 +15,7 @@ service ProductService { } message GetProductRequest { - string stripe_id = 1; + string stripe_id = 1 [(buf.validate.field).required = true]; } message GetProductResponse { diff --git a/proto/svc/project/v1/service.proto b/proto/svc/project/v1/service.proto index e913b6d..88c3c77 100644 --- a/proto/svc/project/v1/service.proto +++ b/proto/svc/project/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package svc.project.v1; +import "buf/validate/validate.proto"; import "types/v1/alert.proto"; import "types/v1/cursor.proto"; import "types/v1/dashboard.proto"; @@ -23,7 +24,7 @@ service ProjectService { message CreateProjectRequest { int64 environment_id = 101; - types.v1.ProjectSpec spec = 1; + types.v1.ProjectSpec spec = 1 [(buf.validate.field).required = true]; } message CreateProjectResponse { @@ -32,7 +33,7 @@ message CreateProjectResponse { message GetProjectRequest { int64 environment_id = 101; - string name = 1; + string name = 1 [(buf.validate.field).required = true]; } message GetProjectResponse { @@ -43,8 +44,8 @@ message GetProjectResponse { message UpdateProjectRequest { int64 environment_id = 101; - string name = 1; - types.v1.ProjectSpec spec = 2; + string name = 1 [(buf.validate.field).required = true]; + types.v1.ProjectSpec spec = 2 [(buf.validate.field).required = true]; } message UpdateProjectResponse { @@ -53,7 +54,7 @@ message UpdateProjectResponse { message DeleteProjectRequest { int64 environment_id = 101; - string name = 1; + string name = 1 [(buf.validate.field).required = true]; } message DeleteProjectResponse {} @@ -74,7 +75,7 @@ message ListProjectResponse { message SyncProjectRequest { int64 environment_id = 101; - string name = 1; + string name = 1 [(buf.validate.field).required = true]; } message SyncProjectResponse { diff --git a/proto/types/v1/alert.proto b/proto/types/v1/alert.proto index beb862c..7583d01 100644 --- a/proto/types/v1/alert.proto +++ b/proto/types/v1/alert.proto @@ -24,7 +24,7 @@ message AlertGroupSpec { google.protobuf.Duration interval = 2; google.protobuf.Duration query_offset = 3; int32 limit = 4; - repeated AlertRule rules = 5; + repeated AlertRuleSpec rules = 5; types.v1.Obj labels = 6; } @@ -32,15 +32,36 @@ message AlertGroupStatus { google.protobuf.Timestamp created_at = 1; google.protobuf.Timestamp updated_at = 2; repeated string errors = 3; + repeated AlertRuleStatus rules = 4; } message AlertRule { - string name = 1; - types.v1.Query expr = 2; - types.v1.Obj labels = 3; - types.v1.Obj annotations = 4; - google.protobuf.Duration for = 51; - google.protobuf.Duration keep_firing_for = 52; + AlertRuleMeta meta = 1; + AlertRuleSpec spec = 2; + AlertRuleStatus status = 3; +} + +message AlertRuleMeta { + string id = 1; +} + +message AlertRuleSpec { + types.v1.Query expr = 1; + types.v1.Obj labels = 2; + types.v1.Obj annotations = 3; + google.protobuf.Duration for = 41; + google.protobuf.Duration keep_firing_for = 42; +} + +message AlertRuleStatus { + google.protobuf.Timestamp transitioned_at = 1; + google.protobuf.Timestamp last_firing_at = 2; + oneof status { + AlertUnknown unknown = 300; + AlertOk ok = 301; + AlertPending pending = 302; + AlertFiring firing = 303; + } } message AlertUnknown {} @@ -49,15 +70,3 @@ message AlertPending {} message AlertFiring { types.v1.Obj labels = 1; } - -message AlertState { - AlertRule rule = 1; - oneof status { - AlertUnknown unknown = 200; - AlertOk ok = 201; - AlertPending pending = 202; - AlertFiring firing = 203; - } - google.protobuf.Timestamp transitioned_at = 3; - google.protobuf.Timestamp last_firing_at = 4; -} diff --git a/script/install_codegen_deps b/script/install_codegen_deps index c34c93d..af212cd 100755 --- a/script/install_codegen_deps +++ b/script/install_codegen_deps @@ -15,7 +15,7 @@ function main() { @bufbuild/protovalidate@^0.8.0 # dev-time generators / tools - npm i -D @bufbuild/buf@latest \ + npm i -D @bufbuild/buf@^1.58.0 \ @bufbuild/protoc-gen-es@^2.7.0 \ @connectrpc/protoc-gen-connect-query@^2.1.1