Commit 574ea3f
[PLGN-362]- Pager Duty - Refactor to use requests rather than pypd (#2033)
* PLGN-362-Updating pager duty to use http rather than pypd
* PLGN-362-Reducing complexity of get_on_calls method and send_request method
* PLGN-362-Adding parameterized to requirements.txt to allow unit tests to now run on git
* PLGN-362-Running black formatter on get_on_call and util/api
* PLGN-362-Updating to use correct input and output objects, also removing redunant checks for required fields
* PLGN-362-Updating to use newest version of error messages from insightconnect_plugin_runtime.exceptions
* PLGN-362-Removing redunant required check
* PLGN-362-Running black formatter on get_on_call and util/api
* PLGN-362-Adding docstrings, using the input object in the connection class
* PLGN-362-Running black formatter on get_on_call and util/api
* PLGN-362-Updating docstrings to use sphinx format
* PLGN-362-Updating examples to user real fake data
* PLGN-362-Updating black format
* PLGN-362-Making sure return for delete is of type string
* PLGN-362-Making sure return for delete is of type string
* PLGN-362-Fixing typos / tidying up code
* PLGN-362-Adding back in get user by email action + tests
* PLGN-362-using black format
* PLGN-362-adding back in prefix to eah actions description1 parent a69f81a commit 574ea3f
File tree
84 files changed
+4795
-1641
lines changed- plugins/pagerduty
- bin
- komand_pagerduty
- actions
- create_user
- delete_user_by_id
- get_on_call
- get_user_by_email
- get_user_by_id
- send_acknowledge_event
- send_resolve_event
- send_trigger_event
- connection
- tasks
- triggers
- util
- unit_test
- expected
- inputs
- responses
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
84 files changed
+4795
-1641
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
8 | 2 | | |
9 | | - | |
10 | | - | |
| 3 | + | |
| 4 | + | |
11 | 5 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 6 | | |
| 7 | + | |
16 | 8 | | |
17 | | - | |
| 9 | + | |
18 | 10 | | |
19 | | - | |
20 | 11 | | |
21 | 12 | | |
22 | | - | |
23 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
24 | 16 | | |
| 17 | + | |
| 18 | + | |
25 | 19 | | |
26 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 37 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 38 | + | |
45 | 39 | | |
46 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments