Documentation ¶
Index ¶
- Variables
- func RegisterMonitoringManagerServer(s grpc.ServiceRegistrar, srv MonitoringManagerServer)
- type AlertRule
- func (*AlertRule) Descriptor() ([]byte, []int)deprecated
- func (x *AlertRule) GetDescribe() string
- func (x *AlertRule) GetExpr() string
- func (x *AlertRule) GetFor() string
- func (x *AlertRule) GetGroup() string
- func (x *AlertRule) GetID() uint64
- func (x *AlertRule) GetIsWrite() bool
- func (x *AlertRule) GetName() string
- func (x *AlertRule) GetOperator() string
- func (x *AlertRule) GetSummary() string
- func (x *AlertRule) GetTag() string
- func (x *AlertRule) GetTo() int64
- func (x *AlertRule) GetType() string
- func (x *AlertRule) GetValue() string
- func (*AlertRule) ProtoMessage()
- func (x *AlertRule) ProtoReflect() protoreflect.Message
- func (x *AlertRule) Reset()
- func (x *AlertRule) String() string
- type AlertRuleCountRequest
- func (*AlertRuleCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AlertRuleCountRequest) GetName() string
- func (x *AlertRuleCountRequest) GetType() string
- func (*AlertRuleCountRequest) ProtoMessage()
- func (x *AlertRuleCountRequest) ProtoReflect() protoreflect.Message
- func (x *AlertRuleCountRequest) Reset()
- func (x *AlertRuleCountRequest) String() string
- type AlertRuleDetailResponse
- func (*AlertRuleDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AlertRuleDetailResponse) GetDescribe() string
- func (x *AlertRuleDetailResponse) GetExpr() string
- func (x *AlertRuleDetailResponse) GetFor() string
- func (x *AlertRuleDetailResponse) GetGroup() string
- func (x *AlertRuleDetailResponse) GetID() uint64
- func (x *AlertRuleDetailResponse) GetIsWrite() bool
- func (x *AlertRuleDetailResponse) GetLabels() map[string]string
- func (x *AlertRuleDetailResponse) GetName() string
- func (x *AlertRuleDetailResponse) GetOperator() string
- func (x *AlertRuleDetailResponse) GetSummary() string
- func (x *AlertRuleDetailResponse) GetTag() string
- func (x *AlertRuleDetailResponse) GetTo() int64
- func (x *AlertRuleDetailResponse) GetType() string
- func (x *AlertRuleDetailResponse) GetValue() string
- func (*AlertRuleDetailResponse) ProtoMessage()
- func (x *AlertRuleDetailResponse) ProtoReflect() protoreflect.Message
- func (x *AlertRuleDetailResponse) Reset()
- func (x *AlertRuleDetailResponse) String() string
- type AlertRuleID
- type AlertRuleLabelsResponse
- func (*AlertRuleLabelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AlertRuleLabelsResponse) GetLabels() map[string]string
- func (*AlertRuleLabelsResponse) ProtoMessage()
- func (x *AlertRuleLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *AlertRuleLabelsResponse) Reset()
- func (x *AlertRuleLabelsResponse) String() string
- type AlertRulePagingRequest
- func (*AlertRulePagingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AlertRulePagingRequest) GetName() string
- func (x *AlertRulePagingRequest) GetOrder() string
- func (x *AlertRulePagingRequest) GetOrderKey() string
- func (x *AlertRulePagingRequest) GetPage() int64
- func (x *AlertRulePagingRequest) GetPageSize() int64
- func (x *AlertRulePagingRequest) GetType() string
- func (*AlertRulePagingRequest) ProtoMessage()
- func (x *AlertRulePagingRequest) ProtoReflect() protoreflect.Message
- func (x *AlertRulePagingRequest) Reset()
- func (x *AlertRulePagingRequest) String() string
- type AlertRulePagingResponse
- func (*AlertRulePagingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AlertRulePagingResponse) GetAlertRules() []*AlertRule
- func (*AlertRulePagingResponse) ProtoMessage()
- func (x *AlertRulePagingResponse) ProtoReflect() protoreflect.Message
- func (x *AlertRulePagingResponse) Reset()
- func (x *AlertRulePagingResponse) String() string
- type Empty
- type MonitoringManagerClient
- type MonitoringManagerServer
- type Total
- type UnimplementedMonitoringManagerServer
- func (UnimplementedMonitoringManagerServer) AlertRuleCount(context.Context, *AlertRuleCountRequest) (*Total, error)
- func (UnimplementedMonitoringManagerServer) AlertRuleDetail(context.Context, *AlertRuleID) (*AlertRuleDetailResponse, error)
- func (UnimplementedMonitoringManagerServer) AlertRuleLabels(context.Context, *AlertRuleID) (*AlertRuleLabelsResponse, error)
- func (UnimplementedMonitoringManagerServer) AlertRulePaging(context.Context, *AlertRulePagingRequest) (*AlertRulePagingResponse, error)
- type UnsafeMonitoringManagerServer
Constants ¶
This section is empty.
Variables ¶
var File_doc_monitoringManager_proto protoreflect.FileDescriptor
var MonitoringManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "monitoringpb.MonitoringManager", HandlerType: (*MonitoringManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AlertRuleDetail", Handler: _MonitoringManager_AlertRuleDetail_Handler, }, { MethodName: "AlertRuleLabels", Handler: _MonitoringManager_AlertRuleLabels_Handler, }, { MethodName: "AlertRulePaging", Handler: _MonitoringManager_AlertRulePaging_Handler, }, { MethodName: "AlertRuleCount", Handler: _MonitoringManager_AlertRuleCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "doc/monitoringManager.proto", }
MonitoringManager_ServiceDesc is the grpc.ServiceDesc for MonitoringManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMonitoringManagerServer ¶
func RegisterMonitoringManagerServer(s grpc.ServiceRegistrar, srv MonitoringManagerServer)
Types ¶
type AlertRule ¶
type AlertRule struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"` Group string `protobuf:"bytes,4,opt,name=Group,proto3" json:"Group,omitempty"` Tag string `protobuf:"bytes,5,opt,name=Tag,proto3" json:"Tag,omitempty"` To int64 `protobuf:"varint,6,opt,name=To,proto3" json:"To,omitempty"` Expr string `protobuf:"bytes,7,opt,name=Expr,proto3" json:"Expr,omitempty"` Operator string `protobuf:"bytes,8,opt,name=Operator,proto3" json:"Operator,omitempty"` Value string `protobuf:"bytes,9,opt,name=Value,proto3" json:"Value,omitempty"` For string `protobuf:"bytes,10,opt,name=For,proto3" json:"For,omitempty"` Summary string `protobuf:"bytes,11,opt,name=Summary,proto3" json:"Summary,omitempty"` Describe string `protobuf:"bytes,12,opt,name=Describe,proto3" json:"Describe,omitempty"` IsWrite bool `protobuf:"varint,13,opt,name=IsWrite,proto3" json:"IsWrite,omitempty"` // contains filtered or unexported fields }
func (*AlertRule) Descriptor
deprecated
func (*AlertRule) GetDescribe ¶
func (*AlertRule) GetIsWrite ¶
func (*AlertRule) GetOperator ¶
func (*AlertRule) GetSummary ¶
func (*AlertRule) ProtoMessage ¶
func (*AlertRule) ProtoMessage()
func (*AlertRule) ProtoReflect ¶
func (x *AlertRule) ProtoReflect() protoreflect.Message
type AlertRuleCountRequest ¶
type AlertRuleCountRequest struct { Name string `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,6,opt,name=Type,proto3" json:"Type,omitempty"` // contains filtered or unexported fields }
func (*AlertRuleCountRequest) Descriptor
deprecated
func (*AlertRuleCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use AlertRuleCountRequest.ProtoReflect.Descriptor instead.
func (*AlertRuleCountRequest) GetName ¶
func (x *AlertRuleCountRequest) GetName() string
func (*AlertRuleCountRequest) GetType ¶
func (x *AlertRuleCountRequest) GetType() string
func (*AlertRuleCountRequest) ProtoMessage ¶
func (*AlertRuleCountRequest) ProtoMessage()
func (*AlertRuleCountRequest) ProtoReflect ¶
func (x *AlertRuleCountRequest) ProtoReflect() protoreflect.Message
func (*AlertRuleCountRequest) Reset ¶
func (x *AlertRuleCountRequest) Reset()
func (*AlertRuleCountRequest) String ¶
func (x *AlertRuleCountRequest) String() string
type AlertRuleDetailResponse ¶
type AlertRuleDetailResponse struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"` Group string `protobuf:"bytes,4,opt,name=Group,proto3" json:"Group,omitempty"` Tag string `protobuf:"bytes,5,opt,name=Tag,proto3" json:"Tag,omitempty"` To int64 `protobuf:"varint,6,opt,name=To,proto3" json:"To,omitempty"` Expr string `protobuf:"bytes,7,opt,name=Expr,proto3" json:"Expr,omitempty"` Operator string `protobuf:"bytes,8,opt,name=Operator,proto3" json:"Operator,omitempty"` Value string `protobuf:"bytes,9,opt,name=Value,proto3" json:"Value,omitempty"` For string `protobuf:"bytes,10,opt,name=For,proto3" json:"For,omitempty"` Summary string `protobuf:"bytes,11,opt,name=Summary,proto3" json:"Summary,omitempty"` Describe string `protobuf:"bytes,12,opt,name=Describe,proto3" json:"Describe,omitempty"` IsWrite bool `protobuf:"varint,13,opt,name=IsWrite,proto3" json:"IsWrite,omitempty"` Labels map[string]string `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AlertRuleDetailResponse) Descriptor
deprecated
func (*AlertRuleDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use AlertRuleDetailResponse.ProtoReflect.Descriptor instead.
func (*AlertRuleDetailResponse) GetDescribe ¶
func (x *AlertRuleDetailResponse) GetDescribe() string
func (*AlertRuleDetailResponse) GetExpr ¶
func (x *AlertRuleDetailResponse) GetExpr() string
func (*AlertRuleDetailResponse) GetFor ¶
func (x *AlertRuleDetailResponse) GetFor() string
func (*AlertRuleDetailResponse) GetGroup ¶
func (x *AlertRuleDetailResponse) GetGroup() string
func (*AlertRuleDetailResponse) GetID ¶
func (x *AlertRuleDetailResponse) GetID() uint64
func (*AlertRuleDetailResponse) GetIsWrite ¶
func (x *AlertRuleDetailResponse) GetIsWrite() bool
func (*AlertRuleDetailResponse) GetLabels ¶
func (x *AlertRuleDetailResponse) GetLabels() map[string]string
func (*AlertRuleDetailResponse) GetName ¶
func (x *AlertRuleDetailResponse) GetName() string
func (*AlertRuleDetailResponse) GetOperator ¶
func (x *AlertRuleDetailResponse) GetOperator() string
func (*AlertRuleDetailResponse) GetSummary ¶
func (x *AlertRuleDetailResponse) GetSummary() string
func (*AlertRuleDetailResponse) GetTag ¶
func (x *AlertRuleDetailResponse) GetTag() string
func (*AlertRuleDetailResponse) GetTo ¶
func (x *AlertRuleDetailResponse) GetTo() int64
func (*AlertRuleDetailResponse) GetType ¶
func (x *AlertRuleDetailResponse) GetType() string
func (*AlertRuleDetailResponse) GetValue ¶
func (x *AlertRuleDetailResponse) GetValue() string
func (*AlertRuleDetailResponse) ProtoMessage ¶
func (*AlertRuleDetailResponse) ProtoMessage()
func (*AlertRuleDetailResponse) ProtoReflect ¶
func (x *AlertRuleDetailResponse) ProtoReflect() protoreflect.Message
func (*AlertRuleDetailResponse) Reset ¶
func (x *AlertRuleDetailResponse) Reset()
func (*AlertRuleDetailResponse) String ¶
func (x *AlertRuleDetailResponse) String() string
type AlertRuleID ¶
type AlertRuleID struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*AlertRuleID) Descriptor
deprecated
func (*AlertRuleID) Descriptor() ([]byte, []int)
Deprecated: Use AlertRuleID.ProtoReflect.Descriptor instead.
func (*AlertRuleID) GetID ¶
func (x *AlertRuleID) GetID() uint64
func (*AlertRuleID) ProtoMessage ¶
func (*AlertRuleID) ProtoMessage()
func (*AlertRuleID) ProtoReflect ¶
func (x *AlertRuleID) ProtoReflect() protoreflect.Message
func (*AlertRuleID) Reset ¶
func (x *AlertRuleID) Reset()
func (*AlertRuleID) String ¶
func (x *AlertRuleID) String() string
type AlertRuleLabelsResponse ¶
type AlertRuleLabelsResponse struct { Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AlertRuleLabelsResponse) Descriptor
deprecated
func (*AlertRuleLabelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use AlertRuleLabelsResponse.ProtoReflect.Descriptor instead.
func (*AlertRuleLabelsResponse) GetLabels ¶
func (x *AlertRuleLabelsResponse) GetLabels() map[string]string
func (*AlertRuleLabelsResponse) ProtoMessage ¶
func (*AlertRuleLabelsResponse) ProtoMessage()
func (*AlertRuleLabelsResponse) ProtoReflect ¶
func (x *AlertRuleLabelsResponse) ProtoReflect() protoreflect.Message
func (*AlertRuleLabelsResponse) Reset ¶
func (x *AlertRuleLabelsResponse) Reset()
func (*AlertRuleLabelsResponse) String ¶
func (x *AlertRuleLabelsResponse) String() string
type AlertRulePagingRequest ¶
type AlertRulePagingRequest struct { Page int64 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"` OrderKey string `protobuf:"bytes,3,opt,name=OrderKey,proto3" json:"OrderKey,omitempty"` Order string `protobuf:"bytes,4,opt,name=Order,proto3" json:"Order,omitempty"` Name string `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,6,opt,name=Type,proto3" json:"Type,omitempty"` // contains filtered or unexported fields }
func (*AlertRulePagingRequest) Descriptor
deprecated
func (*AlertRulePagingRequest) Descriptor() ([]byte, []int)
Deprecated: Use AlertRulePagingRequest.ProtoReflect.Descriptor instead.
func (*AlertRulePagingRequest) GetName ¶
func (x *AlertRulePagingRequest) GetName() string
func (*AlertRulePagingRequest) GetOrder ¶
func (x *AlertRulePagingRequest) GetOrder() string
func (*AlertRulePagingRequest) GetOrderKey ¶
func (x *AlertRulePagingRequest) GetOrderKey() string
func (*AlertRulePagingRequest) GetPage ¶
func (x *AlertRulePagingRequest) GetPage() int64
func (*AlertRulePagingRequest) GetPageSize ¶
func (x *AlertRulePagingRequest) GetPageSize() int64
func (*AlertRulePagingRequest) GetType ¶
func (x *AlertRulePagingRequest) GetType() string
func (*AlertRulePagingRequest) ProtoMessage ¶
func (*AlertRulePagingRequest) ProtoMessage()
func (*AlertRulePagingRequest) ProtoReflect ¶
func (x *AlertRulePagingRequest) ProtoReflect() protoreflect.Message
func (*AlertRulePagingRequest) Reset ¶
func (x *AlertRulePagingRequest) Reset()
func (*AlertRulePagingRequest) String ¶
func (x *AlertRulePagingRequest) String() string
type AlertRulePagingResponse ¶
type AlertRulePagingResponse struct { AlertRules []*AlertRule `protobuf:"bytes,1,rep,name=AlertRules,proto3" json:"AlertRules,omitempty"` // contains filtered or unexported fields }
func (*AlertRulePagingResponse) Descriptor
deprecated
func (*AlertRulePagingResponse) Descriptor() ([]byte, []int)
Deprecated: Use AlertRulePagingResponse.ProtoReflect.Descriptor instead.
func (*AlertRulePagingResponse) GetAlertRules ¶
func (x *AlertRulePagingResponse) GetAlertRules() []*AlertRule
func (*AlertRulePagingResponse) ProtoMessage ¶
func (*AlertRulePagingResponse) ProtoMessage()
func (*AlertRulePagingResponse) ProtoReflect ¶
func (x *AlertRulePagingResponse) ProtoReflect() protoreflect.Message
func (*AlertRulePagingResponse) Reset ¶
func (x *AlertRulePagingResponse) Reset()
func (*AlertRulePagingResponse) String ¶
func (x *AlertRulePagingResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
------------------- 请求 -------------------
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type MonitoringManagerClient ¶
type MonitoringManagerClient interface { AlertRuleDetail(ctx context.Context, in *AlertRuleID, opts ...grpc.CallOption) (*AlertRuleDetailResponse, error) AlertRuleLabels(ctx context.Context, in *AlertRuleID, opts ...grpc.CallOption) (*AlertRuleLabelsResponse, error) AlertRulePaging(ctx context.Context, in *AlertRulePagingRequest, opts ...grpc.CallOption) (*AlertRulePagingResponse, error) AlertRuleCount(ctx context.Context, in *AlertRuleCountRequest, opts ...grpc.CallOption) (*Total, error) }
MonitoringManagerClient is the client API for MonitoringManager 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 NewMonitoringManagerClient ¶
func NewMonitoringManagerClient(cc grpc.ClientConnInterface) MonitoringManagerClient
type MonitoringManagerServer ¶
type MonitoringManagerServer interface { AlertRuleDetail(context.Context, *AlertRuleID) (*AlertRuleDetailResponse, error) AlertRuleLabels(context.Context, *AlertRuleID) (*AlertRuleLabelsResponse, error) AlertRulePaging(context.Context, *AlertRulePagingRequest) (*AlertRulePagingResponse, error) AlertRuleCount(context.Context, *AlertRuleCountRequest) (*Total, error) // contains filtered or unexported methods }
MonitoringManagerServer is the server API for MonitoringManager service. All implementations must embed UnimplementedMonitoringManagerServer for forward compatibility
type Total ¶
type Total struct { Total uint64 `protobuf:"varint,1,opt,name=Total,proto3" json:"Total,omitempty"` // contains filtered or unexported fields }
func (*Total) Descriptor
deprecated
func (*Total) ProtoMessage ¶
func (*Total) ProtoMessage()
func (*Total) ProtoReflect ¶
func (x *Total) ProtoReflect() protoreflect.Message
type UnimplementedMonitoringManagerServer ¶
type UnimplementedMonitoringManagerServer struct { }
UnimplementedMonitoringManagerServer must be embedded to have forward compatible implementations.
func (UnimplementedMonitoringManagerServer) AlertRuleCount ¶
func (UnimplementedMonitoringManagerServer) AlertRuleCount(context.Context, *AlertRuleCountRequest) (*Total, error)
func (UnimplementedMonitoringManagerServer) AlertRuleDetail ¶
func (UnimplementedMonitoringManagerServer) AlertRuleDetail(context.Context, *AlertRuleID) (*AlertRuleDetailResponse, error)
func (UnimplementedMonitoringManagerServer) AlertRuleLabels ¶
func (UnimplementedMonitoringManagerServer) AlertRuleLabels(context.Context, *AlertRuleID) (*AlertRuleLabelsResponse, error)
func (UnimplementedMonitoringManagerServer) AlertRulePaging ¶
func (UnimplementedMonitoringManagerServer) AlertRulePaging(context.Context, *AlertRulePagingRequest) (*AlertRulePagingResponse, error)
type UnsafeMonitoringManagerServer ¶
type UnsafeMonitoringManagerServer interface {
// contains filtered or unexported methods
}
UnsafeMonitoringManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MonitoringManagerServer will result in compilation errors.