pb_v1

package
v0.0.0-...-9b60763 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetricsServiceServer

func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)

Types

type ClusterMetric

type ClusterMetric struct {
	InstanceMetrics      map[string]*InstanceMetric `` /* 194-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*ClusterMetric) Descriptor

func (*ClusterMetric) Descriptor() ([]byte, []int)

func (*ClusterMetric) GetInstanceMetrics

func (m *ClusterMetric) GetInstanceMetrics() map[string]*InstanceMetric

func (*ClusterMetric) ProtoMessage

func (*ClusterMetric) ProtoMessage()

func (*ClusterMetric) Reset

func (m *ClusterMetric) Reset()

func (*ClusterMetric) String

func (m *ClusterMetric) String() string

func (*ClusterMetric) XXX_DiscardUnknown

func (m *ClusterMetric) XXX_DiscardUnknown()

func (*ClusterMetric) XXX_Marshal

func (m *ClusterMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClusterMetric) XXX_Merge

func (m *ClusterMetric) XXX_Merge(src proto.Message)

func (*ClusterMetric) XXX_Size

func (m *ClusterMetric) XXX_Size() int

func (*ClusterMetric) XXX_Unmarshal

func (m *ClusterMetric) XXX_Unmarshal(b []byte) error

type GetMetricsRequest

type GetMetricsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetMetricsRequest) Descriptor

func (*GetMetricsRequest) Descriptor() ([]byte, []int)

func (*GetMetricsRequest) ProtoMessage

func (*GetMetricsRequest) ProtoMessage()

func (*GetMetricsRequest) Reset

func (m *GetMetricsRequest) Reset()

func (*GetMetricsRequest) String

func (m *GetMetricsRequest) String() string

func (*GetMetricsRequest) XXX_DiscardUnknown

func (m *GetMetricsRequest) XXX_DiscardUnknown()

func (*GetMetricsRequest) XXX_Marshal

func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetMetricsRequest) XXX_Merge

func (m *GetMetricsRequest) XXX_Merge(src proto.Message)

func (*GetMetricsRequest) XXX_Size

func (m *GetMetricsRequest) XXX_Size() int

func (*GetMetricsRequest) XXX_Unmarshal

func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error

type GetMetricsResponse

type GetMetricsResponse struct {
	ClusterMetrics       map[string]*ClusterMetric `` /* 191-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*GetMetricsResponse) Descriptor

func (*GetMetricsResponse) Descriptor() ([]byte, []int)

func (*GetMetricsResponse) GetClusterMetrics

func (m *GetMetricsResponse) GetClusterMetrics() map[string]*ClusterMetric

func (*GetMetricsResponse) ProtoMessage

func (*GetMetricsResponse) ProtoMessage()

func (*GetMetricsResponse) Reset

func (m *GetMetricsResponse) Reset()

func (*GetMetricsResponse) String

func (m *GetMetricsResponse) String() string

func (*GetMetricsResponse) XXX_DiscardUnknown

func (m *GetMetricsResponse) XXX_DiscardUnknown()

func (*GetMetricsResponse) XXX_Marshal

func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetMetricsResponse) XXX_Merge

func (m *GetMetricsResponse) XXX_Merge(src proto.Message)

func (*GetMetricsResponse) XXX_Size

func (m *GetMetricsResponse) XXX_Size() int

func (*GetMetricsResponse) XXX_Unmarshal

func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error

type InstanceMetric

type InstanceMetric struct {
	DeviceMetrics        map[string]int64 `` /* 189-byte string literal not displayed */
	Total                int64            `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Average              int64            `protobuf:"varint,3,opt,name=average,proto3" json:"average,omitempty"`
	Value                int64            `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*InstanceMetric) Descriptor

func (*InstanceMetric) Descriptor() ([]byte, []int)

func (*InstanceMetric) GetAverage

func (m *InstanceMetric) GetAverage() int64

func (*InstanceMetric) GetDeviceMetrics

func (m *InstanceMetric) GetDeviceMetrics() map[string]int64

func (*InstanceMetric) GetTotal

func (m *InstanceMetric) GetTotal() int64

func (*InstanceMetric) GetValue

func (m *InstanceMetric) GetValue() int64

func (*InstanceMetric) ProtoMessage

func (*InstanceMetric) ProtoMessage()

func (*InstanceMetric) Reset

func (m *InstanceMetric) Reset()

func (*InstanceMetric) String

func (m *InstanceMetric) String() string

func (*InstanceMetric) XXX_DiscardUnknown

func (m *InstanceMetric) XXX_DiscardUnknown()

func (*InstanceMetric) XXX_Marshal

func (m *InstanceMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstanceMetric) XXX_Merge

func (m *InstanceMetric) XXX_Merge(src proto.Message)

func (*InstanceMetric) XXX_Size

func (m *InstanceMetric) XXX_Size() int

func (*InstanceMetric) XXX_Unmarshal

func (m *InstanceMetric) XXX_Unmarshal(b []byte) error

type MetricsServiceClient

type MetricsServiceClient interface {
	Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetricsService_WatchClient, error)
	GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error)
}

MetricsServiceClient is the client API for MetricsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMetricsServiceClient

func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient

type MetricsServiceServer

type MetricsServiceServer interface {
	Watch(*WatchRequest, MetricsService_WatchServer) error
	GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error)
}

MetricsServiceServer is the server API for MetricsService service.

type MetricsService_WatchClient

type MetricsService_WatchClient interface {
	Recv() (*WatchResponse, error)
	grpc.ClientStream
}

type MetricsService_WatchServer

type MetricsService_WatchServer interface {
	Send(*WatchResponse) error
	grpc.ServerStream
}

type UnimplementedMetricsServiceServer

type UnimplementedMetricsServiceServer struct {
}

UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMetricsServiceServer) GetMetrics

func (*UnimplementedMetricsServiceServer) Watch

type WatchRequest

type WatchRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WatchRequest) Descriptor

func (*WatchRequest) Descriptor() ([]byte, []int)

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) Reset

func (m *WatchRequest) Reset()

func (*WatchRequest) String

func (m *WatchRequest) String() string

func (*WatchRequest) XXX_DiscardUnknown

func (m *WatchRequest) XXX_DiscardUnknown()

func (*WatchRequest) XXX_Marshal

func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchRequest) XXX_Merge

func (m *WatchRequest) XXX_Merge(src proto.Message)

func (*WatchRequest) XXX_Size

func (m *WatchRequest) XXX_Size() int

func (*WatchRequest) XXX_Unmarshal

func (m *WatchRequest) XXX_Unmarshal(b []byte) error

type WatchResponse

type WatchResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WatchResponse) Descriptor

func (*WatchResponse) Descriptor() ([]byte, []int)

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) Reset

func (m *WatchResponse) Reset()

func (*WatchResponse) String

func (m *WatchResponse) String() string

func (*WatchResponse) XXX_DiscardUnknown

func (m *WatchResponse) XXX_DiscardUnknown()

func (*WatchResponse) XXX_Marshal

func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchResponse) XXX_Merge

func (m *WatchResponse) XXX_Merge(src proto.Message)

func (*WatchResponse) XXX_Size

func (m *WatchResponse) XXX_Size() int

func (*WatchResponse) XXX_Unmarshal

func (m *WatchResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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