EntryWidgetNumberRegionsXCLOUD
Entry widget that returns the number of regions in a Cortex XDR incident.
- Type
- python
- Pack
- CortexXDR
Source
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
query = demisto.context().get("uniqueRegionCount")
data = {
"Type": 17,
"ContentsFormat": "number",
"Contents": {
"stats": query,
"params": {
"layout": "horizontal",
"name": "Unique Region Count",
"sign": "",
"colors": {"items": {"#00cd33": {"value": -1}, "#f57d00": {"value": 1}}},
"type": "above",
},
},
}
demisto.results(data)
README
Entry widget that returns the number of regions in a Cortex XDR incident.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 6.5.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.