forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OpsGenie v3] Get Team Routing Rules (demisto#28620)
* [OpsGenie v3] Get Team Routing Rules (demisto#28496) * master * reverting crowdstrike.py * get-routing-rules * added release notes * quick fix * Opsgenie * fixing release note issues * bumped version * details * argument * ran demisto-sdk format on the files * added docs for the command * required True * team_id required * flake8 * improved docs for details * removed _dev * flake8g * Update Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.yml Co-authored-by: Menachem Weinfeld <90556466+mmhw@users.noreply.github.com> * Update Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.py Co-authored-by: Menachem Weinfeld <90556466+mmhw@users.noreply.github.com> * get routing rules * added outputs * outputs * ran precommit * fixed ISC001 Implicitly concatenated string literals on one line * Update the README file * Update Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.yml Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.yml Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.yml Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/OpsGenie/Integrations/OpsGenieV3/README.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/OpsGenie/Integrations/OpsGenieV3/README.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/OpsGenie/Integrations/OpsGenieV3/README.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/OpsGenie/ReleaseNotes/2_0_17.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/OpsGenie/ReleaseNotes/2_0_17.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Change output prefix "OpsGenie.Team.RoutingRules" -> "OpsGenie.TeamRoutingRule" * Fix the README file * Add isArray: true --------- Co-authored-by: Menachem Weinfeld <90556466+mmhw@users.noreply.github.com> Co-authored-by: Menachem Weinfeld <mmhw770@gmail.com> Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Fix the test playbook * Skip the TPB --------- Co-authored-by: Enes Özdemir <49711791+ennozdd@users.noreply.github.com> Co-authored-by: Menachem Weinfeld <90556466+mmhw@users.noreply.github.com> Co-authored-by: Menachem Weinfeld <mmhw770@gmail.com> Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
146 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Packs/OpsGenie/Integrations/OpsGenieV3/test_data/get_team_routing_rules.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"description": "", | ||
"id": "0234de-4870-44-82fd-f5aff14a684", | ||
"name": "Demisto_EscalationHigh", | ||
"ownerTeam": { | ||
"id": "a6604a9f-b152-54c-b31-1b9741c109", | ||
"name": "Demisto" | ||
}, | ||
"rules": [ | ||
{ | ||
"condition": "if-not-closed", | ||
"delay": { | ||
"timeAmount": 360, | ||
"timeUnit": "minutes" | ||
}, | ||
"notifyType": "admins", | ||
"recipient": { | ||
"id": "a6606a9f-b132-444c-bba1-1b97c111c109", | ||
"name": "Demisto", | ||
"type": "team" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"requestId": "f5aede7c-247e-4f38-b50b-6c9848f49beb", | ||
"took": 0.111 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### Integrations | ||
##### OpsGenie v3 | ||
|
||
- Added a new command ***opsgenie-get-team-routing-rules***. | ||
- Added a new argument **details** to the command ***opsgenie-create-alert***. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters