Documentation
¶
Index ¶
- Variables
- func RegisterRuleGroupSetsServer(s grpc.ServiceRegistrar, srv RuleGroupSetsServer)
- func RegisterRuleGroupsServer(s grpc.ServiceRegistrar, srv RuleGroupsServer)
- type CreateRuleGroupSet
- func (*CreateRuleGroupSet) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRuleGroupSet) GetGroups() []*InRuleGroup
- func (*CreateRuleGroupSet) ProtoMessage()
- func (x *CreateRuleGroupSet) ProtoReflect() protoreflect.Message
- func (x *CreateRuleGroupSet) Reset()
- func (x *CreateRuleGroupSet) String() string
- type CreateRuleGroupSetResult
- func (*CreateRuleGroupSetResult) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRuleGroupSetResult) GetId() string
- func (*CreateRuleGroupSetResult) ProtoMessage()
- func (x *CreateRuleGroupSetResult) ProtoReflect() protoreflect.Message
- func (x *CreateRuleGroupSetResult) Reset()
- func (x *CreateRuleGroupSetResult) String() string
- type DeleteRuleGroup
- type DeleteRuleGroupSet
- type FetchRuleGroup
- type FetchRuleGroupResult
- func (*FetchRuleGroupResult) Descriptor() ([]byte, []int)deprecated
- func (x *FetchRuleGroupResult) GetRuleGroup() *OutRuleGroup
- func (*FetchRuleGroupResult) ProtoMessage()
- func (x *FetchRuleGroupResult) ProtoReflect() protoreflect.Message
- func (x *FetchRuleGroupResult) Reset()
- func (x *FetchRuleGroupResult) String() string
- type FetchRuleGroupSet
- type InRule
- func (*InRule) Descriptor() ([]byte, []int)deprecated
- func (x *InRule) GetExpr() string
- func (x *InRule) GetLabels() map[string]string
- func (x *InRule) GetRecord() string
- func (*InRule) ProtoMessage()
- func (x *InRule) ProtoReflect() protoreflect.Message
- func (x *InRule) Reset()
- func (x *InRule) String() string
- type InRuleGroup
- func (*InRuleGroup) Descriptor() ([]byte, []int)deprecated
- func (x *InRuleGroup) GetInterval() uint32
- func (x *InRuleGroup) GetLimit() uint64
- func (x *InRuleGroup) GetName() string
- func (x *InRuleGroup) GetRules() []*InRule
- func (*InRuleGroup) ProtoMessage()
- func (x *InRuleGroup) ProtoReflect() protoreflect.Message
- func (x *InRuleGroup) Reset()
- func (x *InRuleGroup) String() string
- type OutRule
- func (*OutRule) Descriptor() ([]byte, []int)deprecated
- func (x *OutRule) GetExpr() string
- func (x *OutRule) GetLabels() map[string]string
- func (x *OutRule) GetLastEvalDurationMs() uint64
- func (x *OutRule) GetRecord() string
- func (*OutRule) ProtoMessage()
- func (x *OutRule) ProtoReflect() protoreflect.Message
- func (x *OutRule) Reset()
- func (x *OutRule) String() string
- type OutRuleGroup
- func (*OutRuleGroup) Descriptor() ([]byte, []int)deprecated
- func (x *OutRuleGroup) GetInterval() uint32
- func (x *OutRuleGroup) GetLastEvalAt() uint64
- func (x *OutRuleGroup) GetLimit() uint64
- func (x *OutRuleGroup) GetName() string
- func (x *OutRuleGroup) GetRules() []*OutRule
- func (*OutRuleGroup) ProtoMessage()
- func (x *OutRuleGroup) ProtoReflect() protoreflect.Message
- func (x *OutRuleGroup) Reset()
- func (x *OutRuleGroup) String() string
- type OutRuleGroupSet
- func (*OutRuleGroupSet) Descriptor() ([]byte, []int)deprecated
- func (x *OutRuleGroupSet) GetGroups() []*OutRuleGroup
- func (x *OutRuleGroupSet) GetId() string
- func (*OutRuleGroupSet) ProtoMessage()
- func (x *OutRuleGroupSet) ProtoReflect() protoreflect.Message
- func (x *OutRuleGroupSet) Reset()
- func (x *OutRuleGroupSet) String() string
- type RuleGroupListing
- func (*RuleGroupListing) Descriptor() ([]byte, []int)deprecated
- func (x *RuleGroupListing) GetRuleGroups() []*OutRuleGroup
- func (*RuleGroupListing) ProtoMessage()
- func (x *RuleGroupListing) ProtoReflect() protoreflect.Message
- func (x *RuleGroupListing) Reset()
- func (x *RuleGroupListing) String() string
- type RuleGroupSetListing
- func (*RuleGroupSetListing) Descriptor() ([]byte, []int)deprecated
- func (x *RuleGroupSetListing) GetSets() []*OutRuleGroupSet
- func (*RuleGroupSetListing) ProtoMessage()
- func (x *RuleGroupSetListing) ProtoReflect() protoreflect.Message
- func (x *RuleGroupSetListing) Reset()
- func (x *RuleGroupSetListing) String() string
- type RuleGroupSetsClient
- type RuleGroupSetsServer
- type RuleGroupsClient
- type RuleGroupsServer
- type UnimplementedRuleGroupSetsServer
- func (UnimplementedRuleGroupSetsServer) Create(context.Context, *CreateRuleGroupSet) (*CreateRuleGroupSetResult, error)
- func (UnimplementedRuleGroupSetsServer) Delete(context.Context, *DeleteRuleGroupSet) (*emptypb.Empty, error)
- func (UnimplementedRuleGroupSetsServer) Fetch(context.Context, *FetchRuleGroupSet) (*OutRuleGroupSet, error)
- func (UnimplementedRuleGroupSetsServer) List(context.Context, *emptypb.Empty) (*RuleGroupSetListing, error)
- func (UnimplementedRuleGroupSetsServer) Update(context.Context, *UpdateRuleGroupSet) (*emptypb.Empty, error)
- type UnimplementedRuleGroupsServer
- func (UnimplementedRuleGroupsServer) Delete(context.Context, *DeleteRuleGroup) (*emptypb.Empty, error)
- func (UnimplementedRuleGroupsServer) Fetch(context.Context, *FetchRuleGroup) (*FetchRuleGroupResult, error)
- func (UnimplementedRuleGroupsServer) List(context.Context, *emptypb.Empty) (*RuleGroupListing, error)
- func (UnimplementedRuleGroupsServer) Save(context.Context, *InRuleGroup) (*emptypb.Empty, error)
- type UnsafeRuleGroupSetsServer
- type UnsafeRuleGroupsServer
- type UpdateRuleGroupSet
- func (*UpdateRuleGroupSet) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRuleGroupSet) GetGroups() []*InRuleGroup
- func (x *UpdateRuleGroupSet) GetId() string
- func (*UpdateRuleGroupSet) ProtoMessage()
- func (x *UpdateRuleGroupSet) ProtoReflect() protoreflect.Message
- func (x *UpdateRuleGroupSet) Reset()
- func (x *UpdateRuleGroupSet) String() string
Constants ¶
This section is empty.
Variables ¶
var File_groups_proto protoreflect.FileDescriptor
var RuleGroupSets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rule_manager.groups.RuleGroupSets", HandlerType: (*RuleGroupSetsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _RuleGroupSets_Create_Handler, }, { MethodName: "Update", Handler: _RuleGroupSets_Update_Handler, }, { MethodName: "List", Handler: _RuleGroupSets_List_Handler, }, { MethodName: "Fetch", Handler: _RuleGroupSets_Fetch_Handler, }, { MethodName: "Delete", Handler: _RuleGroupSets_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "groups.proto", }
RuleGroupSets_ServiceDesc is the grpc.ServiceDesc for RuleGroupSets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RuleGroups_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rule_manager.groups.RuleGroups", HandlerType: (*RuleGroupsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Save", Handler: _RuleGroups_Save_Handler, }, { MethodName: "Delete", Handler: _RuleGroups_Delete_Handler, }, { MethodName: "List", Handler: _RuleGroups_List_Handler, }, { MethodName: "Fetch", Handler: _RuleGroups_Fetch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "groups.proto", }
RuleGroups_ServiceDesc is the grpc.ServiceDesc for RuleGroups service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRuleGroupSetsServer ¶
func RegisterRuleGroupSetsServer(s grpc.ServiceRegistrar, srv RuleGroupSetsServer)
func RegisterRuleGroupsServer ¶
func RegisterRuleGroupsServer(s grpc.ServiceRegistrar, srv RuleGroupsServer)
Types ¶
type CreateRuleGroupSet ¶
type CreateRuleGroupSet struct { Groups []*InRuleGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*CreateRuleGroupSet) Descriptor
deprecated
func (*CreateRuleGroupSet) Descriptor() ([]byte, []int)
Deprecated: Use CreateRuleGroupSet.ProtoReflect.Descriptor instead.
func (*CreateRuleGroupSet) GetGroups ¶
func (x *CreateRuleGroupSet) GetGroups() []*InRuleGroup
func (*CreateRuleGroupSet) ProtoMessage ¶
func (*CreateRuleGroupSet) ProtoMessage()
func (*CreateRuleGroupSet) ProtoReflect ¶
func (x *CreateRuleGroupSet) ProtoReflect() protoreflect.Message
func (*CreateRuleGroupSet) Reset ¶
func (x *CreateRuleGroupSet) Reset()
func (*CreateRuleGroupSet) String ¶
func (x *CreateRuleGroupSet) String() string
type CreateRuleGroupSetResult ¶
type CreateRuleGroupSetResult struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateRuleGroupSetResult) Descriptor
deprecated
func (*CreateRuleGroupSetResult) Descriptor() ([]byte, []int)
Deprecated: Use CreateRuleGroupSetResult.ProtoReflect.Descriptor instead.
func (*CreateRuleGroupSetResult) GetId ¶
func (x *CreateRuleGroupSetResult) GetId() string
func (*CreateRuleGroupSetResult) ProtoMessage ¶
func (*CreateRuleGroupSetResult) ProtoMessage()
func (*CreateRuleGroupSetResult) ProtoReflect ¶
func (x *CreateRuleGroupSetResult) ProtoReflect() protoreflect.Message
func (*CreateRuleGroupSetResult) Reset ¶
func (x *CreateRuleGroupSetResult) Reset()
func (*CreateRuleGroupSetResult) String ¶
func (x *CreateRuleGroupSetResult) String() string
type DeleteRuleGroup ¶
type DeleteRuleGroup struct { // Name of the group. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
* A matcher specifying a group to delete.
func (*DeleteRuleGroup) Descriptor
deprecated
func (*DeleteRuleGroup) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRuleGroup.ProtoReflect.Descriptor instead.
func (*DeleteRuleGroup) GetName ¶
func (x *DeleteRuleGroup) GetName() string
func (*DeleteRuleGroup) ProtoMessage ¶
func (*DeleteRuleGroup) ProtoMessage()
func (*DeleteRuleGroup) ProtoReflect ¶
func (x *DeleteRuleGroup) ProtoReflect() protoreflect.Message
func (*DeleteRuleGroup) Reset ¶
func (x *DeleteRuleGroup) Reset()
func (*DeleteRuleGroup) String ¶
func (x *DeleteRuleGroup) String() string
type DeleteRuleGroupSet ¶
type DeleteRuleGroupSet struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRuleGroupSet) Descriptor
deprecated
func (*DeleteRuleGroupSet) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRuleGroupSet.ProtoReflect.Descriptor instead.
func (*DeleteRuleGroupSet) GetId ¶
func (x *DeleteRuleGroupSet) GetId() string
func (*DeleteRuleGroupSet) ProtoMessage ¶
func (*DeleteRuleGroupSet) ProtoMessage()
func (*DeleteRuleGroupSet) ProtoReflect ¶
func (x *DeleteRuleGroupSet) ProtoReflect() protoreflect.Message
func (*DeleteRuleGroupSet) Reset ¶
func (x *DeleteRuleGroupSet) Reset()
func (*DeleteRuleGroupSet) String ¶
func (x *DeleteRuleGroupSet) String() string
type FetchRuleGroup ¶
type FetchRuleGroup struct { // Name of the group. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
* A matcher specifying a group to fetch.
func (*FetchRuleGroup) Descriptor
deprecated
func (*FetchRuleGroup) Descriptor() ([]byte, []int)
Deprecated: Use FetchRuleGroup.ProtoReflect.Descriptor instead.
func (*FetchRuleGroup) GetName ¶
func (x *FetchRuleGroup) GetName() string
func (*FetchRuleGroup) ProtoMessage ¶
func (*FetchRuleGroup) ProtoMessage()
func (*FetchRuleGroup) ProtoReflect ¶
func (x *FetchRuleGroup) ProtoReflect() protoreflect.Message
func (*FetchRuleGroup) Reset ¶
func (x *FetchRuleGroup) Reset()
func (*FetchRuleGroup) String ¶
func (x *FetchRuleGroup) String() string
type FetchRuleGroupResult ¶
type FetchRuleGroupResult struct { // A fetched rule group. RuleGroup *OutRuleGroup `protobuf:"bytes,1,opt,name=rule_group,json=ruleGroup,proto3" json:"rule_group,omitempty"` // optional, empty if not found // contains filtered or unexported fields }
* Result of a rule group fetch operation.
func (*FetchRuleGroupResult) Descriptor
deprecated
func (*FetchRuleGroupResult) Descriptor() ([]byte, []int)
Deprecated: Use FetchRuleGroupResult.ProtoReflect.Descriptor instead.
func (*FetchRuleGroupResult) GetRuleGroup ¶
func (x *FetchRuleGroupResult) GetRuleGroup() *OutRuleGroup
func (*FetchRuleGroupResult) ProtoMessage ¶
func (*FetchRuleGroupResult) ProtoMessage()
func (*FetchRuleGroupResult) ProtoReflect ¶
func (x *FetchRuleGroupResult) ProtoReflect() protoreflect.Message
func (*FetchRuleGroupResult) Reset ¶
func (x *FetchRuleGroupResult) Reset()
func (*FetchRuleGroupResult) String ¶
func (x *FetchRuleGroupResult) String() string
type FetchRuleGroupSet ¶
type FetchRuleGroupSet struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FetchRuleGroupSet) Descriptor
deprecated
func (*FetchRuleGroupSet) Descriptor() ([]byte, []int)
Deprecated: Use FetchRuleGroupSet.ProtoReflect.Descriptor instead.
func (*FetchRuleGroupSet) GetId ¶
func (x *FetchRuleGroupSet) GetId() string
func (*FetchRuleGroupSet) ProtoMessage ¶
func (*FetchRuleGroupSet) ProtoMessage()
func (*FetchRuleGroupSet) ProtoReflect ¶
func (x *FetchRuleGroupSet) ProtoReflect() protoreflect.Message
func (*FetchRuleGroupSet) Reset ¶
func (x *FetchRuleGroupSet) Reset()
func (*FetchRuleGroupSet) String ¶
func (x *FetchRuleGroupSet) String() string
type InRule ¶
type InRule struct { // The name of the time series to output to. Must be a valid metric name. Record string `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` //* // The PromQL expression to evaluate. Every evaluation cycle this is // evaluated at the current time, and the result recorded as a new set of // time series with the metric name as given by 'record'. Expr string `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` // Labels to add or overwrite before storing the result. Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*InRule) Descriptor
deprecated
func (*InRule) ProtoMessage ¶
func (*InRule) ProtoMessage()
func (*InRule) ProtoReflect ¶
func (x *InRule) ProtoReflect() protoreflect.Message
type InRuleGroup ¶
type InRuleGroup struct { // Name of the group. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // How often rules in the group are evaluated. Interval *uint32 `protobuf:"varint,2,opt,name=interval,proto3,oneof" json:"interval,omitempty"` // optional, default = 60 secs // Limits the number of series a rule can produce. Limit *uint64 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // optional, 0 is no limit, default = 0 // Rules of the group. Rules []*InRule `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
* A group of recording rules. Rules within a group are run sequentially at a regular interval, with the same evaluation time.
func (*InRuleGroup) Descriptor
deprecated
func (*InRuleGroup) Descriptor() ([]byte, []int)
Deprecated: Use InRuleGroup.ProtoReflect.Descriptor instead.
func (*InRuleGroup) GetInterval ¶
func (x *InRuleGroup) GetInterval() uint32
func (*InRuleGroup) GetLimit ¶
func (x *InRuleGroup) GetLimit() uint64
func (*InRuleGroup) GetName ¶
func (x *InRuleGroup) GetName() string
func (*InRuleGroup) GetRules ¶
func (x *InRuleGroup) GetRules() []*InRule
func (*InRuleGroup) ProtoMessage ¶
func (*InRuleGroup) ProtoMessage()
func (*InRuleGroup) ProtoReflect ¶
func (x *InRuleGroup) ProtoReflect() protoreflect.Message
func (*InRuleGroup) Reset ¶
func (x *InRuleGroup) Reset()
func (*InRuleGroup) String ¶
func (x *InRuleGroup) String() string
type OutRule ¶
type OutRule struct { Record string `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` Expr string `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ LastEvalDurationMs *uint64 `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OutRule) Descriptor
deprecated
func (*OutRule) GetLastEvalDurationMs ¶
func (*OutRule) ProtoMessage ¶
func (*OutRule) ProtoMessage()
func (*OutRule) ProtoReflect ¶
func (x *OutRule) ProtoReflect() protoreflect.Message
type OutRuleGroup ¶
type OutRuleGroup struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Interval *uint32 `protobuf:"varint,2,opt,name=interval,proto3,oneof" json:"interval,omitempty"` Limit *uint64 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"` Rules []*OutRule `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"` LastEvalAt *uint64 `protobuf:"varint,5,opt,name=last_eval_at,json=lastEvalAt,proto3,oneof" json:"last_eval_at,omitempty"` // contains filtered or unexported fields }
func (*OutRuleGroup) Descriptor
deprecated
func (*OutRuleGroup) Descriptor() ([]byte, []int)
Deprecated: Use OutRuleGroup.ProtoReflect.Descriptor instead.
func (*OutRuleGroup) GetInterval ¶
func (x *OutRuleGroup) GetInterval() uint32
func (*OutRuleGroup) GetLastEvalAt ¶
func (x *OutRuleGroup) GetLastEvalAt() uint64
func (*OutRuleGroup) GetLimit ¶
func (x *OutRuleGroup) GetLimit() uint64
func (*OutRuleGroup) GetName ¶
func (x *OutRuleGroup) GetName() string
func (*OutRuleGroup) GetRules ¶
func (x *OutRuleGroup) GetRules() []*OutRule
func (*OutRuleGroup) ProtoMessage ¶
func (*OutRuleGroup) ProtoMessage()
func (*OutRuleGroup) ProtoReflect ¶
func (x *OutRuleGroup) ProtoReflect() protoreflect.Message
func (*OutRuleGroup) Reset ¶
func (x *OutRuleGroup) Reset()
func (*OutRuleGroup) String ¶
func (x *OutRuleGroup) String() string
type OutRuleGroupSet ¶
type OutRuleGroupSet struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Groups []*OutRuleGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*OutRuleGroupSet) Descriptor
deprecated
func (*OutRuleGroupSet) Descriptor() ([]byte, []int)
Deprecated: Use OutRuleGroupSet.ProtoReflect.Descriptor instead.
func (*OutRuleGroupSet) GetGroups ¶
func (x *OutRuleGroupSet) GetGroups() []*OutRuleGroup
func (*OutRuleGroupSet) GetId ¶
func (x *OutRuleGroupSet) GetId() string
func (*OutRuleGroupSet) ProtoMessage ¶
func (*OutRuleGroupSet) ProtoMessage()
func (*OutRuleGroupSet) ProtoReflect ¶
func (x *OutRuleGroupSet) ProtoReflect() protoreflect.Message
func (*OutRuleGroupSet) Reset ¶
func (x *OutRuleGroupSet) Reset()
func (*OutRuleGroupSet) String ¶
func (x *OutRuleGroupSet) String() string
type RuleGroupListing ¶
type RuleGroupListing struct { // List of groups. RuleGroups []*OutRuleGroup `protobuf:"bytes,1,rep,name=rule_groups,json=ruleGroups,proto3" json:"rule_groups,omitempty"` // contains filtered or unexported fields }
* A listing of rule groups.
func (*RuleGroupListing) Descriptor
deprecated
func (*RuleGroupListing) Descriptor() ([]byte, []int)
Deprecated: Use RuleGroupListing.ProtoReflect.Descriptor instead.
func (*RuleGroupListing) GetRuleGroups ¶
func (x *RuleGroupListing) GetRuleGroups() []*OutRuleGroup
func (*RuleGroupListing) ProtoMessage ¶
func (*RuleGroupListing) ProtoMessage()
func (*RuleGroupListing) ProtoReflect ¶
func (x *RuleGroupListing) ProtoReflect() protoreflect.Message
func (*RuleGroupListing) Reset ¶
func (x *RuleGroupListing) Reset()
func (*RuleGroupListing) String ¶
func (x *RuleGroupListing) String() string
type RuleGroupSetListing ¶
type RuleGroupSetListing struct { Sets []*OutRuleGroupSet `protobuf:"bytes,1,rep,name=sets,proto3" json:"sets,omitempty"` // contains filtered or unexported fields }
func (*RuleGroupSetListing) Descriptor
deprecated
func (*RuleGroupSetListing) Descriptor() ([]byte, []int)
Deprecated: Use RuleGroupSetListing.ProtoReflect.Descriptor instead.
func (*RuleGroupSetListing) GetSets ¶
func (x *RuleGroupSetListing) GetSets() []*OutRuleGroupSet
func (*RuleGroupSetListing) ProtoMessage ¶
func (*RuleGroupSetListing) ProtoMessage()
func (*RuleGroupSetListing) ProtoReflect ¶
func (x *RuleGroupSetListing) ProtoReflect() protoreflect.Message
func (*RuleGroupSetListing) Reset ¶
func (x *RuleGroupSetListing) Reset()
func (*RuleGroupSetListing) String ¶
func (x *RuleGroupSetListing) String() string
type RuleGroupSetsClient ¶
type RuleGroupSetsClient interface { Create(ctx context.Context, in *CreateRuleGroupSet, opts ...grpc.CallOption) (*CreateRuleGroupSetResult, error) Update(ctx context.Context, in *UpdateRuleGroupSet, opts ...grpc.CallOption) (*emptypb.Empty, error) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RuleGroupSetListing, error) Fetch(ctx context.Context, in *FetchRuleGroupSet, opts ...grpc.CallOption) (*OutRuleGroupSet, error) Delete(ctx context.Context, in *DeleteRuleGroupSet, opts ...grpc.CallOption) (*emptypb.Empty, error) }
RuleGroupSetsClient is the client API for RuleGroupSets service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRuleGroupSetsClient ¶
func NewRuleGroupSetsClient(cc grpc.ClientConnInterface) RuleGroupSetsClient
type RuleGroupSetsServer ¶
type RuleGroupSetsServer interface { Create(context.Context, *CreateRuleGroupSet) (*CreateRuleGroupSetResult, error) Update(context.Context, *UpdateRuleGroupSet) (*emptypb.Empty, error) List(context.Context, *emptypb.Empty) (*RuleGroupSetListing, error) Fetch(context.Context, *FetchRuleGroupSet) (*OutRuleGroupSet, error) Delete(context.Context, *DeleteRuleGroupSet) (*emptypb.Empty, error) // contains filtered or unexported methods }
RuleGroupSetsServer is the server API for RuleGroupSets service. All implementations must embed UnimplementedRuleGroupSetsServer for forward compatibility
type RuleGroupsClient ¶
type RuleGroupsClient interface { // Creates or updates a rule group. Save(ctx context.Context, in *InRuleGroup, opts ...grpc.CallOption) (*emptypb.Empty, error) // Deletes a rule group matching the given input. Delete(ctx context.Context, in *DeleteRuleGroup, opts ...grpc.CallOption) (*emptypb.Empty, error) // Lists all the rule groups. List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RuleGroupListing, error) // Fetches a rule group matching a given input. Fetch(ctx context.Context, in *FetchRuleGroup, opts ...grpc.CallOption) (*FetchRuleGroupResult, error) }
RuleGroupsClient is the client API for RuleGroups service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRuleGroupsClient ¶
func NewRuleGroupsClient(cc grpc.ClientConnInterface) RuleGroupsClient
type RuleGroupsServer ¶
type RuleGroupsServer interface { // Creates or updates a rule group. Save(context.Context, *InRuleGroup) (*emptypb.Empty, error) // Deletes a rule group matching the given input. Delete(context.Context, *DeleteRuleGroup) (*emptypb.Empty, error) // Lists all the rule groups. List(context.Context, *emptypb.Empty) (*RuleGroupListing, error) // Fetches a rule group matching a given input. Fetch(context.Context, *FetchRuleGroup) (*FetchRuleGroupResult, error) // contains filtered or unexported methods }
RuleGroupsServer is the server API for RuleGroups service. All implementations must embed UnimplementedRuleGroupsServer for forward compatibility
type UnimplementedRuleGroupSetsServer ¶
type UnimplementedRuleGroupSetsServer struct { }
UnimplementedRuleGroupSetsServer must be embedded to have forward compatible implementations.
func (UnimplementedRuleGroupSetsServer) Create ¶
func (UnimplementedRuleGroupSetsServer) Create(context.Context, *CreateRuleGroupSet) (*CreateRuleGroupSetResult, error)
func (UnimplementedRuleGroupSetsServer) Delete ¶
func (UnimplementedRuleGroupSetsServer) Delete(context.Context, *DeleteRuleGroupSet) (*emptypb.Empty, error)
func (UnimplementedRuleGroupSetsServer) Fetch ¶
func (UnimplementedRuleGroupSetsServer) Fetch(context.Context, *FetchRuleGroupSet) (*OutRuleGroupSet, error)
func (UnimplementedRuleGroupSetsServer) List ¶
func (UnimplementedRuleGroupSetsServer) List(context.Context, *emptypb.Empty) (*RuleGroupSetListing, error)
func (UnimplementedRuleGroupSetsServer) Update ¶
func (UnimplementedRuleGroupSetsServer) Update(context.Context, *UpdateRuleGroupSet) (*emptypb.Empty, error)
type UnimplementedRuleGroupsServer ¶
type UnimplementedRuleGroupsServer struct { }
UnimplementedRuleGroupsServer must be embedded to have forward compatible implementations.
func (UnimplementedRuleGroupsServer) Delete ¶
func (UnimplementedRuleGroupsServer) Delete(context.Context, *DeleteRuleGroup) (*emptypb.Empty, error)
func (UnimplementedRuleGroupsServer) Fetch ¶
func (UnimplementedRuleGroupsServer) Fetch(context.Context, *FetchRuleGroup) (*FetchRuleGroupResult, error)
func (UnimplementedRuleGroupsServer) List ¶
func (UnimplementedRuleGroupsServer) List(context.Context, *emptypb.Empty) (*RuleGroupListing, error)
func (UnimplementedRuleGroupsServer) Save ¶
func (UnimplementedRuleGroupsServer) Save(context.Context, *InRuleGroup) (*emptypb.Empty, error)
type UnsafeRuleGroupSetsServer ¶
type UnsafeRuleGroupSetsServer interface {
// contains filtered or unexported methods
}
UnsafeRuleGroupSetsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuleGroupSetsServer will result in compilation errors.
type UnsafeRuleGroupsServer ¶
type UnsafeRuleGroupsServer interface {
// contains filtered or unexported methods
}
UnsafeRuleGroupsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuleGroupsServer will result in compilation errors.
type UpdateRuleGroupSet ¶
type UpdateRuleGroupSet struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Groups []*InRuleGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*UpdateRuleGroupSet) Descriptor
deprecated
func (*UpdateRuleGroupSet) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRuleGroupSet.ProtoReflect.Descriptor instead.
func (*UpdateRuleGroupSet) GetGroups ¶
func (x *UpdateRuleGroupSet) GetGroups() []*InRuleGroup
func (*UpdateRuleGroupSet) GetId ¶
func (x *UpdateRuleGroupSet) GetId() string
func (*UpdateRuleGroupSet) ProtoMessage ¶
func (*UpdateRuleGroupSet) ProtoMessage()
func (*UpdateRuleGroupSet) ProtoReflect ¶
func (x *UpdateRuleGroupSet) ProtoReflect() protoreflect.Message
func (*UpdateRuleGroupSet) Reset ¶
func (x *UpdateRuleGroupSet) Reset()
func (*UpdateRuleGroupSet) String ¶
func (x *UpdateRuleGroupSet) String() string