cli.meta.roles.applications.ressources packageΒΆ

SubmodulesΒΆ

cli.meta.roles.applications.ressources.query moduleΒΆ

Filter and order the collected service rows by their numeric/scalar fields (bond, depth, the resource columns) and by service/role.

cli.meta.roles.applications.ressources.query.apply_filters(rows: list[dict[str, Any]], expr: str | None) β†’ list[dict[str, Any]]ΒΆ
cli.meta.roles.applications.ressources.query.apply_order(rows: list[dict[str, Any]], direction: str, field: str) β†’ list[dict[str, Any]]ΒΆ

cli.meta.roles.applications.ressources.render moduleΒΆ

Render the collected service rows and aggregated totals as an aligned text table or as JSON.

cli.meta.roles.applications.ressources.render.render_json(role_name: str, rows: list[dict[str, Any]], totals: dict[str, Any], warnings: list[str]) β†’ strΒΆ
cli.meta.roles.applications.ressources.render.render_summary_json(rows: list[dict[str, Any]], key_field: str, label: str, warnings: list[str]) β†’ strΒΆ
cli.meta.roles.applications.ressources.render.render_summary_text(rows: list[dict[str, Any]], key_field: str, title: str, warnings: list[str], presorted: bool = False) β†’ strΒΆ
cli.meta.roles.applications.ressources.render.render_text(role_name: str, rows: list[dict[str, Any]], totals: dict[str, Any], warnings: list[str], presorted: bool = False, total_label: str = 'TOTAL (mem=SUM, pids=SUM max-provisioned, cpus=MAX)') β†’ strΒΆ

Module contentsΒΆ