thousandeyes-sdk-python/thousandeyes-sdk-dashboards/docs/ApiPieChartWidget.md
Miguel Pragosa 23bfb1d946
Some checks failed
Python CI / build (push) Has been cancelled
[GitHub Bot] Generated python SDK (#158)
Co-authored-by: API Team <api-team@thousandeyes.com>
2026-06-23 11:11:56 +01:00

48 lines
3.1 KiB
Markdown

# ApiPieChartWidget
Displays data as segments of a pie, with each slice representing a portion of the total value.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | Identifier of the widget. | [optional] [readonly]
**title** | **str** | Title of the widget | [optional]
**visual_mode** | [**VisualMode**](VisualMode.md) | | [optional]
**embed_url** | **str** | When &#x60;isEmbedded&#x60; is set to &#x60;true&#x60;, an &#x60;embedUrl&#x60; is provided. | [optional] [readonly]
**is_embedded** | **bool** | Set to &#x60;true&#x60; if widget is marked as embedded; otherwise, set to &#x60;false&#x60;. | [optional]
**metric_group** | [**MetricGroup**](MetricGroup.md) | | [optional]
**direction** | [**DashboardMetricDirection**](DashboardMetricDirection.md) | | [optional]
**metric** | [**DashboardMetric**](DashboardMetric.md) | | [optional]
**filters** | **Dict[str, List[object]]** | (Optional) Specifies the filters applied to the widget. When present, the &#x60;filters&#x60; property displays. Each filter object has two properties: &#x60;filterProperty&#x60; and &#x60;filterValue&#x60;. The &#x60;filterProperty&#x60; can be values like &#x60;AGENT&#x60;, &#x60;ENDPOINT_MACHINE_ID&#x60;, &#x60;TEST&#x60;, &#x60;MONITOR&#x60;, etc. The &#x60;filterValue&#x60; represents an identifier array of the selected property. | [optional]
**measure** | [**ApiWidgetMeasure**](ApiWidgetMeasure.md) | | [optional]
**fixed_timespan** | [**ApiDuration**](ApiDuration.md) | | [optional]
**api_link** | **str** | | [optional] [readonly]
**should_exclude_alert_suppression_windows** | **bool** | Excludes alert suppression window data if set to &#x60;true&#x60;. | [optional]
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]
**type** | **str** | Pie Chart widget type |
**group_by** | [**ApiAggregateProperty**](ApiAggregateProperty.md) | | [optional]
**data_source** | [**PieChartDatasource**](PieChartDatasource.md) | | [optional]
**show_submetrics** | **bool** | Controls how metrics with submetric components are displayed. If &#x60;true&#x60; (default), the widget displays one chart per group. If &#x60;false&#x60;, the widget displays all submetrics in a single chart. For metrics without submetric components, this field is ignored and returned as &#x60;null&#x60;. | [optional] [default to True]
## Example
```python
from thousandeyes_sdk.dashboards.models.api_pie_chart_widget import ApiPieChartWidget
# TODO update the JSON string below
json = "{}"
# create an instance of ApiPieChartWidget from a JSON string
api_pie_chart_widget_instance = ApiPieChartWidget.from_json(json)
# print the JSON string representation of the object
print(ApiPieChartWidget.to_json())
# convert the object into a dict
api_pie_chart_widget_dict = api_pie_chart_widget_instance.to_dict()
# create an instance of ApiPieChartWidget from a dict
api_pie_chart_widget_from_dict = ApiPieChartWidget.from_dict(api_pie_chart_widget_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)