Skip to content

Commit

Permalink
nix metrics rest endpoint (unused) (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
samoddball authored Aug 6, 2024
1 parent e667d3b commit 8db200d
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 618 deletions.
33 changes: 0 additions & 33 deletions docs/operations/metrics.md

This file was deleted.

90 changes: 0 additions & 90 deletions pkg/handlers/metrics.go

This file was deleted.

170 changes: 0 additions & 170 deletions pkg/handlers/metrics_test.go

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/models/metrics.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/models/system_intake.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,6 @@ type SystemIntake struct {
// SystemIntakes is a list of System Intakes
type SystemIntakes []SystemIntake

// SystemIntakeMetrics is a model for storing metrics related to system intake
type SystemIntakeMetrics struct {
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
Started int `json:"started"`
CompletedOfStarted int `json:"completedOfStarted"`
Completed int `json:"completed"`
Funded int `json:"funded"`
}

// SystemIntakeFormState represents the possible states of of any System Intake form types.
type SystemIntakeFormState string

Expand Down
12 changes: 2 additions & 10 deletions pkg/server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,6 @@ func (s *Server) routes(
api.Handle("/business_case/{business_case_id}", businessCaseHandler.Handle())
api.Handle("/business_case", businessCaseHandler.Handle())

metricsHandler := handlers.NewSystemIntakeMetricsHandler(
base,
services.NewFetchMetrics(
serviceConfig,
store.FetchSystemIntakeMetrics,
),
)
api.Handle("/metrics", metricsHandler.Handle())

actionHandler := handlers.NewActionHandler(
base,
services.NewTakeAction(
Expand Down Expand Up @@ -328,7 +319,8 @@ func (s *Server) routes(
emailClient.SystemIntake.SendSubmitBizCaseRequesterNotification,
emailClient.SystemIntake.SendSubmitBizCaseReviewerNotification,
publisher.PublishBusinessCase,
), models.ActionTypeSUBMITINTAKE: services.NewSubmitSystemIntake(
),
models.ActionTypeSUBMITINTAKE: services.NewSubmitSystemIntake(
serviceConfig,
services.AuthorizeUserIsIntakeRequester,
store.UpdateSystemIntake,
Expand Down
37 changes: 0 additions & 37 deletions pkg/services/metrics.go

This file was deleted.

Loading

0 comments on commit 8db200d

Please sign in to comment.