pb

package
v0.0.0-...-83d3498 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_doc_monitoringManager_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AlertRule.ProtoReflect.Descriptor instead.

func (*AlertRule) GetDescribe

func (x *AlertRule) GetDescribe() string

func (*AlertRule) GetExpr

func (x *AlertRule) GetExpr() string

func (*AlertRule) GetFor

func (x *AlertRule) GetFor() string

func (*AlertRule) GetGroup

func (x *AlertRule) GetGroup() string

func (*AlertRule) GetID

func (x *AlertRule) GetID() uint64

func (*AlertRule) GetIsWrite

func (x *AlertRule) GetIsWrite() bool

func (*AlertRule) GetName

func (x *AlertRule) GetName() string

func (*AlertRule) GetOperator

func (x *AlertRule) GetOperator() string

func (*AlertRule) GetSummary

func (x *AlertRule) GetSummary() string

func (*AlertRule) GetTag

func (x *AlertRule) GetTag() string

func (*AlertRule) GetTo

func (x *AlertRule) GetTo() int64

func (*AlertRule) GetType

func (x *AlertRule) GetType() string

func (*AlertRule) GetValue

func (x *AlertRule) GetValue() string

func (*AlertRule) ProtoMessage

func (*AlertRule) ProtoMessage()

func (*AlertRule) ProtoReflect

func (x *AlertRule) ProtoReflect() protoreflect.Message

func (*AlertRule) Reset

func (x *AlertRule) Reset()

func (*AlertRule) String

func (x *AlertRule) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Total.ProtoReflect.Descriptor instead.

func (*Total) GetTotal

func (x *Total) GetTotal() uint64

func (*Total) ProtoMessage

func (*Total) ProtoMessage()

func (*Total) ProtoReflect

func (x *Total) ProtoReflect() protoreflect.Message

func (*Total) Reset

func (x *Total) Reset()

func (*Total) String

func (x *Total) String() string

type UnimplementedMonitoringManagerServer

type UnimplementedMonitoringManagerServer struct {
}

UnimplementedMonitoringManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedMonitoringManagerServer) AlertRuleCount

func (UnimplementedMonitoringManagerServer) AlertRuleDetail

func (UnimplementedMonitoringManagerServer) AlertRuleLabels

func (UnimplementedMonitoringManagerServer) AlertRulePaging

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL