mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 23:04:20 +01:00
runtime: add implementation of GetMetrics
add implementation of `GetMetrics` for runtime. Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
@@ -254,6 +254,10 @@ func (p *gRPCProxy) GetOOMEvent(ctx context.Context, req *pb.GetOOMEventRequest)
|
||||
return &pb.OOMEvent{}, nil
|
||||
}
|
||||
|
||||
func (p *gRPCProxy) GetMetrics(ctx context.Context, req *pb.GetMetricsRequest) (*pb.Metrics, error) {
|
||||
return &pb.Metrics{}, nil
|
||||
}
|
||||
|
||||
func gRPCRegister(s *ttrpc.Server, srv interface{}) {
|
||||
switch g := srv.(type) {
|
||||
case *gRPCProxy:
|
||||
|
||||
Reference in New Issue
Block a user