MCPcopy Index your code
hub / github.com/coder/coder / AppHealthPoster

Function AppHealthPoster

codersdk/agentsdk/agentsdk.go:410–422  ·  view source on GitHub ↗
(aAPI BatchUpdateAppHealthsClient)

Source from the content-addressed store, hash-verified

408}
409
410func AppHealthPoster(aAPI BatchUpdateAppHealthsClient) func(ctx context.Context, req PostAppHealthsRequest) error {
411 return func(ctx context.Context, req PostAppHealthsRequest) error {
412 pReq, err := ProtoFromAppHealthsRequest(req)
413 if err != nil {
414 return xerrors.Errorf("convert AppHealthsRequest: %w", err)
415 }
416 _, err = aAPI.BatchUpdateAppHealths(ctx, pReq)
417 if err != nil {
418 return xerrors.Errorf("batch update app healths: %w", err)
419 }
420 return nil
421 }
422}
423
424// AuthenticateResponse is returned when an instance ID
425// has been exchanged for a session token.

Callers 2

setupAppReporterFunction · 0.92
runMethod · 0.92

Calls 3

BatchUpdateAppHealthsMethod · 0.65
ErrorfMethod · 0.45

Tested by 1

setupAppReporterFunction · 0.74