You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by he...@apache.org on 2023/05/31 23:49:09 UTC
[incubator-devlake] branch release-v0.17 updated: fix: PagerDuty params should include Service Id as well (v0.17 beta exclusive) (#5335)
This is an automated email from the ASF dual-hosted git repository.
hez pushed a commit to branch release-v0.17
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.17 by this push:
new 55073ae2a fix: PagerDuty params should include Service Id as well (v0.17 beta exclusive) (#5335)
55073ae2a is described below
commit 55073ae2af461df7f6b69013ed821008992d10da
Author: Keon Amini <ke...@merico.dev>
AuthorDate: Wed May 31 18:49:05 2023 -0500
fix: PagerDuty params should include Service Id as well (v0.17 beta exclusive) (#5335)
---
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) {