| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
| 18 | class ListGroupsAction(OpsGenieBaseAction): |
||
| 19 | def run(self): |
||
| 20 | """ |
||
| 21 | List groups in OpsGenie. |
||
| 22 | |||
| 23 | Returns: |
||
| 24 | - dict: Data from OpsGenie. |
||
| 25 | """ |
||
| 26 | |||
| 27 | payload = {"apiKey": self.api_key} |
||
| 28 | |||
| 29 | data = self._req("GET", |
||
| 30 | "v1/json/group", |
||
| 31 | payload=payload) |
||
| 32 | return data |
||
| 33 |