Files
EdgeCommon/pkg/rpc/pb/service_server_daily_stat.pb.go
2022-04-15 12:14:42 +08:00

1472 lines
60 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: service_server_daily_stat.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 UploadServerDailyStatsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Stats []*ServerDailyStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
DomainStats []*UploadServerDailyStatsRequest_DomainStat `protobuf:"bytes,2,rep,name=domainStats,proto3" json:"domainStats,omitempty"`
}
func (x *UploadServerDailyStatsRequest) Reset() {
*x = UploadServerDailyStatsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UploadServerDailyStatsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UploadServerDailyStatsRequest) ProtoMessage() {}
func (x *UploadServerDailyStatsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 UploadServerDailyStatsRequest.ProtoReflect.Descriptor instead.
func (*UploadServerDailyStatsRequest) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{0}
}
func (x *UploadServerDailyStatsRequest) GetStats() []*ServerDailyStat {
if x != nil {
return x.Stats
}
return nil
}
func (x *UploadServerDailyStatsRequest) GetDomainStats() []*UploadServerDailyStatsRequest_DomainStat {
if x != nil {
return x.DomainStats
}
return nil
}
// 按小时读取统计数据
type FindLatestServerHourlyStatsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
Hours int32 `protobuf:"varint,2,opt,name=hours,proto3" json:"hours,omitempty"`
}
func (x *FindLatestServerHourlyStatsRequest) Reset() {
*x = FindLatestServerHourlyStatsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerHourlyStatsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerHourlyStatsRequest) ProtoMessage() {}
func (x *FindLatestServerHourlyStatsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 FindLatestServerHourlyStatsRequest.ProtoReflect.Descriptor instead.
func (*FindLatestServerHourlyStatsRequest) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{1}
}
func (x *FindLatestServerHourlyStatsRequest) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *FindLatestServerHourlyStatsRequest) GetHours() int32 {
if x != nil {
return x.Hours
}
return 0
}
type FindLatestServerHourlyStatsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Stats []*FindLatestServerHourlyStatsResponse_HourlyStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
}
func (x *FindLatestServerHourlyStatsResponse) Reset() {
*x = FindLatestServerHourlyStatsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerHourlyStatsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerHourlyStatsResponse) ProtoMessage() {}
func (x *FindLatestServerHourlyStatsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 FindLatestServerHourlyStatsResponse.ProtoReflect.Descriptor instead.
func (*FindLatestServerHourlyStatsResponse) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{2}
}
func (x *FindLatestServerHourlyStatsResponse) GetStats() []*FindLatestServerHourlyStatsResponse_HourlyStat {
if x != nil {
return x.Stats
}
return nil
}
// 按分钟读取统计数据
type FindLatestServerMinutelyStatsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
Minutes int32 `protobuf:"varint,2,opt,name=minutes,proto3" json:"minutes,omitempty"`
}
func (x *FindLatestServerMinutelyStatsRequest) Reset() {
*x = FindLatestServerMinutelyStatsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerMinutelyStatsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerMinutelyStatsRequest) ProtoMessage() {}
func (x *FindLatestServerMinutelyStatsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 FindLatestServerMinutelyStatsRequest.ProtoReflect.Descriptor instead.
func (*FindLatestServerMinutelyStatsRequest) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{3}
}
func (x *FindLatestServerMinutelyStatsRequest) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *FindLatestServerMinutelyStatsRequest) GetMinutes() int32 {
if x != nil {
return x.Minutes
}
return 0
}
type FindLatestServerMinutelyStatsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Stats []*FindLatestServerMinutelyStatsResponse_MinutelyStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
}
func (x *FindLatestServerMinutelyStatsResponse) Reset() {
*x = FindLatestServerMinutelyStatsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerMinutelyStatsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerMinutelyStatsResponse) ProtoMessage() {}
func (x *FindLatestServerMinutelyStatsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 FindLatestServerMinutelyStatsResponse.ProtoReflect.Descriptor instead.
func (*FindLatestServerMinutelyStatsResponse) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{4}
}
func (x *FindLatestServerMinutelyStatsResponse) GetStats() []*FindLatestServerMinutelyStatsResponse_MinutelyStat {
if x != nil {
return x.Stats
}
return nil
}
// 按日读取统计数据
type FindLatestServerDailyStatsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
Days int32 `protobuf:"varint,2,opt,name=days,proto3" json:"days,omitempty"`
}
func (x *FindLatestServerDailyStatsRequest) Reset() {
*x = FindLatestServerDailyStatsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerDailyStatsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerDailyStatsRequest) ProtoMessage() {}
func (x *FindLatestServerDailyStatsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 FindLatestServerDailyStatsRequest.ProtoReflect.Descriptor instead.
func (*FindLatestServerDailyStatsRequest) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{5}
}
func (x *FindLatestServerDailyStatsRequest) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *FindLatestServerDailyStatsRequest) GetDays() int32 {
if x != nil {
return x.Days
}
return 0
}
type FindLatestServerDailyStatsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Stats []*FindLatestServerDailyStatsResponse_DailyStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
}
func (x *FindLatestServerDailyStatsResponse) Reset() {
*x = FindLatestServerDailyStatsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerDailyStatsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerDailyStatsResponse) ProtoMessage() {}
func (x *FindLatestServerDailyStatsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 FindLatestServerDailyStatsResponse.ProtoReflect.Descriptor instead.
func (*FindLatestServerDailyStatsResponse) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{6}
}
func (x *FindLatestServerDailyStatsResponse) GetStats() []*FindLatestServerDailyStatsResponse_DailyStat {
if x != nil {
return x.Stats
}
return nil
}
// 查找单个服务当前统计数据
type SumCurrentServerDailyStatsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
}
func (x *SumCurrentServerDailyStatsRequest) Reset() {
*x = SumCurrentServerDailyStatsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SumCurrentServerDailyStatsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SumCurrentServerDailyStatsRequest) ProtoMessage() {}
func (x *SumCurrentServerDailyStatsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 SumCurrentServerDailyStatsRequest.ProtoReflect.Descriptor instead.
func (*SumCurrentServerDailyStatsRequest) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{7}
}
func (x *SumCurrentServerDailyStatsRequest) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
type SumCurrentServerDailyStatsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerDailyStat *ServerDailyStat `protobuf:"bytes,1,opt,name=serverDailyStat,proto3" json:"serverDailyStat,omitempty"`
}
func (x *SumCurrentServerDailyStatsResponse) Reset() {
*x = SumCurrentServerDailyStatsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SumCurrentServerDailyStatsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SumCurrentServerDailyStatsResponse) ProtoMessage() {}
func (x *SumCurrentServerDailyStatsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_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 SumCurrentServerDailyStatsResponse.ProtoReflect.Descriptor instead.
func (*SumCurrentServerDailyStatsResponse) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{8}
}
func (x *SumCurrentServerDailyStatsResponse) GetServerDailyStat() *ServerDailyStat {
if x != nil {
return x.ServerDailyStat
}
return nil
}
type UploadServerDailyStatsRequest_DomainStat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
Bytes int64 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"`
CachedBytes int64 `protobuf:"varint,4,opt,name=cachedBytes,proto3" json:"cachedBytes,omitempty"`
CountRequests int64 `protobuf:"varint,5,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
CountCachedRequests int64 `protobuf:"varint,6,opt,name=countCachedRequests,proto3" json:"countCachedRequests,omitempty"`
CountAttackRequests int64 `protobuf:"varint,8,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"`
AttackBytes int64 `protobuf:"varint,9,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"`
CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
}
func (x *UploadServerDailyStatsRequest_DomainStat) Reset() {
*x = UploadServerDailyStatsRequest_DomainStat{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UploadServerDailyStatsRequest_DomainStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UploadServerDailyStatsRequest_DomainStat) ProtoMessage() {}
func (x *UploadServerDailyStatsRequest_DomainStat) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_proto_msgTypes[9]
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 UploadServerDailyStatsRequest_DomainStat.ProtoReflect.Descriptor instead.
func (*UploadServerDailyStatsRequest_DomainStat) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{0, 0}
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetBytes() int64 {
if x != nil {
return x.Bytes
}
return 0
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetCachedBytes() int64 {
if x != nil {
return x.CachedBytes
}
return 0
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetCountRequests() int64 {
if x != nil {
return x.CountRequests
}
return 0
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetCountCachedRequests() int64 {
if x != nil {
return x.CountCachedRequests
}
return 0
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetCountAttackRequests() int64 {
if x != nil {
return x.CountAttackRequests
}
return 0
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetAttackBytes() int64 {
if x != nil {
return x.AttackBytes
}
return 0
}
func (x *UploadServerDailyStatsRequest_DomainStat) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
type FindLatestServerHourlyStatsResponse_HourlyStat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hour string `protobuf:"bytes,1,opt,name=hour,proto3" json:"hour,omitempty"`
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
CachedBytes int64 `protobuf:"varint,3,opt,name=cachedBytes,proto3" json:"cachedBytes,omitempty"`
CountRequests int64 `protobuf:"varint,4,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
CountCachedRequests int64 `protobuf:"varint,5,opt,name=countCachedRequests,proto3" json:"countCachedRequests,omitempty"`
}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) Reset() {
*x = FindLatestServerHourlyStatsResponse_HourlyStat{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerHourlyStatsResponse_HourlyStat) ProtoMessage() {}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_proto_msgTypes[10]
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 FindLatestServerHourlyStatsResponse_HourlyStat.ProtoReflect.Descriptor instead.
func (*FindLatestServerHourlyStatsResponse_HourlyStat) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{2, 0}
}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) GetHour() string {
if x != nil {
return x.Hour
}
return ""
}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) GetBytes() int64 {
if x != nil {
return x.Bytes
}
return 0
}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) GetCachedBytes() int64 {
if x != nil {
return x.CachedBytes
}
return 0
}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) GetCountRequests() int64 {
if x != nil {
return x.CountRequests
}
return 0
}
func (x *FindLatestServerHourlyStatsResponse_HourlyStat) GetCountCachedRequests() int64 {
if x != nil {
return x.CountCachedRequests
}
return 0
}
type FindLatestServerMinutelyStatsResponse_MinutelyStat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Minute string `protobuf:"bytes,1,opt,name=minute,proto3" json:"minute,omitempty"`
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
CachedBytes int64 `protobuf:"varint,3,opt,name=cachedBytes,proto3" json:"cachedBytes,omitempty"`
CountRequests int64 `protobuf:"varint,4,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
CountCachedRequests int64 `protobuf:"varint,5,opt,name=countCachedRequests,proto3" json:"countCachedRequests,omitempty"`
}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) Reset() {
*x = FindLatestServerMinutelyStatsResponse_MinutelyStat{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerMinutelyStatsResponse_MinutelyStat) ProtoMessage() {}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_proto_msgTypes[11]
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 FindLatestServerMinutelyStatsResponse_MinutelyStat.ProtoReflect.Descriptor instead.
func (*FindLatestServerMinutelyStatsResponse_MinutelyStat) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{4, 0}
}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) GetMinute() string {
if x != nil {
return x.Minute
}
return ""
}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) GetBytes() int64 {
if x != nil {
return x.Bytes
}
return 0
}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) GetCachedBytes() int64 {
if x != nil {
return x.CachedBytes
}
return 0
}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) GetCountRequests() int64 {
if x != nil {
return x.CountRequests
}
return 0
}
func (x *FindLatestServerMinutelyStatsResponse_MinutelyStat) GetCountCachedRequests() int64 {
if x != nil {
return x.CountCachedRequests
}
return 0
}
type FindLatestServerDailyStatsResponse_DailyStat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Day string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"`
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
CachedBytes int64 `protobuf:"varint,3,opt,name=cachedBytes,proto3" json:"cachedBytes,omitempty"`
CountRequests int64 `protobuf:"varint,4,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
CountCachedRequests int64 `protobuf:"varint,5,opt,name=countCachedRequests,proto3" json:"countCachedRequests,omitempty"`
}
func (x *FindLatestServerDailyStatsResponse_DailyStat) Reset() {
*x = FindLatestServerDailyStatsResponse_DailyStat{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_daily_stat_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindLatestServerDailyStatsResponse_DailyStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindLatestServerDailyStatsResponse_DailyStat) ProtoMessage() {}
func (x *FindLatestServerDailyStatsResponse_DailyStat) ProtoReflect() protoreflect.Message {
mi := &file_service_server_daily_stat_proto_msgTypes[12]
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 FindLatestServerDailyStatsResponse_DailyStat.ProtoReflect.Descriptor instead.
func (*FindLatestServerDailyStatsResponse_DailyStat) Descriptor() ([]byte, []int) {
return file_service_server_daily_stat_proto_rawDescGZIP(), []int{6, 0}
}
func (x *FindLatestServerDailyStatsResponse_DailyStat) GetDay() string {
if x != nil {
return x.Day
}
return ""
}
func (x *FindLatestServerDailyStatsResponse_DailyStat) GetBytes() int64 {
if x != nil {
return x.Bytes
}
return 0
}
func (x *FindLatestServerDailyStatsResponse_DailyStat) GetCachedBytes() int64 {
if x != nil {
return x.CachedBytes
}
return 0
}
func (x *FindLatestServerDailyStatsResponse_DailyStat) GetCountRequests() int64 {
if x != nil {
return x.CountRequests
}
return 0
}
func (x *FindLatestServerDailyStatsResponse_DailyStat) GetCountCachedRequests() int64 {
if x != nil {
return x.CountCachedRequests
}
return 0
}
var File_service_server_daily_stat_proto protoreflect.FileDescriptor
var file_service_server_daily_stat_proto_rawDesc = []byte{
0x0a, 0x1f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
0x5f, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x24, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x69, 0x6c, 0x79,
0x5f, 0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x22, 0xdf, 0x03, 0x0a, 0x1d, 0x55, 0x70, 0x6c, 0x6f, 0x61,
0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x72,
0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x52, 0x05, 0x73, 0x74,
0x61, 0x74, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61,
0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53,
0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74,
0x61, 0x74, 0x73, 0x1a, 0xc2, 0x02, 0x0a, 0x0a, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74,
0x61, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16,
0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18,
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b,
0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x24,
0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18,
0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x61, 0x63,
0x68, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28,
0x03, 0x52, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41,
0x74, 0x74, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x08, 0x20,
0x01, 0x28, 0x03, 0x52, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61,
0x63, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61,
0x74, 0x74, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x56, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64,
0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x6f, 0x75, 0x72,
0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a,
0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f,
0x75, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x68, 0x6f, 0x75, 0x72, 0x73,
0x22, 0xa2, 0x02, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x6f, 0x75,
0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x2e, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x52, 0x05, 0x73, 0x74, 0x61,
0x74, 0x73, 0x1a, 0xb0, 0x01, 0x0a, 0x0a, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61,
0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x68, 0x6f, 0x75, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63,
0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x24, 0x0a,
0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x04,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68,
0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
0x52, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x5c, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74,
0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x6c,
0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a,
0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x69, 0x6e,
0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x75,
0x74, 0x65, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65,
0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x6c, 0x79,
0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a,
0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76,
0x65, 0x72, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x6c, 0x79,
0x53, 0x74, 0x61, 0x74, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0xb6, 0x01, 0x0a, 0x0c,
0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x06,
0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x69,
0x6e, 0x75, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x61,
0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65,
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x73, 0x22, 0x53, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65,
0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61,
0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72,
0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72,
0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x22, 0x46, 0x69,
0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61,
0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x46, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x30, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61,
0x74, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0xad, 0x01, 0x0a, 0x09, 0x44, 0x61, 0x69,
0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x20,
0x0a, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73,
0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43,
0x61, 0x63, 0x68, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20,
0x01, 0x28, 0x03, 0x52, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x3f, 0x0a, 0x21, 0x53, 0x75, 0x6d, 0x43,
0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c,
0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a,
0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0x63, 0x0a, 0x22, 0x53, 0x75, 0x6d,
0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69,
0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x3d, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74,
0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65,
0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0f, 0x73,
0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x32, 0xa5,
0x04, 0x0a, 0x16, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74,
0x61, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x6c,
0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74,
0x61, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53,
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x4c, 0x61,
0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79,
0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c,
0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x6f, 0x75, 0x72, 0x6c,
0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72,
0x76, 0x65, 0x72, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x4c, 0x61,
0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65,
0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x69, 0x6e,
0x75, 0x74, 0x65, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73,
0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x6c, 0x79, 0x53,
0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x1a,
0x66, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73,
0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x1a, 0x73, 0x75, 0x6d,
0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69,
0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x6d,
0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69,
0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26,
0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x6d, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x65,
0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 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_server_daily_stat_proto_rawDescOnce sync.Once
file_service_server_daily_stat_proto_rawDescData = file_service_server_daily_stat_proto_rawDesc
)
func file_service_server_daily_stat_proto_rawDescGZIP() []byte {
file_service_server_daily_stat_proto_rawDescOnce.Do(func() {
file_service_server_daily_stat_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_server_daily_stat_proto_rawDescData)
})
return file_service_server_daily_stat_proto_rawDescData
}
var file_service_server_daily_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_service_server_daily_stat_proto_goTypes = []interface{}{
(*UploadServerDailyStatsRequest)(nil), // 0: pb.UploadServerDailyStatsRequest
(*FindLatestServerHourlyStatsRequest)(nil), // 1: pb.FindLatestServerHourlyStatsRequest
(*FindLatestServerHourlyStatsResponse)(nil), // 2: pb.FindLatestServerHourlyStatsResponse
(*FindLatestServerMinutelyStatsRequest)(nil), // 3: pb.FindLatestServerMinutelyStatsRequest
(*FindLatestServerMinutelyStatsResponse)(nil), // 4: pb.FindLatestServerMinutelyStatsResponse
(*FindLatestServerDailyStatsRequest)(nil), // 5: pb.FindLatestServerDailyStatsRequest
(*FindLatestServerDailyStatsResponse)(nil), // 6: pb.FindLatestServerDailyStatsResponse
(*SumCurrentServerDailyStatsRequest)(nil), // 7: pb.SumCurrentServerDailyStatsRequest
(*SumCurrentServerDailyStatsResponse)(nil), // 8: pb.SumCurrentServerDailyStatsResponse
(*UploadServerDailyStatsRequest_DomainStat)(nil), // 9: pb.UploadServerDailyStatsRequest.DomainStat
(*FindLatestServerHourlyStatsResponse_HourlyStat)(nil), // 10: pb.FindLatestServerHourlyStatsResponse.HourlyStat
(*FindLatestServerMinutelyStatsResponse_MinutelyStat)(nil), // 11: pb.FindLatestServerMinutelyStatsResponse.MinutelyStat
(*FindLatestServerDailyStatsResponse_DailyStat)(nil), // 12: pb.FindLatestServerDailyStatsResponse.DailyStat
(*ServerDailyStat)(nil), // 13: pb.ServerDailyStat
(*RPCSuccess)(nil), // 14: pb.RPCSuccess
}
var file_service_server_daily_stat_proto_depIdxs = []int32{
13, // 0: pb.UploadServerDailyStatsRequest.stats:type_name -> pb.ServerDailyStat
9, // 1: pb.UploadServerDailyStatsRequest.domainStats:type_name -> pb.UploadServerDailyStatsRequest.DomainStat
10, // 2: pb.FindLatestServerHourlyStatsResponse.stats:type_name -> pb.FindLatestServerHourlyStatsResponse.HourlyStat
11, // 3: pb.FindLatestServerMinutelyStatsResponse.stats:type_name -> pb.FindLatestServerMinutelyStatsResponse.MinutelyStat
12, // 4: pb.FindLatestServerDailyStatsResponse.stats:type_name -> pb.FindLatestServerDailyStatsResponse.DailyStat
13, // 5: pb.SumCurrentServerDailyStatsResponse.serverDailyStat:type_name -> pb.ServerDailyStat
0, // 6: pb.ServerDailyStatService.uploadServerDailyStats:input_type -> pb.UploadServerDailyStatsRequest
1, // 7: pb.ServerDailyStatService.findLatestServerHourlyStats:input_type -> pb.FindLatestServerHourlyStatsRequest
3, // 8: pb.ServerDailyStatService.findLatestServerMinutelyStats:input_type -> pb.FindLatestServerMinutelyStatsRequest
5, // 9: pb.ServerDailyStatService.findLatestServerDailyStats:input_type -> pb.FindLatestServerDailyStatsRequest
7, // 10: pb.ServerDailyStatService.sumCurrentServerDailyStats:input_type -> pb.SumCurrentServerDailyStatsRequest
14, // 11: pb.ServerDailyStatService.uploadServerDailyStats:output_type -> pb.RPCSuccess
2, // 12: pb.ServerDailyStatService.findLatestServerHourlyStats:output_type -> pb.FindLatestServerHourlyStatsResponse
4, // 13: pb.ServerDailyStatService.findLatestServerMinutelyStats:output_type -> pb.FindLatestServerMinutelyStatsResponse
6, // 14: pb.ServerDailyStatService.findLatestServerDailyStats:output_type -> pb.FindLatestServerDailyStatsResponse
8, // 15: pb.ServerDailyStatService.sumCurrentServerDailyStats:output_type -> pb.SumCurrentServerDailyStatsResponse
11, // [11:16] is the sub-list for method output_type
6, // [6:11] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_service_server_daily_stat_proto_init() }
func file_service_server_daily_stat_proto_init() {
if File_service_server_daily_stat_proto != nil {
return
}
file_models_model_server_daily_stat_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_server_daily_stat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UploadServerDailyStatsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerHourlyStatsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerHourlyStatsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerMinutelyStatsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerMinutelyStatsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerDailyStatsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerDailyStatsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SumCurrentServerDailyStatsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SumCurrentServerDailyStatsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UploadServerDailyStatsRequest_DomainStat); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerHourlyStatsResponse_HourlyStat); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerMinutelyStatsResponse_MinutelyStat); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_daily_stat_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindLatestServerDailyStatsResponse_DailyStat); 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_server_daily_stat_proto_rawDesc,
NumEnums: 0,
NumMessages: 13,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_server_daily_stat_proto_goTypes,
DependencyIndexes: file_service_server_daily_stat_proto_depIdxs,
MessageInfos: file_service_server_daily_stat_proto_msgTypes,
}.Build()
File_service_server_daily_stat_proto = out.File
file_service_server_daily_stat_proto_rawDesc = nil
file_service_server_daily_stat_proto_goTypes = nil
file_service_server_daily_stat_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
// ServerDailyStatServiceClient is the client API for ServerDailyStatService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServerDailyStatServiceClient interface {
// 上传统计
UploadServerDailyStats(ctx context.Context, in *UploadServerDailyStatsRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 按小时读取统计数据
FindLatestServerHourlyStats(ctx context.Context, in *FindLatestServerHourlyStatsRequest, opts ...grpc.CallOption) (*FindLatestServerHourlyStatsResponse, error)
// 按分钟读取统计数据
FindLatestServerMinutelyStats(ctx context.Context, in *FindLatestServerMinutelyStatsRequest, opts ...grpc.CallOption) (*FindLatestServerMinutelyStatsResponse, error)
// 按日读取统计数据
FindLatestServerDailyStats(ctx context.Context, in *FindLatestServerDailyStatsRequest, opts ...grpc.CallOption) (*FindLatestServerDailyStatsResponse, error)
// 查找单个服务当前统计数据
SumCurrentServerDailyStats(ctx context.Context, in *SumCurrentServerDailyStatsRequest, opts ...grpc.CallOption) (*SumCurrentServerDailyStatsResponse, error)
}
type serverDailyStatServiceClient struct {
cc grpc.ClientConnInterface
}
func NewServerDailyStatServiceClient(cc grpc.ClientConnInterface) ServerDailyStatServiceClient {
return &serverDailyStatServiceClient{cc}
}
func (c *serverDailyStatServiceClient) UploadServerDailyStats(ctx context.Context, in *UploadServerDailyStatsRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.ServerDailyStatService/uploadServerDailyStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serverDailyStatServiceClient) FindLatestServerHourlyStats(ctx context.Context, in *FindLatestServerHourlyStatsRequest, opts ...grpc.CallOption) (*FindLatestServerHourlyStatsResponse, error) {
out := new(FindLatestServerHourlyStatsResponse)
err := c.cc.Invoke(ctx, "/pb.ServerDailyStatService/findLatestServerHourlyStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serverDailyStatServiceClient) FindLatestServerMinutelyStats(ctx context.Context, in *FindLatestServerMinutelyStatsRequest, opts ...grpc.CallOption) (*FindLatestServerMinutelyStatsResponse, error) {
out := new(FindLatestServerMinutelyStatsResponse)
err := c.cc.Invoke(ctx, "/pb.ServerDailyStatService/findLatestServerMinutelyStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serverDailyStatServiceClient) FindLatestServerDailyStats(ctx context.Context, in *FindLatestServerDailyStatsRequest, opts ...grpc.CallOption) (*FindLatestServerDailyStatsResponse, error) {
out := new(FindLatestServerDailyStatsResponse)
err := c.cc.Invoke(ctx, "/pb.ServerDailyStatService/findLatestServerDailyStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serverDailyStatServiceClient) SumCurrentServerDailyStats(ctx context.Context, in *SumCurrentServerDailyStatsRequest, opts ...grpc.CallOption) (*SumCurrentServerDailyStatsResponse, error) {
out := new(SumCurrentServerDailyStatsResponse)
err := c.cc.Invoke(ctx, "/pb.ServerDailyStatService/sumCurrentServerDailyStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ServerDailyStatServiceServer is the server API for ServerDailyStatService service.
type ServerDailyStatServiceServer interface {
// 上传统计
UploadServerDailyStats(context.Context, *UploadServerDailyStatsRequest) (*RPCSuccess, error)
// 按小时读取统计数据
FindLatestServerHourlyStats(context.Context, *FindLatestServerHourlyStatsRequest) (*FindLatestServerHourlyStatsResponse, error)
// 按分钟读取统计数据
FindLatestServerMinutelyStats(context.Context, *FindLatestServerMinutelyStatsRequest) (*FindLatestServerMinutelyStatsResponse, error)
// 按日读取统计数据
FindLatestServerDailyStats(context.Context, *FindLatestServerDailyStatsRequest) (*FindLatestServerDailyStatsResponse, error)
// 查找单个服务当前统计数据
SumCurrentServerDailyStats(context.Context, *SumCurrentServerDailyStatsRequest) (*SumCurrentServerDailyStatsResponse, error)
}
// UnimplementedServerDailyStatServiceServer can be embedded to have forward compatible implementations.
type UnimplementedServerDailyStatServiceServer struct {
}
func (*UnimplementedServerDailyStatServiceServer) UploadServerDailyStats(context.Context, *UploadServerDailyStatsRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadServerDailyStats not implemented")
}
func (*UnimplementedServerDailyStatServiceServer) FindLatestServerHourlyStats(context.Context, *FindLatestServerHourlyStatsRequest) (*FindLatestServerHourlyStatsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindLatestServerHourlyStats not implemented")
}
func (*UnimplementedServerDailyStatServiceServer) FindLatestServerMinutelyStats(context.Context, *FindLatestServerMinutelyStatsRequest) (*FindLatestServerMinutelyStatsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindLatestServerMinutelyStats not implemented")
}
func (*UnimplementedServerDailyStatServiceServer) FindLatestServerDailyStats(context.Context, *FindLatestServerDailyStatsRequest) (*FindLatestServerDailyStatsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindLatestServerDailyStats not implemented")
}
func (*UnimplementedServerDailyStatServiceServer) SumCurrentServerDailyStats(context.Context, *SumCurrentServerDailyStatsRequest) (*SumCurrentServerDailyStatsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SumCurrentServerDailyStats not implemented")
}
func RegisterServerDailyStatServiceServer(s *grpc.Server, srv ServerDailyStatServiceServer) {
s.RegisterService(&_ServerDailyStatService_serviceDesc, srv)
}
func _ServerDailyStatService_UploadServerDailyStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UploadServerDailyStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServerDailyStatServiceServer).UploadServerDailyStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ServerDailyStatService/UploadServerDailyStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServerDailyStatServiceServer).UploadServerDailyStats(ctx, req.(*UploadServerDailyStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ServerDailyStatService_FindLatestServerHourlyStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindLatestServerHourlyStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServerDailyStatServiceServer).FindLatestServerHourlyStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ServerDailyStatService/FindLatestServerHourlyStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServerDailyStatServiceServer).FindLatestServerHourlyStats(ctx, req.(*FindLatestServerHourlyStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ServerDailyStatService_FindLatestServerMinutelyStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindLatestServerMinutelyStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServerDailyStatServiceServer).FindLatestServerMinutelyStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ServerDailyStatService/FindLatestServerMinutelyStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServerDailyStatServiceServer).FindLatestServerMinutelyStats(ctx, req.(*FindLatestServerMinutelyStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ServerDailyStatService_FindLatestServerDailyStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindLatestServerDailyStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServerDailyStatServiceServer).FindLatestServerDailyStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ServerDailyStatService/FindLatestServerDailyStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServerDailyStatServiceServer).FindLatestServerDailyStats(ctx, req.(*FindLatestServerDailyStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ServerDailyStatService_SumCurrentServerDailyStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SumCurrentServerDailyStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServerDailyStatServiceServer).SumCurrentServerDailyStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ServerDailyStatService/SumCurrentServerDailyStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServerDailyStatServiceServer).SumCurrentServerDailyStats(ctx, req.(*SumCurrentServerDailyStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ServerDailyStatService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.ServerDailyStatService",
HandlerType: (*ServerDailyStatServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "uploadServerDailyStats",
Handler: _ServerDailyStatService_UploadServerDailyStats_Handler,
},
{
MethodName: "findLatestServerHourlyStats",
Handler: _ServerDailyStatService_FindLatestServerHourlyStats_Handler,
},
{
MethodName: "findLatestServerMinutelyStats",
Handler: _ServerDailyStatService_FindLatestServerMinutelyStats_Handler,
},
{
MethodName: "findLatestServerDailyStats",
Handler: _ServerDailyStatService_FindLatestServerDailyStats_Handler,
},
{
MethodName: "sumCurrentServerDailyStats",
Handler: _ServerDailyStatService_SumCurrentServerDailyStats_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_server_daily_stat.proto",
}