Versions in this module Expand all Collapse all v1 v1.51.4 Oct 3, 2022 Changes in this version + var ErrLoadReportMissing = errors.New("orca load report missing in provided metadata") + func CallMetricsServerOption() grpc.ServerOption + func ToLoadReport(md metadata.MD) (*v3orcapb.OrcaLoadReport, error) + type CallMetricRecorder struct + func CallMetricRecorderFromContext(ctx context.Context) *CallMetricRecorder + func (c *CallMetricRecorder) SetCPUUtilization(val float64) + func (c *CallMetricRecorder) SetMemoryUtilization(val float64) + func (c *CallMetricRecorder) SetRequestCost(name string, val float64) + func (c *CallMetricRecorder) SetUtilization(name string, val float64) + type Service struct + func NewService(opts ServiceOptions) (*Service, error) + func Register(s *grpc.Server, opts ServiceOptions) (*Service, error) + func (s *Service) DeleteUtilization(name string) + func (s *Service) SetCPUUtilization(val float64) + func (s *Service) SetMemoryUtilization(val float64) + func (s *Service) SetUtilization(name string, val float64) + func (s *Service) StreamCoreMetrics(req *v3orcaservicepb.OrcaLoadReportRequest, ...) error + type ServiceOptions struct + MinReportingInterval time.Duration