This is an automated email from the ASF dual-hosted git repository.

ka94 pushed a commit to branch issues/5311
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit cac0cede5c5c539ca7a7a4d78e7918427e94ae04
Author: Keon Amini <[email protected]>
AuthorDate: Wed May 31 17:30:28 2023 -0500

    fix: PagerDuty params should include Service Id as well (v0.17 beta 
exclusive)
---
 backend/plugins/pagerduty/tasks/incidents_collector.go | 1 +
 backend/plugins/pagerduty/tasks/task_data.go           | 1 +
 2 files changed, 2 insertions(+)

diff --git a/backend/plugins/pagerduty/tasks/incidents_collector.go 
b/backend/plugins/pagerduty/tasks/incidents_collector.go
index e95de2e6d..3d514a38a 100644
--- a/backend/plugins/pagerduty/tasks/incidents_collector.go
+++ b/backend/plugins/pagerduty/tasks/incidents_collector.go
@@ -64,6 +64,7 @@ func CollectIncidents(taskCtx plugin.SubTaskContext) 
errors.Error {
                Ctx: taskCtx,
                Params: PagerDutyParams{
                        ConnectionId: data.Options.ConnectionId,
+                       ServiceId:    data.Options.ServiceId,
                },
                Table: RAW_INCIDENTS_TABLE,
        }
diff --git a/backend/plugins/pagerduty/tasks/task_data.go 
b/backend/plugins/pagerduty/tasks/task_data.go
index 91ba00329..a357dd016 100644
--- a/backend/plugins/pagerduty/tasks/task_data.go
+++ b/backend/plugins/pagerduty/tasks/task_data.go
@@ -41,6 +41,7 @@ type PagerDutyTaskData struct {
 
 type PagerDutyParams struct {
        ConnectionId uint64
+       ServiceId    string
 }
 
 func DecodeAndValidateTaskOptions(options map[string]interface{}) 
(*PagerDutyOptions, errors.Error) {

Reply via email to