diff --git a/integrations/pagerduty/.port/resources/blueprints.json b/integrations/pagerduty/.port/resources/blueprints.json index a4f7a59927..7d64462ee0 100644 --- a/integrations/pagerduty/.port/resources/blueprints.json +++ b/integrations/pagerduty/.port/resources/blueprints.json @@ -34,6 +34,11 @@ "type": "string", "format": "user" }, + "secondaryOncall": { + "title": "Secondary On Call", + "type": "string", + "format": "user" + }, "escalationLevels": { "title": "Escalation Levels", "type": "number" diff --git a/integrations/pagerduty/.port/resources/port-app-config.yaml b/integrations/pagerduty/.port/resources/port-app-config.yaml index d5b40c3dbb..44bb62838b 100644 --- a/integrations/pagerduty/.port/resources/port-app-config.yaml +++ b/integrations/pagerduty/.port/resources/port-app-config.yaml @@ -13,7 +13,8 @@ resources: properties: status: .status url: .html_url - oncall: .__oncall_user[] | select(.escalation_level == 1) | .user.email + oncall: .__oncall_user | sort_by(.escalation_level) | .[0].user.email + secondaryOncall: .__oncall_user | sort_by(.escalation_level) | .[1].user.email escalationLevels: .__oncall_user | map(.escalation_level) | unique | length meanSecondsToResolve: .__analytics.mean_seconds_to_resolve meanSecondsToFirstAck: .__analytics.mean_seconds_to_first_ack diff --git a/integrations/pagerduty/CHANGELOG.md b/integrations/pagerduty/CHANGELOG.md index 4d2b6e40ec..62d2d36983 100644 --- a/integrations/pagerduty/CHANGELOG.md +++ b/integrations/pagerduty/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +# Port_Ocean 0.1.74 (2024-06-25) + +### Features + +- Added secondary on call user to PagerDuty Service (0.1.74) + +### Improvements + +- Oncall user is calculated dynamically based on escalation levels (0.1.74) + + # Port_Ocean 0.1.73 (2024-06-23) ### Improvements diff --git a/integrations/pagerduty/pyproject.toml b/integrations/pagerduty/pyproject.toml index b280cd6d1c..0b7c2acdfd 100644 --- a/integrations/pagerduty/pyproject.toml +++ b/integrations/pagerduty/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pagerduty" -version = "0.1.73" +version = "0.1.74" description = "Pagerduty Integration" authors = ["Port Team "]