MCPcopy Create free account
hub / github.com/cortexproject/cortex / HandleRequest

Method HandleRequest

pkg/alertmanager/multitenant.go:1095–1097  ·  view source on GitHub ↗

HandleRequest implements gRPC Alertmanager service, which receives request from AlertManager-Distributor.

(ctx context.Context, in *httpgrpc.HTTPRequest)

Source from the content-addressed store, hash-verified

1093
1094// HandleRequest implements gRPC Alertmanager service, which receives request from AlertManager-Distributor.
1095func (am *MultitenantAlertmanager) HandleRequest(ctx context.Context, in *httpgrpc.HTTPRequest) (*httpgrpc.HTTPResponse, error) {
1096 return am.grpcServer.Handle(ctx, in)
1097}
1098
1099// serveRequest serves the Alertmanager's web UI and API.
1100func (am *MultitenantAlertmanager) serveRequest(w http.ResponseWriter, req *http.Request) {

Callers

nothing calls this directly

Calls 1

HandleMethod · 0.65

Tested by

no test coverage detected