366 lines
12 KiB
Go
366 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_metric_stat.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// 上传统计数据
|
|
type UploadMetricStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 网站ID
|
|
Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // 时间
|
|
Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // 数量
|
|
Total float32 `protobuf:"fixed32,4,opt,name=total,proto3" json:"total,omitempty"` // 总数
|
|
Version int32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` // 版本号
|
|
ItemId int64 `protobuf:"varint,6,opt,name=itemId,proto3" json:"itemId,omitempty"` // 指标ID
|
|
MetricStats []*UploadingMetricStat `protobuf:"bytes,7,rep,name=metricStats,proto3" json:"metricStats,omitempty"` // 指标统计数据
|
|
KeepKeys []string `protobuf:"bytes,8,rep,name=keepKeys,proto3" json:"keepKeys,omitempty"` // 需要保留的指标值
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) Reset() {
|
|
*x = UploadMetricStatsRequest{}
|
|
mi := &file_service_metric_stat_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadMetricStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadMetricStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_metric_stat_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadMetricStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadMetricStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_metric_stat_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetServerId() int64 {
|
|
if x != nil {
|
|
return x.ServerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetTime() string {
|
|
if x != nil {
|
|
return x.Time
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetCount() int64 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetTotal() float32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetVersion() int32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetItemId() int64 {
|
|
if x != nil {
|
|
return x.ItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetMetricStats() []*UploadingMetricStat {
|
|
if x != nil {
|
|
return x.MetricStats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadMetricStatsRequest) GetKeepKeys() []string {
|
|
if x != nil {
|
|
return x.KeepKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 计算指标数据数量
|
|
type CountMetricStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
MetricItemId int64 `protobuf:"varint,1,opt,name=metricItemId,proto3" json:"metricItemId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountMetricStatsRequest) Reset() {
|
|
*x = CountMetricStatsRequest{}
|
|
mi := &file_service_metric_stat_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountMetricStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountMetricStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *CountMetricStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_metric_stat_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountMetricStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountMetricStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_metric_stat_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CountMetricStatsRequest) GetMetricItemId() int64 {
|
|
if x != nil {
|
|
return x.MetricItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 读取单页指标数据
|
|
type ListMetricStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
MetricItemId int64 `protobuf:"varint,1,opt,name=metricItemId,proto3" json:"metricItemId,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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListMetricStatsRequest) Reset() {
|
|
*x = ListMetricStatsRequest{}
|
|
mi := &file_service_metric_stat_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListMetricStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListMetricStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListMetricStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_metric_stat_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListMetricStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListMetricStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_metric_stat_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ListMetricStatsRequest) GetMetricItemId() int64 {
|
|
if x != nil {
|
|
return x.MetricItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListMetricStatsRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListMetricStatsRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListMetricStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
MetricStats []*MetricStat `protobuf:"bytes,1,rep,name=metricStats,proto3" json:"metricStats,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListMetricStatsResponse) Reset() {
|
|
*x = ListMetricStatsResponse{}
|
|
mi := &file_service_metric_stat_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListMetricStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListMetricStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListMetricStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_metric_stat_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListMetricStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListMetricStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_metric_stat_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ListMetricStatsResponse) GetMetricStats() []*MetricStat {
|
|
if x != nil {
|
|
return x.MetricStats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_metric_stat_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_metric_stat_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x19service_metric_stat.proto\x12\x02pb\x1a\x1emodels/model_metric_stat.proto\x1a\x19models/rpc_messages.proto\"\xff\x01\n" +
|
|
"\x18UploadMetricStatsRequest\x12\x1a\n" +
|
|
"\bserverId\x18\x01 \x01(\x03R\bserverId\x12\x12\n" +
|
|
"\x04time\x18\x02 \x01(\tR\x04time\x12\x14\n" +
|
|
"\x05count\x18\x03 \x01(\x03R\x05count\x12\x14\n" +
|
|
"\x05total\x18\x04 \x01(\x02R\x05total\x12\x18\n" +
|
|
"\aversion\x18\x05 \x01(\x05R\aversion\x12\x16\n" +
|
|
"\x06itemId\x18\x06 \x01(\x03R\x06itemId\x129\n" +
|
|
"\vmetricStats\x18\a \x03(\v2\x17.pb.UploadingMetricStatR\vmetricStats\x12\x1a\n" +
|
|
"\bkeepKeys\x18\b \x03(\tR\bkeepKeys\"=\n" +
|
|
"\x17CountMetricStatsRequest\x12\"\n" +
|
|
"\fmetricItemId\x18\x01 \x01(\x03R\fmetricItemId\"h\n" +
|
|
"\x16ListMetricStatsRequest\x12\"\n" +
|
|
"\fmetricItemId\x18\x01 \x01(\x03R\fmetricItemId\x12\x16\n" +
|
|
"\x06offset\x18\x02 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\x03 \x01(\x03R\x04size\"K\n" +
|
|
"\x17ListMetricStatsResponse\x120\n" +
|
|
"\vmetricStats\x18\x01 \x03(\v2\x0e.pb.MetricStatR\vmetricStats2\xe9\x01\n" +
|
|
"\x11MetricStatService\x12A\n" +
|
|
"\x11uploadMetricStats\x12\x1c.pb.UploadMetricStatsRequest\x1a\x0e.pb.RPCSuccess\x12E\n" +
|
|
"\x10countMetricStats\x12\x1b.pb.CountMetricStatsRequest\x1a\x14.pb.RPCCountResponse\x12J\n" +
|
|
"\x0flistMetricStats\x12\x1a.pb.ListMetricStatsRequest\x1a\x1b.pb.ListMetricStatsResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_metric_stat_proto_rawDescOnce sync.Once
|
|
file_service_metric_stat_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_metric_stat_proto_rawDescGZIP() []byte {
|
|
file_service_metric_stat_proto_rawDescOnce.Do(func() {
|
|
file_service_metric_stat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_metric_stat_proto_rawDesc), len(file_service_metric_stat_proto_rawDesc)))
|
|
})
|
|
return file_service_metric_stat_proto_rawDescData
|
|
}
|
|
|
|
var file_service_metric_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_service_metric_stat_proto_goTypes = []any{
|
|
(*UploadMetricStatsRequest)(nil), // 0: pb.UploadMetricStatsRequest
|
|
(*CountMetricStatsRequest)(nil), // 1: pb.CountMetricStatsRequest
|
|
(*ListMetricStatsRequest)(nil), // 2: pb.ListMetricStatsRequest
|
|
(*ListMetricStatsResponse)(nil), // 3: pb.ListMetricStatsResponse
|
|
(*UploadingMetricStat)(nil), // 4: pb.UploadingMetricStat
|
|
(*MetricStat)(nil), // 5: pb.MetricStat
|
|
(*RPCSuccess)(nil), // 6: pb.RPCSuccess
|
|
(*RPCCountResponse)(nil), // 7: pb.RPCCountResponse
|
|
}
|
|
var file_service_metric_stat_proto_depIdxs = []int32{
|
|
4, // 0: pb.UploadMetricStatsRequest.metricStats:type_name -> pb.UploadingMetricStat
|
|
5, // 1: pb.ListMetricStatsResponse.metricStats:type_name -> pb.MetricStat
|
|
0, // 2: pb.MetricStatService.uploadMetricStats:input_type -> pb.UploadMetricStatsRequest
|
|
1, // 3: pb.MetricStatService.countMetricStats:input_type -> pb.CountMetricStatsRequest
|
|
2, // 4: pb.MetricStatService.listMetricStats:input_type -> pb.ListMetricStatsRequest
|
|
6, // 5: pb.MetricStatService.uploadMetricStats:output_type -> pb.RPCSuccess
|
|
7, // 6: pb.MetricStatService.countMetricStats:output_type -> pb.RPCCountResponse
|
|
3, // 7: pb.MetricStatService.listMetricStats:output_type -> pb.ListMetricStatsResponse
|
|
5, // [5:8] is the sub-list for method output_type
|
|
2, // [2:5] 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_stat_proto_init() }
|
|
func file_service_metric_stat_proto_init() {
|
|
if File_service_metric_stat_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_metric_stat_proto_init()
|
|
file_models_rpc_messages_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_metric_stat_proto_rawDesc), len(file_service_metric_stat_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_metric_stat_proto_goTypes,
|
|
DependencyIndexes: file_service_metric_stat_proto_depIdxs,
|
|
MessageInfos: file_service_metric_stat_proto_msgTypes,
|
|
}.Build()
|
|
File_service_metric_stat_proto = out.File
|
|
file_service_metric_stat_proto_goTypes = nil
|
|
file_service_metric_stat_proto_depIdxs = nil
|
|
}
|