getDockerContainersCount
Get the count of docker containers.
python · System Diagnostics and Health Check
Details
| ID | getDockerContainersCount |
|---|---|
| Language | python |
| From Version | 6.10.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
| Tags | statusreview widget |
README
Get the count of docker containers
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | statusreview, widget |
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 res = demisto.executeCommand("core-api-get", {"uri": "diagnostics/checks"})[0]["Contents"]["response"] wList = [] wList.append( { "Max Limit": res["checkRuns"]["diagnostic.docker.containers.count"]["result"]["metrics"]["issueLimit"], "Current Count": res["checkRuns"]["diagnostic.docker.containers.count"]["result"]["metrics"]["currentCount"], } ) return_results({"total": len(wList), "data": wList})