IncidentsCheck-Widget-NumberofErrors
Data output script for populating the dashboard number graph widget with the number of entries ID errors.
Details
| ID | IncidentsCheck-Widget-NumberofErrors |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | widget failedIncidents |
README
Data output script for populating the dashboard number graph widget with the number of entries ID errors.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | widget, failedIncidents |
| 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 - Error Entries ID"}) list_content = list_data[0].get("Contents", "").split(",") entries_id_errors_count = len(list_content) if list_content == [""]: demisto.results(0) else: demisto.results(entries_id_errors_count) if __name__ in ["__main__", "builtin", "builtins"]: main()