2021-06-27 22:00:02 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.25.0
|
|
|
|
|
// protoc v3.12.3
|
|
|
|
|
// source: service_metric_item.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 CreateMetricItemRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
|
|
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
|
|
|
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
|
Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
|
|
|
Period int32 `protobuf:"varint,5,opt,name=period,proto3" json:"period,omitempty"`
|
|
|
|
|
PeriodUnit string `protobuf:"bytes,6,opt,name=periodUnit,proto3" json:"periodUnit,omitempty"`
|
|
|
|
|
Value string `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
|
2021-07-19 15:22:49 +08:00
|
|
|
IsPublic bool `protobuf:"varint,8,opt,name=isPublic,proto3" json:"isPublic,omitempty"`
|
2021-06-27 22:00:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) Reset() {
|
|
|
|
|
*x = CreateMetricItemRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateMetricItemRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 CreateMetricItemRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateMetricItemRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) GetCode() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Code
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) GetCategory() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Category
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) GetName() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Name
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) GetKeys() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Keys
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) GetPeriod() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Period
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) GetPeriodUnit() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.PeriodUnit
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemRequest) GetValue() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Value
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-19 15:22:49 +08:00
|
|
|
func (x *CreateMetricItemRequest) GetIsPublic() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsPublic
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-27 22:00:02 +08:00
|
|
|
type CreateMetricItemResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
MetricItemId int64 `protobuf:"varint,1,opt,name=metricItemId,proto3" json:"metricItemId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemResponse) Reset() {
|
|
|
|
|
*x = CreateMetricItemResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateMetricItemResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 CreateMetricItemResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateMetricItemResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateMetricItemResponse) GetMetricItemId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MetricItemId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改指标
|
|
|
|
|
type UpdateMetricItemRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
MetricItemId int64 `protobuf:"varint,1,opt,name=metricItemId,proto3" json:"metricItemId,omitempty"`
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
|
Keys []string `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
|
|
|
Period int32 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"`
|
|
|
|
|
PeriodUnit string `protobuf:"bytes,5,opt,name=periodUnit,proto3" json:"periodUnit,omitempty"`
|
|
|
|
|
Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
|
IsOn bool `protobuf:"varint,7,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
2021-07-19 15:22:49 +08:00
|
|
|
IsPublic bool `protobuf:"varint,8,opt,name=isPublic,proto3" json:"isPublic,omitempty"`
|
2021-06-27 22:00:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) Reset() {
|
|
|
|
|
*x = UpdateMetricItemRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*UpdateMetricItemRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 UpdateMetricItemRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*UpdateMetricItemRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) GetMetricItemId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MetricItemId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) GetName() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Name
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) GetKeys() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Keys
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) GetPeriod() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Period
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) GetPeriodUnit() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.PeriodUnit
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) GetValue() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Value
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateMetricItemRequest) GetIsOn() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsOn
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-19 15:22:49 +08:00
|
|
|
func (x *UpdateMetricItemRequest) GetIsPublic() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsPublic
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-27 22:00:02 +08:00
|
|
|
// 查找单个指标信息
|
|
|
|
|
type FindEnabledMetricItemRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
MetricItemId int64 `protobuf:"varint,1,opt,name=metricItemId,proto3" json:"metricItemId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemRequest) Reset() {
|
|
|
|
|
*x = FindEnabledMetricItemRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[3]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindEnabledMetricItemRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 FindEnabledMetricItemRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindEnabledMetricItemRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemRequest) GetMetricItemId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MetricItemId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FindEnabledMetricItemResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
MetricItem *MetricItem `protobuf:"bytes,1,opt,name=metricItem,proto3" json:"metricItem,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemResponse) Reset() {
|
|
|
|
|
*x = FindEnabledMetricItemResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[4]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindEnabledMetricItemResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 FindEnabledMetricItemResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindEnabledMetricItemResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledMetricItemResponse) GetMetricItem() *MetricItem {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MetricItem
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 计算指标数量
|
|
|
|
|
type CountAllEnabledMetricItemsRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CountAllEnabledMetricItemsRequest) Reset() {
|
|
|
|
|
*x = CountAllEnabledMetricItemsRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[5]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CountAllEnabledMetricItemsRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CountAllEnabledMetricItemsRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CountAllEnabledMetricItemsRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 CountAllEnabledMetricItemsRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CountAllEnabledMetricItemsRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{5}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CountAllEnabledMetricItemsRequest) GetCategory() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Category
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 列出单页指标
|
|
|
|
|
type ListEnabledMetricItemsRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
|
|
|
|
|
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
|
|
|
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsRequest) Reset() {
|
|
|
|
|
*x = ListEnabledMetricItemsRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[6]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ListEnabledMetricItemsRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 ListEnabledMetricItemsRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ListEnabledMetricItemsRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{6}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsRequest) GetCategory() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Category
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsRequest) GetOffset() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Offset
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsRequest) GetSize() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Size
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ListEnabledMetricItemsResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
MetricItems []*MetricItem `protobuf:"bytes,1,rep,name=metricItems,proto3" json:"metricItems,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsResponse) Reset() {
|
|
|
|
|
*x = ListEnabledMetricItemsResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[7]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ListEnabledMetricItemsResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 ListEnabledMetricItemsResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ListEnabledMetricItemsResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{7}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ListEnabledMetricItemsResponse) GetMetricItems() []*MetricItem {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MetricItems
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除指标
|
|
|
|
|
type DeleteMetricItemRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
MetricItemId int64 `protobuf:"varint,1,opt,name=metricItemId,proto3" json:"metricItemId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteMetricItemRequest) Reset() {
|
|
|
|
|
*x = DeleteMetricItemRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_metric_item_proto_msgTypes[8]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteMetricItemRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*DeleteMetricItemRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteMetricItemRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_metric_item_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 DeleteMetricItemRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*DeleteMetricItemRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_metric_item_proto_rawDescGZIP(), []int{8}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteMetricItemRequest) GetMetricItemId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MetricItemId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var File_service_metric_item_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_service_metric_item_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x19, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
|
|
|
|
|
0x5f, 0x69, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a,
|
|
|
|
|
0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6d, 0x65,
|
|
|
|
|
0x74, 0x72, 0x69, 0x63, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
|
|
|
|
0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73,
|
2021-07-19 15:22:49 +08:00
|
|
|
0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x01, 0x0a, 0x17, 0x43,
|
2021-06-27 22:00:02 +08:00
|
|
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52,
|
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61,
|
|
|
|
|
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61,
|
|
|
|
|
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65,
|
|
|
|
|
0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x16,
|
|
|
|
|
0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
|
|
|
|
0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64,
|
|
|
|
|
0x55, 0x6e, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x69,
|
|
|
|
|
0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
2021-07-19 15:22:49 +08:00
|
|
|
0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
|
0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08,
|
|
|
|
|
0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x22, 0x3e, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61,
|
|
|
|
|
0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74,
|
|
|
|
|
0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x72,
|
|
|
|
|
0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x22, 0xe3, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64,
|
|
|
|
|
0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71,
|
2021-06-27 22:00:02 +08:00
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74,
|
|
|
|
|
0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x72,
|
2021-07-19 15:22:49 +08:00
|
|
|
0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
|
|
|
|
0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73,
|
|
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
|
|
|
|
|
0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x69,
|
|
|
|
|
0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65,
|
|
|
|
|
0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
|
|
|
|
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12,
|
|
|
|
|
0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73,
|
|
|
|
|
0x4f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x08,
|
|
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x22, 0x42,
|
|
|
|
|
0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74,
|
|
|
|
|
0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22,
|
|
|
|
|
0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d,
|
|
|
|
|
0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
|
|
|
|
0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
|
0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65,
|
|
|
|
|
0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x74,
|
|
|
|
|
0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49,
|
|
|
|
|
0x74, 0x65, 0x6d, 0x22, 0x3f, 0x0a, 0x21, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45,
|
2021-06-27 22:00:02 +08:00
|
|
|
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d,
|
2021-07-19 15:22:49 +08:00
|
|
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65,
|
|
|
|
|
0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65,
|
|
|
|
|
0x67, 0x6f, 0x72, 0x79, 0x22, 0x67, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62,
|
|
|
|
|
0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65,
|
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
|
|
|
|
|
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
|
|
|
|
|
0x79, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a,
|
|
|
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x52, 0x0a,
|
|
|
|
|
0x1e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72,
|
|
|
|
|
0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
|
0x30, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01,
|
|
|
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
|
|
|
|
|
0x49, 0x74, 0x65, 0x6d, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d,
|
|
|
|
|
0x73, 0x22, 0x3d, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69,
|
|
|
|
|
0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c,
|
|
|
|
|
0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
0x28, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64,
|
|
|
|
|
0x32, 0xfe, 0x03, 0x0a, 0x11, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x53,
|
|
|
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
|
|
|
0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e,
|
|
|
|
|
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d,
|
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
|
|
|
|
|
0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73,
|
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,
|
|
|
|
|
0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x55,
|
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52,
|
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53,
|
|
|
|
|
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e,
|
|
|
|
|
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x12,
|
|
|
|
|
0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
|
|
|
|
0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
|
|
|
|
|
0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x1a, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c,
|
|
|
|
|
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65,
|
|
|
|
|
0x6d, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c,
|
|
|
|
|
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65,
|
|
|
|
|
0x6d, 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,
|
|
|
|
|
0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65,
|
|
|
|
|
0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c,
|
|
|
|
|
0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
|
|
|
|
|
0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70,
|
|
|
|
|
0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74,
|
|
|
|
|
0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
|
0x12, 0x3f, 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
|
|
|
|
|
0x49, 0x74, 0x65, 0x6d, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
|
|
|
|
0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
|
|
|
|
|
0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
|
0x33,
|
2021-06-27 22:00:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
file_service_metric_item_proto_rawDescOnce sync.Once
|
|
|
|
|
file_service_metric_item_proto_rawDescData = file_service_metric_item_proto_rawDesc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func file_service_metric_item_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_service_metric_item_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_service_metric_item_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_metric_item_proto_rawDescData)
|
|
|
|
|
})
|
|
|
|
|
return file_service_metric_item_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_service_metric_item_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
|
|
var file_service_metric_item_proto_goTypes = []interface{}{
|
|
|
|
|
(*CreateMetricItemRequest)(nil), // 0: pb.CreateMetricItemRequest
|
|
|
|
|
(*CreateMetricItemResponse)(nil), // 1: pb.CreateMetricItemResponse
|
|
|
|
|
(*UpdateMetricItemRequest)(nil), // 2: pb.UpdateMetricItemRequest
|
|
|
|
|
(*FindEnabledMetricItemRequest)(nil), // 3: pb.FindEnabledMetricItemRequest
|
|
|
|
|
(*FindEnabledMetricItemResponse)(nil), // 4: pb.FindEnabledMetricItemResponse
|
|
|
|
|
(*CountAllEnabledMetricItemsRequest)(nil), // 5: pb.CountAllEnabledMetricItemsRequest
|
|
|
|
|
(*ListEnabledMetricItemsRequest)(nil), // 6: pb.ListEnabledMetricItemsRequest
|
|
|
|
|
(*ListEnabledMetricItemsResponse)(nil), // 7: pb.ListEnabledMetricItemsResponse
|
|
|
|
|
(*DeleteMetricItemRequest)(nil), // 8: pb.DeleteMetricItemRequest
|
|
|
|
|
(*MetricItem)(nil), // 9: pb.MetricItem
|
|
|
|
|
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
|
|
|
|
|
(*RPCCountResponse)(nil), // 11: pb.RPCCountResponse
|
|
|
|
|
}
|
|
|
|
|
var file_service_metric_item_proto_depIdxs = []int32{
|
|
|
|
|
9, // 0: pb.FindEnabledMetricItemResponse.metricItem:type_name -> pb.MetricItem
|
|
|
|
|
9, // 1: pb.ListEnabledMetricItemsResponse.metricItems:type_name -> pb.MetricItem
|
|
|
|
|
0, // 2: pb.MetricItemService.createMetricItem:input_type -> pb.CreateMetricItemRequest
|
|
|
|
|
2, // 3: pb.MetricItemService.updateMetricItem:input_type -> pb.UpdateMetricItemRequest
|
|
|
|
|
3, // 4: pb.MetricItemService.findEnabledMetricItem:input_type -> pb.FindEnabledMetricItemRequest
|
|
|
|
|
5, // 5: pb.MetricItemService.countAllEnabledMetricItems:input_type -> pb.CountAllEnabledMetricItemsRequest
|
|
|
|
|
6, // 6: pb.MetricItemService.listEnabledMetricItems:input_type -> pb.ListEnabledMetricItemsRequest
|
|
|
|
|
8, // 7: pb.MetricItemService.deleteMetricItem:input_type -> pb.DeleteMetricItemRequest
|
|
|
|
|
1, // 8: pb.MetricItemService.createMetricItem:output_type -> pb.CreateMetricItemResponse
|
|
|
|
|
10, // 9: pb.MetricItemService.updateMetricItem:output_type -> pb.RPCSuccess
|
|
|
|
|
4, // 10: pb.MetricItemService.findEnabledMetricItem:output_type -> pb.FindEnabledMetricItemResponse
|
|
|
|
|
11, // 11: pb.MetricItemService.countAllEnabledMetricItems:output_type -> pb.RPCCountResponse
|
|
|
|
|
7, // 12: pb.MetricItemService.listEnabledMetricItems:output_type -> pb.ListEnabledMetricItemsResponse
|
|
|
|
|
10, // 13: pb.MetricItemService.deleteMetricItem:output_type -> pb.RPCSuccess
|
|
|
|
|
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_metric_item_proto_init() }
|
|
|
|
|
func file_service_metric_item_proto_init() {
|
|
|
|
|
if File_service_metric_item_proto != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
file_models_model_metric_item_proto_init()
|
|
|
|
|
file_models_rpc_messages_proto_init()
|
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_service_metric_item_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CreateMetricItemRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CreateMetricItemResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*UpdateMetricItemRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindEnabledMetricItemRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindEnabledMetricItemResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CountAllEnabledMetricItemsRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*ListEnabledMetricItemsRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*ListEnabledMetricItemsResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_metric_item_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*DeleteMetricItemRequest); 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_metric_item_proto_rawDesc,
|
|
|
|
|
NumEnums: 0,
|
|
|
|
|
NumMessages: 9,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 1,
|
|
|
|
|
},
|
|
|
|
|
GoTypes: file_service_metric_item_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_service_metric_item_proto_depIdxs,
|
|
|
|
|
MessageInfos: file_service_metric_item_proto_msgTypes,
|
|
|
|
|
}.Build()
|
|
|
|
|
File_service_metric_item_proto = out.File
|
|
|
|
|
file_service_metric_item_proto_rawDesc = nil
|
|
|
|
|
file_service_metric_item_proto_goTypes = nil
|
|
|
|
|
file_service_metric_item_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
|
|
|
|
|
|
|
|
|
|
// MetricItemServiceClient is the client API for MetricItemService service.
|
|
|
|
|
//
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
type MetricItemServiceClient interface {
|
|
|
|
|
// 创建指标
|
|
|
|
|
CreateMetricItem(ctx context.Context, in *CreateMetricItemRequest, opts ...grpc.CallOption) (*CreateMetricItemResponse, error)
|
|
|
|
|
// 修改指标
|
|
|
|
|
UpdateMetricItem(ctx context.Context, in *UpdateMetricItemRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
|
|
|
|
// 查找单个指标信息
|
|
|
|
|
FindEnabledMetricItem(ctx context.Context, in *FindEnabledMetricItemRequest, opts ...grpc.CallOption) (*FindEnabledMetricItemResponse, error)
|
|
|
|
|
// 计算指标数量
|
|
|
|
|
CountAllEnabledMetricItems(ctx context.Context, in *CountAllEnabledMetricItemsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
|
|
|
|
// 列出单页指标
|
|
|
|
|
ListEnabledMetricItems(ctx context.Context, in *ListEnabledMetricItemsRequest, opts ...grpc.CallOption) (*ListEnabledMetricItemsResponse, error)
|
|
|
|
|
// 删除指标
|
|
|
|
|
DeleteMetricItem(ctx context.Context, in *DeleteMetricItemRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type metricItemServiceClient struct {
|
|
|
|
|
cc grpc.ClientConnInterface
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewMetricItemServiceClient(cc grpc.ClientConnInterface) MetricItemServiceClient {
|
|
|
|
|
return &metricItemServiceClient{cc}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *metricItemServiceClient) CreateMetricItem(ctx context.Context, in *CreateMetricItemRequest, opts ...grpc.CallOption) (*CreateMetricItemResponse, error) {
|
|
|
|
|
out := new(CreateMetricItemResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.MetricItemService/createMetricItem", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *metricItemServiceClient) UpdateMetricItem(ctx context.Context, in *UpdateMetricItemRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
|
|
|
|
out := new(RPCSuccess)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.MetricItemService/updateMetricItem", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *metricItemServiceClient) FindEnabledMetricItem(ctx context.Context, in *FindEnabledMetricItemRequest, opts ...grpc.CallOption) (*FindEnabledMetricItemResponse, error) {
|
|
|
|
|
out := new(FindEnabledMetricItemResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.MetricItemService/findEnabledMetricItem", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *metricItemServiceClient) CountAllEnabledMetricItems(ctx context.Context, in *CountAllEnabledMetricItemsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
|
|
|
|
out := new(RPCCountResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.MetricItemService/countAllEnabledMetricItems", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *metricItemServiceClient) ListEnabledMetricItems(ctx context.Context, in *ListEnabledMetricItemsRequest, opts ...grpc.CallOption) (*ListEnabledMetricItemsResponse, error) {
|
|
|
|
|
out := new(ListEnabledMetricItemsResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.MetricItemService/listEnabledMetricItems", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *metricItemServiceClient) DeleteMetricItem(ctx context.Context, in *DeleteMetricItemRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
|
|
|
|
out := new(RPCSuccess)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.MetricItemService/deleteMetricItem", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MetricItemServiceServer is the server API for MetricItemService service.
|
|
|
|
|
type MetricItemServiceServer interface {
|
|
|
|
|
// 创建指标
|
|
|
|
|
CreateMetricItem(context.Context, *CreateMetricItemRequest) (*CreateMetricItemResponse, error)
|
|
|
|
|
// 修改指标
|
|
|
|
|
UpdateMetricItem(context.Context, *UpdateMetricItemRequest) (*RPCSuccess, error)
|
|
|
|
|
// 查找单个指标信息
|
|
|
|
|
FindEnabledMetricItem(context.Context, *FindEnabledMetricItemRequest) (*FindEnabledMetricItemResponse, error)
|
|
|
|
|
// 计算指标数量
|
|
|
|
|
CountAllEnabledMetricItems(context.Context, *CountAllEnabledMetricItemsRequest) (*RPCCountResponse, error)
|
|
|
|
|
// 列出单页指标
|
|
|
|
|
ListEnabledMetricItems(context.Context, *ListEnabledMetricItemsRequest) (*ListEnabledMetricItemsResponse, error)
|
|
|
|
|
// 删除指标
|
|
|
|
|
DeleteMetricItem(context.Context, *DeleteMetricItemRequest) (*RPCSuccess, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnimplementedMetricItemServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
|
type UnimplementedMetricItemServiceServer struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*UnimplementedMetricItemServiceServer) CreateMetricItem(context.Context, *CreateMetricItemRequest) (*CreateMetricItemResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateMetricItem not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedMetricItemServiceServer) UpdateMetricItem(context.Context, *UpdateMetricItemRequest) (*RPCSuccess, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateMetricItem not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedMetricItemServiceServer) FindEnabledMetricItem(context.Context, *FindEnabledMetricItemRequest) (*FindEnabledMetricItemResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledMetricItem not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedMetricItemServiceServer) CountAllEnabledMetricItems(context.Context, *CountAllEnabledMetricItemsRequest) (*RPCCountResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledMetricItems not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedMetricItemServiceServer) ListEnabledMetricItems(context.Context, *ListEnabledMetricItemsRequest) (*ListEnabledMetricItemsResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListEnabledMetricItems not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedMetricItemServiceServer) DeleteMetricItem(context.Context, *DeleteMetricItemRequest) (*RPCSuccess, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteMetricItem not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterMetricItemServiceServer(s *grpc.Server, srv MetricItemServiceServer) {
|
|
|
|
|
s.RegisterService(&_MetricItemService_serviceDesc, srv)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _MetricItemService_CreateMetricItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CreateMetricItemRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(MetricItemServiceServer).CreateMetricItem(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.MetricItemService/CreateMetricItem",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(MetricItemServiceServer).CreateMetricItem(ctx, req.(*CreateMetricItemRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _MetricItemService_UpdateMetricItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(UpdateMetricItemRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(MetricItemServiceServer).UpdateMetricItem(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.MetricItemService/UpdateMetricItem",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(MetricItemServiceServer).UpdateMetricItem(ctx, req.(*UpdateMetricItemRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _MetricItemService_FindEnabledMetricItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(FindEnabledMetricItemRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(MetricItemServiceServer).FindEnabledMetricItem(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.MetricItemService/FindEnabledMetricItem",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(MetricItemServiceServer).FindEnabledMetricItem(ctx, req.(*FindEnabledMetricItemRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _MetricItemService_CountAllEnabledMetricItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CountAllEnabledMetricItemsRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(MetricItemServiceServer).CountAllEnabledMetricItems(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.MetricItemService/CountAllEnabledMetricItems",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(MetricItemServiceServer).CountAllEnabledMetricItems(ctx, req.(*CountAllEnabledMetricItemsRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _MetricItemService_ListEnabledMetricItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(ListEnabledMetricItemsRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(MetricItemServiceServer).ListEnabledMetricItems(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.MetricItemService/ListEnabledMetricItems",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(MetricItemServiceServer).ListEnabledMetricItems(ctx, req.(*ListEnabledMetricItemsRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _MetricItemService_DeleteMetricItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(DeleteMetricItemRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(MetricItemServiceServer).DeleteMetricItem(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.MetricItemService/DeleteMetricItem",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(MetricItemServiceServer).DeleteMetricItem(ctx, req.(*DeleteMetricItemRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _MetricItemService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "pb.MetricItemService",
|
|
|
|
|
HandlerType: (*MetricItemServiceServer)(nil),
|
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
|
{
|
|
|
|
|
MethodName: "createMetricItem",
|
|
|
|
|
Handler: _MetricItemService_CreateMetricItem_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "updateMetricItem",
|
|
|
|
|
Handler: _MetricItemService_UpdateMetricItem_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "findEnabledMetricItem",
|
|
|
|
|
Handler: _MetricItemService_FindEnabledMetricItem_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "countAllEnabledMetricItems",
|
|
|
|
|
Handler: _MetricItemService_CountAllEnabledMetricItems_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "listEnabledMetricItems",
|
|
|
|
|
Handler: _MetricItemService_ListEnabledMetricItems_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "deleteMetricItem",
|
|
|
|
|
Handler: _MetricItemService_DeleteMetricItem_Handler,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
Metadata: "service_metric_item.proto",
|
|
|
|
|
}
|