| Total Complexity | 1 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more | 
            ||
| 18 | class DisableIntegrationAction(OpsGenieBaseAction):  | 
            ||
| 19 | def run(self, name):  | 
            ||
| 20 | """  | 
            ||
| 21 | Disable an integration in OpsGenie.  | 
            ||
| 22 | |||
| 23 | Args:  | 
            ||
| 24 | - name: Name of integration  | 
            ||
| 25 | |||
| 26 | Returns:  | 
            ||
| 27 | - dict: Data from OpsGenie  | 
            ||
| 28 | """  | 
            ||
| 29 | |||
| 30 |         payload = {"apiKey": self.api_key, | 
            ||
| 31 | "name": name}  | 
            ||
| 32 | |||
| 33 |         data = self._req("POST", | 
            ||
| 34 | "v1/json/integration/disable",  | 
            ||
| 35 | payload=payload)  | 
            ||
| 36 | return data  | 
            ||
| 37 |