EntryWidgetNumberHostsXDR
Entry widget that returns the number of hosts in a Cortex XDR incident.
python · Cortex XDR by Palo Alto Networks
Source
import demistomock as demisto incident = demisto.incidents() data = { "Type": 17, "ContentsFormat": "number", "Contents": { "stats": int(incident[0].get("CustomFields", {}).get("xdrhostcount", 0)), "params": { "layout": "horizontal", "name": "Hosts Count", "sign": "", "colors": {"items": {"#00CD33": {"value": -1}, "#FF9000": {"value": 0}, "#FF1744": {"value": 3}}}, "type": "above", }, }, } demisto.results(data)
README
Entry widget that returns the number of hosts in a Cortex XDR incident.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 5.0.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.