mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-04 21:50:26 +08:00
1204 lines
48 KiB
Go
1204 lines
48 KiB
Go
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
|
// versions:
|
||
|
|
// protoc-gen-go v1.25.0
|
||
|
|
// protoc v3.12.3
|
||
|
|
// source: service_node_threshold.proto
|
||
|
|
|
||
|
|
package pb
|
||
|
|
|
||
|
|
import (
|
||
|
|
context "context"
|
||
|
|
proto "github.com/golang/protobuf/proto"
|
||
|
|
grpc "google.golang.org/grpc"
|
||
|
|
codes "google.golang.org/grpc/codes"
|
||
|
|
status "google.golang.org/grpc/status"
|
||
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
|
reflect "reflect"
|
||
|
|
sync "sync"
|
||
|
|
)
|
||
|
|
|
||
|
|
const (
|
||
|
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
|
)
|
||
|
|
|
||
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
||
|
|
// of the legacy proto package is being used.
|
||
|
|
const _ = proto.ProtoPackageIsVersion4
|
||
|
|
|
||
|
|
// 创建阈值
|
||
|
|
type CreateNodeThresholdRequest struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeClusterId int64 `protobuf:"varint,1,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
|
||
|
|
NodeId int64 `protobuf:"varint,2,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
|
||
|
|
Item string `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"`
|
||
|
|
Param string `protobuf:"bytes,4,opt,name=param,proto3" json:"param,omitempty"`
|
||
|
|
Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"`
|
||
|
|
ValueJSON []byte `protobuf:"bytes,6,opt,name=valueJSON,proto3" json:"valueJSON,omitempty"`
|
||
|
|
Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
|
||
|
|
Duration int32 `protobuf:"varint,8,opt,name=duration,proto3" json:"duration,omitempty"`
|
||
|
|
DurationUnit string `protobuf:"bytes,9,opt,name=durationUnit,proto3" json:"durationUnit,omitempty"`
|
||
|
|
SumMethod string `protobuf:"bytes,10,opt,name=sumMethod,proto3" json:"sumMethod,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) Reset() {
|
||
|
|
*x = CreateNodeThresholdRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[0]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*CreateNodeThresholdRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[0]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use CreateNodeThresholdRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*CreateNodeThresholdRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{0}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetNodeClusterId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeClusterId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetNodeId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetItem() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Item
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetParam() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Param
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetOperator() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Operator
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetValueJSON() []byte {
|
||
|
|
if x != nil {
|
||
|
|
return x.ValueJSON
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetMessage() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Message
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetDuration() int32 {
|
||
|
|
if x != nil {
|
||
|
|
return x.Duration
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetDurationUnit() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.DurationUnit
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdRequest) GetSumMethod() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.SumMethod
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
type CreateNodeThresholdResponse struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeThresholdId int64 `protobuf:"varint,1,opt,name=nodeThresholdId,proto3" json:"nodeThresholdId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdResponse) Reset() {
|
||
|
|
*x = CreateNodeThresholdResponse{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[1]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdResponse) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*CreateNodeThresholdResponse) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdResponse) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[1]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use CreateNodeThresholdResponse.ProtoReflect.Descriptor instead.
|
||
|
|
func (*CreateNodeThresholdResponse) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{1}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateNodeThresholdResponse) GetNodeThresholdId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeThresholdId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
// 修改阈值
|
||
|
|
type UpdateNodeThresholdRequest struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeThresholdId int64 `protobuf:"varint,1,opt,name=nodeThresholdId,proto3" json:"nodeThresholdId,omitempty"`
|
||
|
|
Item string `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
|
||
|
|
Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"`
|
||
|
|
Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"`
|
||
|
|
ValueJSON []byte `protobuf:"bytes,5,opt,name=valueJSON,proto3" json:"valueJSON,omitempty"`
|
||
|
|
Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
|
||
|
|
Duration int32 `protobuf:"varint,7,opt,name=duration,proto3" json:"duration,omitempty"`
|
||
|
|
DurationUnit string `protobuf:"bytes,8,opt,name=durationUnit,proto3" json:"durationUnit,omitempty"`
|
||
|
|
SumMethod string `protobuf:"bytes,9,opt,name=sumMethod,proto3" json:"sumMethod,omitempty"`
|
||
|
|
IsOn bool `protobuf:"varint,10,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) Reset() {
|
||
|
|
*x = UpdateNodeThresholdRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[2]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*UpdateNodeThresholdRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[2]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use UpdateNodeThresholdRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*UpdateNodeThresholdRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{2}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetNodeThresholdId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeThresholdId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetItem() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Item
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetParam() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Param
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetOperator() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Operator
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetValueJSON() []byte {
|
||
|
|
if x != nil {
|
||
|
|
return x.ValueJSON
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetMessage() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Message
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetDuration() int32 {
|
||
|
|
if x != nil {
|
||
|
|
return x.Duration
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetDurationUnit() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.DurationUnit
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetSumMethod() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.SumMethod
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateNodeThresholdRequest) GetIsOn() bool {
|
||
|
|
if x != nil {
|
||
|
|
return x.IsOn
|
||
|
|
}
|
||
|
|
return false
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除阈值
|
||
|
|
type DeleteNodeThresholdRequest struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeThresholdId int64 `protobuf:"varint,1,opt,name=nodeThresholdId,proto3" json:"nodeThresholdId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteNodeThresholdRequest) Reset() {
|
||
|
|
*x = DeleteNodeThresholdRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[3]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteNodeThresholdRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*DeleteNodeThresholdRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *DeleteNodeThresholdRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[3]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use DeleteNodeThresholdRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*DeleteNodeThresholdRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{3}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteNodeThresholdRequest) GetNodeThresholdId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeThresholdId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询阈值
|
||
|
|
type FindAllEnabledNodeThresholdsRequest struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeClusterId int64 `protobuf:"varint,1,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
|
||
|
|
NodeId int64 `protobuf:"varint,2,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsRequest) Reset() {
|
||
|
|
*x = FindAllEnabledNodeThresholdsRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[4]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*FindAllEnabledNodeThresholdsRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[4]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use FindAllEnabledNodeThresholdsRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*FindAllEnabledNodeThresholdsRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{4}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsRequest) GetNodeClusterId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeClusterId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsRequest) GetNodeId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
type FindAllEnabledNodeThresholdsResponse struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeThresholds []*NodeThreshold `protobuf:"bytes,1,rep,name=nodeThresholds,proto3" json:"nodeThresholds,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsResponse) Reset() {
|
||
|
|
*x = FindAllEnabledNodeThresholdsResponse{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[5]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsResponse) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*FindAllEnabledNodeThresholdsResponse) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsResponse) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[5]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use FindAllEnabledNodeThresholdsResponse.ProtoReflect.Descriptor instead.
|
||
|
|
func (*FindAllEnabledNodeThresholdsResponse) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{5}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllEnabledNodeThresholdsResponse) GetNodeThresholds() []*NodeThreshold {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeThresholds
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// 计算阈值数量
|
||
|
|
type CountAllEnabledNodeThresholdsRequest struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeClusterId int64 `protobuf:"varint,1,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
|
||
|
|
NodeId int64 `protobuf:"varint,2,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CountAllEnabledNodeThresholdsRequest) Reset() {
|
||
|
|
*x = CountAllEnabledNodeThresholdsRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[6]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CountAllEnabledNodeThresholdsRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*CountAllEnabledNodeThresholdsRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *CountAllEnabledNodeThresholdsRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[6]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use CountAllEnabledNodeThresholdsRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*CountAllEnabledNodeThresholdsRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{6}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CountAllEnabledNodeThresholdsRequest) GetNodeClusterId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeClusterId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CountAllEnabledNodeThresholdsRequest) GetNodeId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询单个阈值详情
|
||
|
|
type FindEnabledNodeThresholdRequest struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeThresholdId int64 `protobuf:"varint,1,opt,name=nodeThresholdId,proto3" json:"nodeThresholdId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdRequest) Reset() {
|
||
|
|
*x = FindEnabledNodeThresholdRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[7]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*FindEnabledNodeThresholdRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[7]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use FindEnabledNodeThresholdRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*FindEnabledNodeThresholdRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{7}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdRequest) GetNodeThresholdId() int64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeThresholdId
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
type FindEnabledNodeThresholdResponse struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
NodeThreshold *NodeThreshold `protobuf:"bytes,1,opt,name=nodeThreshold,proto3" json:"nodeThreshold,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdResponse) Reset() {
|
||
|
|
*x = FindEnabledNodeThresholdResponse{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[8]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdResponse) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*FindEnabledNodeThresholdResponse) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdResponse) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_service_node_threshold_proto_msgTypes[8]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use FindEnabledNodeThresholdResponse.ProtoReflect.Descriptor instead.
|
||
|
|
func (*FindEnabledNodeThresholdResponse) Descriptor() ([]byte, []int) {
|
||
|
|
return file_service_node_threshold_proto_rawDescGZIP(), []int{8}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindEnabledNodeThresholdResponse) GetNodeThreshold() *NodeThreshold {
|
||
|
|
if x != nil {
|
||
|
|
return x.NodeThreshold
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
var File_service_node_threshold_proto protoreflect.FileDescriptor
|
||
|
|
|
||
|
|
var file_service_node_threshold_proto_rawDesc = []byte{
|
||
|
|
0x0a, 0x1c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74,
|
||
|
|
0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02,
|
||
|
|
0x70, 0x62, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d,
|
||
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x6d,
|
||
|
|
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65,
|
||
|
|
0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||
|
|
0x22, 0xb6, 0x02, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x54,
|
||
|
|
0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||
|
|
0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64,
|
||
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73,
|
||
|
|
0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18,
|
||
|
|
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a,
|
||
|
|
0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x74, 0x65,
|
||
|
|
0x6d, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||
|
|
0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61,
|
||
|
|
0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61,
|
||
|
|
0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x53, 0x4f, 0x4e,
|
||
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x53, 0x4f,
|
||
|
|
0x4e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01,
|
||
|
|
0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64,
|
||
|
|
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64,
|
||
|
|
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x75, 0x72, 0x61, 0x74,
|
||
|
|
0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64,
|
||
|
|
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73,
|
||
|
|
0x75, 0x6d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
||
|
|
0x73, 0x75, 0x6d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x47, 0x0a, 0x1b, 0x43, 0x72, 0x65,
|
||
|
|
0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64,
|
||
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65,
|
||
|
|
0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
|
|
0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64,
|
||
|
|
0x49, 0x64, 0x22, 0xb6, 0x02, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
|
||
|
|
0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
|
|
0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
|
||
|
|
0x6c, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65,
|
||
|
|
0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69,
|
||
|
|
0x74, 0x65, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12,
|
||
|
|
0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||
|
|
0x70, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f,
|
||
|
|
0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f,
|
||
|
|
0x72, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05,
|
||
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12,
|
||
|
|
0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
|
||
|
|
0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72,
|
||
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72,
|
||
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
||
|
|
0x6e, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x75, 0x72,
|
||
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75, 0x6d,
|
||
|
|
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x75,
|
||
|
|
0x6d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18,
|
||
|
|
0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x46, 0x0a, 0x1a, 0x44,
|
||
|
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
|
||
|
|
0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64,
|
||
|
|
0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||
|
|
0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c,
|
||
|
|
0x64, 0x49, 0x64, 0x22, 0x63, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
|
||
|
|
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
|
||
|
|
0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f,
|
||
|
|
0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
|
|
0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64,
|
||
|
|
0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
|
||
|
|
0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x61, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64,
|
||
|
|
0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68,
|
||
|
|
0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||
|
|
0x12, 0x39, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c,
|
||
|
|
0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f,
|
||
|
|
0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x0e, 0x6e, 0x6f, 0x64,
|
||
|
|
0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x22, 0x64, 0x0a, 0x24, 0x43,
|
||
|
|
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
|
||
|
|
0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75,
|
||
|
|
0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74,
|
||
|
|
0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65,
|
||
|
|
0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64,
|
||
|
|
0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49,
|
||
|
|
0x64, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||
|
|
0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71,
|
||
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65,
|
||
|
|
0x73, 0x68, 0x6f, 0x6c, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e,
|
||
|
|
0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x49, 0x64, 0x22, 0x5b,
|
||
|
|
0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64,
|
||
|
|
0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||
|
|
0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68,
|
||
|
|
0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e,
|
||
|
|
0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x0d, 0x6e, 0x6f,
|
||
|
|
0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x32, 0xb7, 0x04, 0x0a, 0x14,
|
||
|
|
0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x53, 0x65, 0x72,
|
||
|
|
0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f,
|
||
|
|
0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x1e, 0x2e, 0x70, 0x62,
|
||
|
|
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73,
|
||
|
|
0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62,
|
||
|
|
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73,
|
||
|
|
0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13,
|
||
|
|
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68,
|
||
|
|
0x6f, 0x6c, 0x64, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
|
||
|
|
0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75,
|
||
|
|
0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63,
|
||
|
|
0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64,
|
||
|
|
0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e,
|
||
|
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68,
|
||
|
|
0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
|
||
|
|
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69,
|
||
|
|
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65,
|
||
|
|
0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e,
|
||
|
|
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
|
||
|
|
0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75,
|
||
|
|
0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
|
||
|
|
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73,
|
||
|
|
0x68, 0x6f, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a,
|
||
|
|
0x1d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||
|
|
0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x12, 0x28,
|
||
|
|
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
|
||
|
|
0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64,
|
||
|
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
|
||
|
|
0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65,
|
||
|
|
0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64,
|
||
|
|
0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e,
|
||
|
|
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x54,
|
||
|
|
0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||
|
|
0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||
|
|
0x4e, 0x6f, 0x64, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73,
|
||
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
|
}
|
||
|
|
|
||
|
|
var (
|
||
|
|
file_service_node_threshold_proto_rawDescOnce sync.Once
|
||
|
|
file_service_node_threshold_proto_rawDescData = file_service_node_threshold_proto_rawDesc
|
||
|
|
)
|
||
|
|
|
||
|
|
func file_service_node_threshold_proto_rawDescGZIP() []byte {
|
||
|
|
file_service_node_threshold_proto_rawDescOnce.Do(func() {
|
||
|
|
file_service_node_threshold_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_node_threshold_proto_rawDescData)
|
||
|
|
})
|
||
|
|
return file_service_node_threshold_proto_rawDescData
|
||
|
|
}
|
||
|
|
|
||
|
|
var file_service_node_threshold_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||
|
|
var file_service_node_threshold_proto_goTypes = []interface{}{
|
||
|
|
(*CreateNodeThresholdRequest)(nil), // 0: pb.CreateNodeThresholdRequest
|
||
|
|
(*CreateNodeThresholdResponse)(nil), // 1: pb.CreateNodeThresholdResponse
|
||
|
|
(*UpdateNodeThresholdRequest)(nil), // 2: pb.UpdateNodeThresholdRequest
|
||
|
|
(*DeleteNodeThresholdRequest)(nil), // 3: pb.DeleteNodeThresholdRequest
|
||
|
|
(*FindAllEnabledNodeThresholdsRequest)(nil), // 4: pb.FindAllEnabledNodeThresholdsRequest
|
||
|
|
(*FindAllEnabledNodeThresholdsResponse)(nil), // 5: pb.FindAllEnabledNodeThresholdsResponse
|
||
|
|
(*CountAllEnabledNodeThresholdsRequest)(nil), // 6: pb.CountAllEnabledNodeThresholdsRequest
|
||
|
|
(*FindEnabledNodeThresholdRequest)(nil), // 7: pb.FindEnabledNodeThresholdRequest
|
||
|
|
(*FindEnabledNodeThresholdResponse)(nil), // 8: pb.FindEnabledNodeThresholdResponse
|
||
|
|
(*NodeThreshold)(nil), // 9: pb.NodeThreshold
|
||
|
|
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
|
||
|
|
(*RPCCountResponse)(nil), // 11: pb.RPCCountResponse
|
||
|
|
}
|
||
|
|
var file_service_node_threshold_proto_depIdxs = []int32{
|
||
|
|
9, // 0: pb.FindAllEnabledNodeThresholdsResponse.nodeThresholds:type_name -> pb.NodeThreshold
|
||
|
|
9, // 1: pb.FindEnabledNodeThresholdResponse.nodeThreshold:type_name -> pb.NodeThreshold
|
||
|
|
0, // 2: pb.NodeThresholdService.createNodeThreshold:input_type -> pb.CreateNodeThresholdRequest
|
||
|
|
2, // 3: pb.NodeThresholdService.updateNodeThreshold:input_type -> pb.UpdateNodeThresholdRequest
|
||
|
|
3, // 4: pb.NodeThresholdService.deleteNodeThreshold:input_type -> pb.DeleteNodeThresholdRequest
|
||
|
|
4, // 5: pb.NodeThresholdService.findAllEnabledNodeThresholds:input_type -> pb.FindAllEnabledNodeThresholdsRequest
|
||
|
|
6, // 6: pb.NodeThresholdService.countAllEnabledNodeThresholds:input_type -> pb.CountAllEnabledNodeThresholdsRequest
|
||
|
|
7, // 7: pb.NodeThresholdService.findEnabledNodeThreshold:input_type -> pb.FindEnabledNodeThresholdRequest
|
||
|
|
1, // 8: pb.NodeThresholdService.createNodeThreshold:output_type -> pb.CreateNodeThresholdResponse
|
||
|
|
10, // 9: pb.NodeThresholdService.updateNodeThreshold:output_type -> pb.RPCSuccess
|
||
|
|
10, // 10: pb.NodeThresholdService.deleteNodeThreshold:output_type -> pb.RPCSuccess
|
||
|
|
5, // 11: pb.NodeThresholdService.findAllEnabledNodeThresholds:output_type -> pb.FindAllEnabledNodeThresholdsResponse
|
||
|
|
11, // 12: pb.NodeThresholdService.countAllEnabledNodeThresholds:output_type -> pb.RPCCountResponse
|
||
|
|
8, // 13: pb.NodeThresholdService.findEnabledNodeThreshold:output_type -> pb.FindEnabledNodeThresholdResponse
|
||
|
|
8, // [8:14] is the sub-list for method output_type
|
||
|
|
2, // [2:8] is the sub-list for method input_type
|
||
|
|
2, // [2:2] is the sub-list for extension type_name
|
||
|
|
2, // [2:2] is the sub-list for extension extendee
|
||
|
|
0, // [0:2] is the sub-list for field type_name
|
||
|
|
}
|
||
|
|
|
||
|
|
func init() { file_service_node_threshold_proto_init() }
|
||
|
|
func file_service_node_threshold_proto_init() {
|
||
|
|
if File_service_node_threshold_proto != nil {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
file_models_rpc_messages_proto_init()
|
||
|
|
file_models_model_node_threshold_proto_init()
|
||
|
|
if !protoimpl.UnsafeEnabled {
|
||
|
|
file_service_node_threshold_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*CreateNodeThresholdRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*CreateNodeThresholdResponse); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*UpdateNodeThresholdRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*DeleteNodeThresholdRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindAllEnabledNodeThresholdsRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindAllEnabledNodeThresholdsResponse); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*CountAllEnabledNodeThresholdsRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindEnabledNodeThresholdRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_node_threshold_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindEnabledNodeThresholdResponse); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
type x struct{}
|
||
|
|
out := protoimpl.TypeBuilder{
|
||
|
|
File: protoimpl.DescBuilder{
|
||
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
|
RawDescriptor: file_service_node_threshold_proto_rawDesc,
|
||
|
|
NumEnums: 0,
|
||
|
|
NumMessages: 9,
|
||
|
|
NumExtensions: 0,
|
||
|
|
NumServices: 1,
|
||
|
|
},
|
||
|
|
GoTypes: file_service_node_threshold_proto_goTypes,
|
||
|
|
DependencyIndexes: file_service_node_threshold_proto_depIdxs,
|
||
|
|
MessageInfos: file_service_node_threshold_proto_msgTypes,
|
||
|
|
}.Build()
|
||
|
|
File_service_node_threshold_proto = out.File
|
||
|
|
file_service_node_threshold_proto_rawDesc = nil
|
||
|
|
file_service_node_threshold_proto_goTypes = nil
|
||
|
|
file_service_node_threshold_proto_depIdxs = nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
|
var _ context.Context
|
||
|
|
var _ grpc.ClientConnInterface
|
||
|
|
|
||
|
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
|
// is compatible with the grpc package it is being compiled against.
|
||
|
|
const _ = grpc.SupportPackageIsVersion6
|
||
|
|
|
||
|
|
// NodeThresholdServiceClient is the client API for NodeThresholdService service.
|
||
|
|
//
|
||
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||
|
|
type NodeThresholdServiceClient interface {
|
||
|
|
// 创建阈值
|
||
|
|
CreateNodeThreshold(ctx context.Context, in *CreateNodeThresholdRequest, opts ...grpc.CallOption) (*CreateNodeThresholdResponse, error)
|
||
|
|
// 修改阈值
|
||
|
|
UpdateNodeThreshold(ctx context.Context, in *UpdateNodeThresholdRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||
|
|
// 删除阈值
|
||
|
|
DeleteNodeThreshold(ctx context.Context, in *DeleteNodeThresholdRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||
|
|
// 查询阈值
|
||
|
|
FindAllEnabledNodeThresholds(ctx context.Context, in *FindAllEnabledNodeThresholdsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeThresholdsResponse, error)
|
||
|
|
// 计算阈值数量
|
||
|
|
CountAllEnabledNodeThresholds(ctx context.Context, in *CountAllEnabledNodeThresholdsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||
|
|
// 查询单个阈值详情
|
||
|
|
FindEnabledNodeThreshold(ctx context.Context, in *FindEnabledNodeThresholdRequest, opts ...grpc.CallOption) (*FindEnabledNodeThresholdResponse, error)
|
||
|
|
}
|
||
|
|
|
||
|
|
type nodeThresholdServiceClient struct {
|
||
|
|
cc grpc.ClientConnInterface
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewNodeThresholdServiceClient(cc grpc.ClientConnInterface) NodeThresholdServiceClient {
|
||
|
|
return &nodeThresholdServiceClient{cc}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *nodeThresholdServiceClient) CreateNodeThreshold(ctx context.Context, in *CreateNodeThresholdRequest, opts ...grpc.CallOption) (*CreateNodeThresholdResponse, error) {
|
||
|
|
out := new(CreateNodeThresholdResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.NodeThresholdService/createNodeThreshold", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *nodeThresholdServiceClient) UpdateNodeThreshold(ctx context.Context, in *UpdateNodeThresholdRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||
|
|
out := new(RPCSuccess)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.NodeThresholdService/updateNodeThreshold", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *nodeThresholdServiceClient) DeleteNodeThreshold(ctx context.Context, in *DeleteNodeThresholdRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||
|
|
out := new(RPCSuccess)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.NodeThresholdService/deleteNodeThreshold", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *nodeThresholdServiceClient) FindAllEnabledNodeThresholds(ctx context.Context, in *FindAllEnabledNodeThresholdsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeThresholdsResponse, error) {
|
||
|
|
out := new(FindAllEnabledNodeThresholdsResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.NodeThresholdService/findAllEnabledNodeThresholds", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *nodeThresholdServiceClient) CountAllEnabledNodeThresholds(ctx context.Context, in *CountAllEnabledNodeThresholdsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||
|
|
out := new(RPCCountResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.NodeThresholdService/countAllEnabledNodeThresholds", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *nodeThresholdServiceClient) FindEnabledNodeThreshold(ctx context.Context, in *FindEnabledNodeThresholdRequest, opts ...grpc.CallOption) (*FindEnabledNodeThresholdResponse, error) {
|
||
|
|
out := new(FindEnabledNodeThresholdResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.NodeThresholdService/findEnabledNodeThreshold", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// NodeThresholdServiceServer is the server API for NodeThresholdService service.
|
||
|
|
type NodeThresholdServiceServer interface {
|
||
|
|
// 创建阈值
|
||
|
|
CreateNodeThreshold(context.Context, *CreateNodeThresholdRequest) (*CreateNodeThresholdResponse, error)
|
||
|
|
// 修改阈值
|
||
|
|
UpdateNodeThreshold(context.Context, *UpdateNodeThresholdRequest) (*RPCSuccess, error)
|
||
|
|
// 删除阈值
|
||
|
|
DeleteNodeThreshold(context.Context, *DeleteNodeThresholdRequest) (*RPCSuccess, error)
|
||
|
|
// 查询阈值
|
||
|
|
FindAllEnabledNodeThresholds(context.Context, *FindAllEnabledNodeThresholdsRequest) (*FindAllEnabledNodeThresholdsResponse, error)
|
||
|
|
// 计算阈值数量
|
||
|
|
CountAllEnabledNodeThresholds(context.Context, *CountAllEnabledNodeThresholdsRequest) (*RPCCountResponse, error)
|
||
|
|
// 查询单个阈值详情
|
||
|
|
FindEnabledNodeThreshold(context.Context, *FindEnabledNodeThresholdRequest) (*FindEnabledNodeThresholdResponse, error)
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnimplementedNodeThresholdServiceServer can be embedded to have forward compatible implementations.
|
||
|
|
type UnimplementedNodeThresholdServiceServer struct {
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*UnimplementedNodeThresholdServiceServer) CreateNodeThreshold(context.Context, *CreateNodeThresholdRequest) (*CreateNodeThresholdResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateNodeThreshold not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedNodeThresholdServiceServer) UpdateNodeThreshold(context.Context, *UpdateNodeThresholdRequest) (*RPCSuccess, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeThreshold not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedNodeThresholdServiceServer) DeleteNodeThreshold(context.Context, *DeleteNodeThresholdRequest) (*RPCSuccess, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteNodeThreshold not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedNodeThresholdServiceServer) FindAllEnabledNodeThresholds(context.Context, *FindAllEnabledNodeThresholdsRequest) (*FindAllEnabledNodeThresholdsResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeThresholds not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedNodeThresholdServiceServer) CountAllEnabledNodeThresholds(context.Context, *CountAllEnabledNodeThresholdsRequest) (*RPCCountResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNodeThresholds not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedNodeThresholdServiceServer) FindEnabledNodeThreshold(context.Context, *FindEnabledNodeThresholdRequest) (*FindEnabledNodeThresholdResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodeThreshold not implemented")
|
||
|
|
}
|
||
|
|
|
||
|
|
func RegisterNodeThresholdServiceServer(s *grpc.Server, srv NodeThresholdServiceServer) {
|
||
|
|
s.RegisterService(&_NodeThresholdService_serviceDesc, srv)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _NodeThresholdService_CreateNodeThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(CreateNodeThresholdRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(NodeThresholdServiceServer).CreateNodeThreshold(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.NodeThresholdService/CreateNodeThreshold",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(NodeThresholdServiceServer).CreateNodeThreshold(ctx, req.(*CreateNodeThresholdRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _NodeThresholdService_UpdateNodeThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(UpdateNodeThresholdRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(NodeThresholdServiceServer).UpdateNodeThreshold(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.NodeThresholdService/UpdateNodeThreshold",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(NodeThresholdServiceServer).UpdateNodeThreshold(ctx, req.(*UpdateNodeThresholdRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _NodeThresholdService_DeleteNodeThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(DeleteNodeThresholdRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(NodeThresholdServiceServer).DeleteNodeThreshold(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.NodeThresholdService/DeleteNodeThreshold",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(NodeThresholdServiceServer).DeleteNodeThreshold(ctx, req.(*DeleteNodeThresholdRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _NodeThresholdService_FindAllEnabledNodeThresholds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(FindAllEnabledNodeThresholdsRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(NodeThresholdServiceServer).FindAllEnabledNodeThresholds(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.NodeThresholdService/FindAllEnabledNodeThresholds",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(NodeThresholdServiceServer).FindAllEnabledNodeThresholds(ctx, req.(*FindAllEnabledNodeThresholdsRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _NodeThresholdService_CountAllEnabledNodeThresholds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(CountAllEnabledNodeThresholdsRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(NodeThresholdServiceServer).CountAllEnabledNodeThresholds(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.NodeThresholdService/CountAllEnabledNodeThresholds",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(NodeThresholdServiceServer).CountAllEnabledNodeThresholds(ctx, req.(*CountAllEnabledNodeThresholdsRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _NodeThresholdService_FindEnabledNodeThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(FindEnabledNodeThresholdRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(NodeThresholdServiceServer).FindEnabledNodeThreshold(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.NodeThresholdService/FindEnabledNodeThreshold",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(NodeThresholdServiceServer).FindEnabledNodeThreshold(ctx, req.(*FindEnabledNodeThresholdRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _NodeThresholdService_serviceDesc = grpc.ServiceDesc{
|
||
|
|
ServiceName: "pb.NodeThresholdService",
|
||
|
|
HandlerType: (*NodeThresholdServiceServer)(nil),
|
||
|
|
Methods: []grpc.MethodDesc{
|
||
|
|
{
|
||
|
|
MethodName: "createNodeThreshold",
|
||
|
|
Handler: _NodeThresholdService_CreateNodeThreshold_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "updateNodeThreshold",
|
||
|
|
Handler: _NodeThresholdService_UpdateNodeThreshold_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "deleteNodeThreshold",
|
||
|
|
Handler: _NodeThresholdService_DeleteNodeThreshold_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "findAllEnabledNodeThresholds",
|
||
|
|
Handler: _NodeThresholdService_FindAllEnabledNodeThresholds_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "countAllEnabledNodeThresholds",
|
||
|
|
Handler: _NodeThresholdService_CountAllEnabledNodeThresholds_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "findEnabledNodeThreshold",
|
||
|
|
Handler: _NodeThresholdService_FindEnabledNodeThreshold_Handler,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Streams: []grpc.StreamDesc{},
|
||
|
|
Metadata: "service_node_threshold.proto",
|
||
|
|
}
|