Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix: Remove automatic configure monitoring for new projects (#661)
Browse files Browse the repository at this point in the history
* Update documentation

Signed-off-by: Arthur Pitman <[email protected]>

* Remove handler and adapter

Signed-off-by: Arthur Pitman <[email protected]>
  • Loading branch information
arthurpitman authored Jan 4, 2022
1 parent 26a06d0 commit e5405eb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 153 deletions.
2 changes: 1 addition & 1 deletion documentation/feature-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ The dynatrace-service listens for the following events:
- `sh.keptn.event.release.finished`
- `sh.keptn.events.problem`
- `sh.keptn.event.monitoring.configure`
- `sh.keptn.event.project.create.finished`

4 changes: 0 additions & 4 deletions internal/event_handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ func NewEventHandler(event cloudevents.Event) DynatraceEventHandler {
switch aType := keptnEvent.(type) {
case *monitoring.ConfigureMonitoringAdapter:
return monitoring.NewConfigureMonitoringEventHandler(keptnEvent.(*monitoring.ConfigureMonitoringAdapter), dtClient, kClient, keptn.NewDefaultResourceClient(), keptn.NewDefaultServiceClient())
case *monitoring.ProjectCreateFinishedAdapter:
return monitoring.NewProjectCreateFinishedEventHandler(keptnEvent.(*monitoring.ProjectCreateFinishedAdapter), dtClient, kClient, keptn.NewDefaultResourceClient(), keptn.NewDefaultServiceClient())
case *problem.ProblemAdapter:
return problem.NewProblemEventHandler(keptnEvent.(*problem.ProblemAdapter), kClient)
case *problem.ActionTriggeredAdapter:
Expand Down Expand Up @@ -104,8 +102,6 @@ func getEventAdapter(e cloudevents.Event) (adapter.EventContentAdapter, error) {
switch e.Type() {
case keptnevents.ConfigureMonitoringEventType:
return monitoring.NewConfigureMonitoringAdapterFromEvent(e)
case keptnv2.GetFinishedEventType(keptnv2.ProjectCreateTaskName):
return monitoring.NewProjectCreateFinishedAdapterFromEvent(e)
case keptnevents.ProblemEventType:
return problem.NewProblemAdapterFromEvent(e)
case keptnv2.GetTriggeredEventType(keptnv2.ActionTaskName):
Expand Down
104 changes: 0 additions & 104 deletions internal/monitoring/project_create_finished_adapter.go

This file was deleted.

44 changes: 0 additions & 44 deletions internal/monitoring/project_create_finished_event_handler.go

This file was deleted.

0 comments on commit e5405eb

Please sign in to comment.