HealthCheckPacksInstalled
Presenting numbers of packs installed.
python · System Diagnostics and Health Check
Details
| ID | HealthCheckPacksInstalled |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
| Tags | dynamic-section |
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 GREEN_HTML_STYLE = "color:#00CD33;text-align:center;font-size:800%;>" def main(): incident = demisto.incidents() query = incident[0].get("CustomFields", {}).get("healthchecktotalpacksinstalled", 0) html = f"<h1 style={GREEN_HTML_STYLE}{query!s}</h1>" demisto.results({"ContentsFormat": formats["html"], "Type": entryTypes["note"], "Contents": html}) if __name__ in ["__main__", "builtin", "builtins"]: main()