Skip to content

Commit

Permalink
Updated demisto.updateModuleHealth (demisto#19020)
Browse files Browse the repository at this point in the history
* updated demistomock

* cr fix
  • Loading branch information
dantavori authored May 15, 2022
1 parent 9ec281e commit 45bc96e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tests/demistomock/demistomock.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,12 +905,14 @@ def mirrorInvestigation(id, mirrorType, autoClose=False):
return ""


def updateModuleHealth(error):
def updateModuleHealth(data, is_error=False):
"""(Integration only)
Updated integration module health with given error message
Updated integration module health with given message
Args:
error (str): The error message to display in the integration module health
data (Union[str, dict]): Either the message to display in the integration module health,
or a dictionary containing the "eventsPulled" field (number).
is_error (bool): Whether or not to display it as an error message in the fetch history.
Returns:
None: No data returned
Expand Down

0 comments on commit 45bc96e

Please sign in to comment.