IntegrationsCheck-Widget-NumberChecked
Data output script for populating the dashboard number graph widget with the number of checked integrations.
Details
| ID | IntegrationsCheck-Widget-NumberChecked |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | widget failedInstances |
README
Data output script for populating the dashboard number graph widget with the number of checked integrations.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | widget, failedInstances |
| Cortex XSOAR Version | 6.0.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): list_data = demisto.executeCommand("getList", {"listName": "XSOAR Health - Checked Integrations"}) list_content = list(list_data[0].get("Contents", "").split(",")) failing_incident_count = len(list_content) if list_content == [""]: demisto.results(0) else: demisto.results(failing_incident_count) if __name__ in ["__main__", "builtin", "builtins"]: main()