Widgets
Class WidgetsService
class WidgetsService(CommonMixin, PrintMixin)
Service for managing widgets
- only supports create, delete and update (DELETE, POST)
- does not support get_all or get (GET)
create
def create(*,
dashboard_id: int,
visualization_id: Optional[int],
options: Dict,
text: str = "") -> Dict
create new widget in given dashboard
Arguments:
dashboard_id
- id of dashboard to create widget invisualization_id
- id of visualization to use for widget (pass None for text widget)options
- options to use for widgettext
- text to use for text widget
CommonMixin
update
def update(id: int, data: Dict) -> Dict
Update by ID
delete
def delete(id: int) -> None
Delete by ID
Class PrintMixin
class PrintMixin()
Mixin class for printing data