Skip to content

Commit

Permalink
[Integration][PagerDuty] Show also secondaries on call on PagerDuty S…
Browse files Browse the repository at this point in the history
…ervice (port-labs#699)
  • Loading branch information
lordsarcastic authored Jun 26, 2024
1 parent 57037de commit bfceb3c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions integrations/pagerduty/.port/resources/blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"type": "string",
"format": "user"
},
"secondaryOncall": {
"title": "Secondary On Call",
"type": "string",
"format": "user"
},
"escalationLevels": {
"title": "Escalation Levels",
"type": "number"
Expand Down
3 changes: 2 additions & 1 deletion integrations/pagerduty/.port/resources/port-app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions integrations/pagerduty/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

# 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
Expand Down
2 changes: 1 addition & 1 deletion integrations/pagerduty/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pagerduty"
version = "0.1.73"
version = "0.1.74"
description = "Pagerduty Integration"
authors = ["Port Team <[email protected]>"]

Expand Down

0 comments on commit bfceb3c

Please sign in to comment.