Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@ Export KRR reports directly to Azure Blob Storage and get notified in Microsoft
--teams-webhook "https://your-teams-webhook-url" \
--azure-subscription-id "your-subscription-id" \
--azure-resource-group "your-resource-group"
--width 250 (optional but HIGHLY RECOMMENDED)
```

### Features
Expand Down Expand Up @@ -747,6 +748,8 @@ krr simple -f html \
--azure-resource-group "my-resource-group"
```

Note: Consider adjusting the `--width` CLI flag for a better HTML viewing experience in browser.

### Teams Notification Features

The Teams adaptive card includes:
Expand Down
4 changes: 3 additions & 1 deletion robusta_krr/formatters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

from robusta_krr.core.abstract import formatters
from robusta_krr.core.models.result import Result
from robusta_krr.core.models.config import settings
from .table import table

@formatters.register("html")
def html(result: Result) -> str:
console = Console(record=True)
html_width = settings.width if settings.width is not None else None
console = Console(record=True, width=html_width, force_terminal=False)
table_output = table(result)
console.print(table_output)
return console.export_html(inline_styles=True)