Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
18 | class ListHeartbeatsAction(OpsGenieBaseAction): |
||
19 | def run(self): |
||
20 | """ |
||
21 | List details of heartbeat monitors 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/heartbeat", |
||
31 | payload=payload) |
||
32 | return data |
||
33 |