Skip to content

Commit

Permalink
initial work on health check
Browse files Browse the repository at this point in the history
  • Loading branch information
consolethinks committed Jan 7, 2025
1 parent 4a4fc42 commit df7a7e9
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 52 deletions.
5 changes: 5 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ paths:
tags:
- other
summary: Get the health status.
security: []
description: Retrieve information about the status of openEm components.
operationId: OtherController_getHealth
responses:
Expand Down Expand Up @@ -476,6 +477,10 @@ components:
globusStatus:
type: string
description: Status of Globus.
required:
- ingestorStatus
- scicatStatus
- globusStatus
GetExtractorResponse:
type: object
properties:
Expand Down
98 changes: 48 additions & 50 deletions internal/webserver/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions internal/webserver/other.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package webserver

import "context"
import (
"context"
)

func (i *IngestorWebServerImplemenation) OtherControllerGetVersion(ctx context.Context, request OtherControllerGetVersionRequestObject) (OtherControllerGetVersionResponseObject, error) {
return OtherControllerGetVersion200JSONResponse{
Expand All @@ -9,5 +11,9 @@ func (i *IngestorWebServerImplemenation) OtherControllerGetVersion(ctx context.C
}

func (i *IngestorWebServerImplemenation) OtherControllerGetHealth(ctx context.Context, request OtherControllerGetHealthRequestObject) (OtherControllerGetHealthResponseObject, error) {
return nil, nil
return OtherControllerGetHealth200JSONResponse{
IngestorStatus: "placeholder",
ScicatStatus: "placeholder",
GlobusStatus: "placeholder",
}, nil
}

0 comments on commit df7a7e9

Please sign in to comment.