mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
[GitHub Bot] Generated python SDK
This commit is contained in:
parent
99f801db6d
commit
d6cfbe20ac
@ -12,7 +12,7 @@ This API provides the following operations to manage your organization:
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ Manage Cloud and Enterprise Agents available to your account in ThousandEyes.
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ For more information about the alerts, see [Alerts](https://docs.thousandeyes.co
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ For more information about monitors, see [Inside-Out BGP Visibility](https://doc
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ For more information about credentials, see [Working With Secure Credentials](ht
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -32,6 +32,7 @@ docs/ApiDuration.md
|
|||||||
docs/ApiGeoMapWidget.md
|
docs/ApiGeoMapWidget.md
|
||||||
docs/ApiGraphletPoint.md
|
docs/ApiGraphletPoint.md
|
||||||
docs/ApiGroupedBarchartWidget.md
|
docs/ApiGroupedBarchartWidget.md
|
||||||
|
docs/ApiListWidget.md
|
||||||
docs/ApiMultiMetricColumn.md
|
docs/ApiMultiMetricColumn.md
|
||||||
docs/ApiMultiMetricColumnData.md
|
docs/ApiMultiMetricColumnData.md
|
||||||
docs/ApiMultiMetricTableWidget.md
|
docs/ApiMultiMetricTableWidget.md
|
||||||
@ -93,6 +94,7 @@ docs/LegacyDurationUnit.md
|
|||||||
docs/LegacyWidgetSortDirection.md
|
docs/LegacyWidgetSortDirection.md
|
||||||
docs/LegacyWidgetSortProperty.md
|
docs/LegacyWidgetSortProperty.md
|
||||||
docs/Link.md
|
docs/Link.md
|
||||||
|
docs/ListDatasource.md
|
||||||
docs/MetricGroup.md
|
docs/MetricGroup.md
|
||||||
docs/MultiMetricsTableDatasource.md
|
docs/MultiMetricsTableDatasource.md
|
||||||
docs/NumbersCardDatasource.md
|
docs/NumbersCardDatasource.md
|
||||||
@ -154,6 +156,7 @@ src/thousandeyes_sdk/dashboards/models/api_duration.py
|
|||||||
src/thousandeyes_sdk/dashboards/models/api_geo_map_widget.py
|
src/thousandeyes_sdk/dashboards/models/api_geo_map_widget.py
|
||||||
src/thousandeyes_sdk/dashboards/models/api_graphlet_point.py
|
src/thousandeyes_sdk/dashboards/models/api_graphlet_point.py
|
||||||
src/thousandeyes_sdk/dashboards/models/api_grouped_barchart_widget.py
|
src/thousandeyes_sdk/dashboards/models/api_grouped_barchart_widget.py
|
||||||
|
src/thousandeyes_sdk/dashboards/models/api_list_widget.py
|
||||||
src/thousandeyes_sdk/dashboards/models/api_multi_metric_column.py
|
src/thousandeyes_sdk/dashboards/models/api_multi_metric_column.py
|
||||||
src/thousandeyes_sdk/dashboards/models/api_multi_metric_column_data.py
|
src/thousandeyes_sdk/dashboards/models/api_multi_metric_column_data.py
|
||||||
src/thousandeyes_sdk/dashboards/models/api_multi_metric_table_widget.py
|
src/thousandeyes_sdk/dashboards/models/api_multi_metric_table_widget.py
|
||||||
@ -212,6 +215,7 @@ src/thousandeyes_sdk/dashboards/models/legacy_duration_unit.py
|
|||||||
src/thousandeyes_sdk/dashboards/models/legacy_widget_sort_direction.py
|
src/thousandeyes_sdk/dashboards/models/legacy_widget_sort_direction.py
|
||||||
src/thousandeyes_sdk/dashboards/models/legacy_widget_sort_property.py
|
src/thousandeyes_sdk/dashboards/models/legacy_widget_sort_property.py
|
||||||
src/thousandeyes_sdk/dashboards/models/link.py
|
src/thousandeyes_sdk/dashboards/models/link.py
|
||||||
|
src/thousandeyes_sdk/dashboards/models/list_datasource.py
|
||||||
src/thousandeyes_sdk/dashboards/models/metric_group.py
|
src/thousandeyes_sdk/dashboards/models/metric_group.py
|
||||||
src/thousandeyes_sdk/dashboards/models/multi_metrics_table_datasource.py
|
src/thousandeyes_sdk/dashboards/models/multi_metrics_table_datasource.py
|
||||||
src/thousandeyes_sdk/dashboards/models/numbers_card_datasource.py
|
src/thousandeyes_sdk/dashboards/models/numbers_card_datasource.py
|
||||||
|
|||||||
@ -3,7 +3,7 @@ Manage ThousandEyes Dashboards.
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
@ -147,6 +147,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [ApiGeoMapWidget](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiGeoMapWidget.md)
|
- [ApiGeoMapWidget](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiGeoMapWidget.md)
|
||||||
- [ApiGraphletPoint](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiGraphletPoint.md)
|
- [ApiGraphletPoint](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiGraphletPoint.md)
|
||||||
- [ApiGroupedBarchartWidget](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiGroupedBarchartWidget.md)
|
- [ApiGroupedBarchartWidget](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiGroupedBarchartWidget.md)
|
||||||
|
- [ApiListWidget](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiListWidget.md)
|
||||||
- [ApiMultiMetricColumn](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiMultiMetricColumn.md)
|
- [ApiMultiMetricColumn](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiMultiMetricColumn.md)
|
||||||
- [ApiMultiMetricColumnData](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiMultiMetricColumnData.md)
|
- [ApiMultiMetricColumnData](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiMultiMetricColumnData.md)
|
||||||
- [ApiMultiMetricTableWidget](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiMultiMetricTableWidget.md)
|
- [ApiMultiMetricTableWidget](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ApiMultiMetricTableWidget.md)
|
||||||
@ -205,6 +206,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [LegacyWidgetSortDirection](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/LegacyWidgetSortDirection.md)
|
- [LegacyWidgetSortDirection](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/LegacyWidgetSortDirection.md)
|
||||||
- [LegacyWidgetSortProperty](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/LegacyWidgetSortProperty.md)
|
- [LegacyWidgetSortProperty](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/LegacyWidgetSortProperty.md)
|
||||||
- [Link](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/Link.md)
|
- [Link](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/Link.md)
|
||||||
|
- [ListDatasource](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/ListDatasource.md)
|
||||||
- [MetricGroup](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/MetricGroup.md)
|
- [MetricGroup](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/MetricGroup.md)
|
||||||
- [MultiMetricsTableDatasource](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/MultiMetricsTableDatasource.md)
|
- [MultiMetricsTableDatasource](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/MultiMetricsTableDatasource.md)
|
||||||
- [NumbersCardDatasource](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/NumbersCardDatasource.md)
|
- [NumbersCardDatasource](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-dashboards/docs/NumbersCardDatasource.md)
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
# ApiAlertListWidget
|
# ApiAlertListWidget
|
||||||
|
|
||||||
|
A widget that displays a list of alerts based on specified criteria, such as alert type and time frame.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
|
|||||||
47
thousandeyes-sdk-dashboards/docs/ApiListWidget.md
Normal file
47
thousandeyes-sdk-dashboards/docs/ApiListWidget.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# ApiListWidget
|
||||||
|
|
||||||
|
A widget that displays a list of items, such as events. It can use a time range to limit the items shown.
|
||||||
|
|
||||||
|
## 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 `isEmbedded` is set to `true`, an `embedUrl` is provided. | [optional] [readonly]
|
||||||
|
**is_embedded** | **bool** | Set to `true` if widget is marked as embedded; otherwise, set to `false`. | [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 `filters` property displays. Each filter object has two properties: `filterProperty` and `filterValue`. The `filterProperty` can be values like `AGENT`, `ENDPOINT_MACHINE_ID`, `TEST`, `MONITOR`, etc. The `filterValue` 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 `true`. | [optional]
|
||||||
|
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]
|
||||||
|
**type** | **str** | List widget type. Currently supports only `List`. |
|
||||||
|
**sort_direction** | [**LegacyWidgetSortDirection**](LegacyWidgetSortDirection.md) | | [optional]
|
||||||
|
**active_within** | [**ActiveWithin**](ActiveWithin.md) | | [optional]
|
||||||
|
**data_source** | [**ListDatasource**](ListDatasource.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from thousandeyes_sdk.dashboards.models.api_list_widget import ApiListWidget
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ApiListWidget from a JSON string
|
||||||
|
api_list_widget_instance = ApiListWidget.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ApiListWidget.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
api_list_widget_dict = api_list_widget_instance.to_dict()
|
||||||
|
# create an instance of ApiListWidget from a dict
|
||||||
|
api_list_widget_from_dict = ApiListWidget.from_dict(api_list_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)
|
||||||
|
|
||||||
|
|
||||||
12
thousandeyes-sdk-dashboards/docs/ListDatasource.md
Normal file
12
thousandeyes-sdk-dashboards/docs/ListDatasource.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# ListDatasource
|
||||||
|
|
||||||
|
Data source for the list widget.
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -51,6 +51,7 @@ from thousandeyes_sdk.dashboards.models.api_duration import ApiDuration
|
|||||||
from thousandeyes_sdk.dashboards.models.api_geo_map_widget import ApiGeoMapWidget
|
from thousandeyes_sdk.dashboards.models.api_geo_map_widget import ApiGeoMapWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_graphlet_point import ApiGraphletPoint
|
from thousandeyes_sdk.dashboards.models.api_graphlet_point import ApiGraphletPoint
|
||||||
from thousandeyes_sdk.dashboards.models.api_grouped_barchart_widget import ApiGroupedBarchartWidget
|
from thousandeyes_sdk.dashboards.models.api_grouped_barchart_widget import ApiGroupedBarchartWidget
|
||||||
|
from thousandeyes_sdk.dashboards.models.api_list_widget import ApiListWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_multi_metric_column import ApiMultiMetricColumn
|
from thousandeyes_sdk.dashboards.models.api_multi_metric_column import ApiMultiMetricColumn
|
||||||
from thousandeyes_sdk.dashboards.models.api_multi_metric_column_data import ApiMultiMetricColumnData
|
from thousandeyes_sdk.dashboards.models.api_multi_metric_column_data import ApiMultiMetricColumnData
|
||||||
from thousandeyes_sdk.dashboards.models.api_multi_metric_table_widget import ApiMultiMetricTableWidget
|
from thousandeyes_sdk.dashboards.models.api_multi_metric_table_widget import ApiMultiMetricTableWidget
|
||||||
@ -109,6 +110,7 @@ from thousandeyes_sdk.dashboards.models.legacy_duration_unit import LegacyDurati
|
|||||||
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_direction import LegacyWidgetSortDirection
|
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_direction import LegacyWidgetSortDirection
|
||||||
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_property import LegacyWidgetSortProperty
|
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_property import LegacyWidgetSortProperty
|
||||||
from thousandeyes_sdk.dashboards.models.link import Link
|
from thousandeyes_sdk.dashboards.models.link import Link
|
||||||
|
from thousandeyes_sdk.dashboards.models.list_datasource import ListDatasource
|
||||||
from thousandeyes_sdk.dashboards.models.metric_group import MetricGroup
|
from thousandeyes_sdk.dashboards.models.metric_group import MetricGroup
|
||||||
from thousandeyes_sdk.dashboards.models.multi_metrics_table_datasource import MultiMetricsTableDatasource
|
from thousandeyes_sdk.dashboards.models.multi_metrics_table_datasource import MultiMetricsTableDatasource
|
||||||
from thousandeyes_sdk.dashboards.models.numbers_card_datasource import NumbersCardDatasource
|
from thousandeyes_sdk.dashboards.models.numbers_card_datasource import NumbersCardDatasource
|
||||||
|
|||||||
@ -44,6 +44,7 @@ from thousandeyes_sdk.dashboards.models.api_duration import ApiDuration
|
|||||||
from thousandeyes_sdk.dashboards.models.api_geo_map_widget import ApiGeoMapWidget
|
from thousandeyes_sdk.dashboards.models.api_geo_map_widget import ApiGeoMapWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_graphlet_point import ApiGraphletPoint
|
from thousandeyes_sdk.dashboards.models.api_graphlet_point import ApiGraphletPoint
|
||||||
from thousandeyes_sdk.dashboards.models.api_grouped_barchart_widget import ApiGroupedBarchartWidget
|
from thousandeyes_sdk.dashboards.models.api_grouped_barchart_widget import ApiGroupedBarchartWidget
|
||||||
|
from thousandeyes_sdk.dashboards.models.api_list_widget import ApiListWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_multi_metric_column import ApiMultiMetricColumn
|
from thousandeyes_sdk.dashboards.models.api_multi_metric_column import ApiMultiMetricColumn
|
||||||
from thousandeyes_sdk.dashboards.models.api_multi_metric_column_data import ApiMultiMetricColumnData
|
from thousandeyes_sdk.dashboards.models.api_multi_metric_column_data import ApiMultiMetricColumnData
|
||||||
from thousandeyes_sdk.dashboards.models.api_multi_metric_table_widget import ApiMultiMetricTableWidget
|
from thousandeyes_sdk.dashboards.models.api_multi_metric_table_widget import ApiMultiMetricTableWidget
|
||||||
@ -102,6 +103,7 @@ from thousandeyes_sdk.dashboards.models.legacy_duration_unit import LegacyDurati
|
|||||||
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_direction import LegacyWidgetSortDirection
|
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_direction import LegacyWidgetSortDirection
|
||||||
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_property import LegacyWidgetSortProperty
|
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_property import LegacyWidgetSortProperty
|
||||||
from thousandeyes_sdk.dashboards.models.link import Link
|
from thousandeyes_sdk.dashboards.models.link import Link
|
||||||
|
from thousandeyes_sdk.dashboards.models.list_datasource import ListDatasource
|
||||||
from thousandeyes_sdk.dashboards.models.metric_group import MetricGroup
|
from thousandeyes_sdk.dashboards.models.metric_group import MetricGroup
|
||||||
from thousandeyes_sdk.dashboards.models.multi_metrics_table_datasource import MultiMetricsTableDatasource
|
from thousandeyes_sdk.dashboards.models.multi_metrics_table_datasource import MultiMetricsTableDatasource
|
||||||
from thousandeyes_sdk.dashboards.models.numbers_card_datasource import NumbersCardDatasource
|
from thousandeyes_sdk.dashboards.models.numbers_card_datasource import NumbersCardDatasource
|
||||||
|
|||||||
@ -34,7 +34,7 @@ from typing_extensions import Self
|
|||||||
|
|
||||||
class ApiAlertListWidget(BaseModel):
|
class ApiAlertListWidget(BaseModel):
|
||||||
"""
|
"""
|
||||||
ApiAlertListWidget
|
A widget that displays a list of alerts based on specified criteria, such as alert type and time frame.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
id: Optional[StrictStr] = Field(default=None, description="Identifier of the widget.")
|
id: Optional[StrictStr] = Field(default=None, description="Identifier of the widget.")
|
||||||
title: Optional[StrictStr] = Field(default=None, description="Title of the widget")
|
title: Optional[StrictStr] = Field(default=None, description="Title of the widget")
|
||||||
|
|||||||
@ -0,0 +1,157 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
Dashboards API
|
||||||
|
|
||||||
|
Manage ThousandEyes Dashboards.
|
||||||
|
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
import pprint
|
||||||
|
import re # noqa: F401
|
||||||
|
import json
|
||||||
|
|
||||||
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
|
||||||
|
from typing import Any, ClassVar, Dict, List, Optional
|
||||||
|
from typing_extensions import Annotated
|
||||||
|
from thousandeyes_sdk.dashboards.models.active_within import ActiveWithin
|
||||||
|
from thousandeyes_sdk.dashboards.models.api_duration import ApiDuration
|
||||||
|
from thousandeyes_sdk.dashboards.models.api_widget_measure import ApiWidgetMeasure
|
||||||
|
from thousandeyes_sdk.dashboards.models.dashboard_metric import DashboardMetric
|
||||||
|
from thousandeyes_sdk.dashboards.models.dashboard_metric_direction import DashboardMetricDirection
|
||||||
|
from thousandeyes_sdk.dashboards.models.legacy_widget_sort_direction import LegacyWidgetSortDirection
|
||||||
|
from thousandeyes_sdk.dashboards.models.list_datasource import ListDatasource
|
||||||
|
from thousandeyes_sdk.dashboards.models.metric_group import MetricGroup
|
||||||
|
from thousandeyes_sdk.dashboards.models.self_links import SelfLinks
|
||||||
|
from thousandeyes_sdk.dashboards.models.visual_mode import VisualMode
|
||||||
|
from typing import Optional, Set
|
||||||
|
from typing_extensions import Self
|
||||||
|
|
||||||
|
class ApiListWidget(BaseModel):
|
||||||
|
"""
|
||||||
|
A widget that displays a list of items, such as events. It can use a time range to limit the items shown.
|
||||||
|
""" # noqa: E501
|
||||||
|
id: Optional[StrictStr] = Field(default=None, description="Identifier of the widget.")
|
||||||
|
title: Optional[StrictStr] = Field(default=None, description="Title of the widget")
|
||||||
|
visual_mode: Optional[VisualMode] = Field(default=None, alias="visualMode")
|
||||||
|
embed_url: Optional[StrictStr] = Field(default=None, description="When `isEmbedded` is set to `true`, an `embedUrl` is provided.", alias="embedUrl")
|
||||||
|
is_embedded: Optional[StrictBool] = Field(default=None, description="Set to `true` if widget is marked as embedded; otherwise, set to `false`.", alias="isEmbedded")
|
||||||
|
metric_group: Optional[MetricGroup] = Field(default=None, alias="metricGroup")
|
||||||
|
direction: Optional[DashboardMetricDirection] = None
|
||||||
|
metric: Optional[DashboardMetric] = None
|
||||||
|
filters: Optional[Dict[str, List[Any]]] = Field(default=None, description="(Optional) Specifies the filters applied to the widget. When present, the `filters` property displays. Each filter object has two properties: `filterProperty` and `filterValue`. The `filterProperty` can be values like `AGENT`, `ENDPOINT_MACHINE_ID`, `TEST`, `MONITOR`, etc. The `filterValue` represents an identifier array of the selected property.")
|
||||||
|
measure: Optional[ApiWidgetMeasure] = None
|
||||||
|
fixed_timespan: Optional[ApiDuration] = Field(default=None, alias="fixedTimespan")
|
||||||
|
api_link: Optional[StrictStr] = Field(default=None, alias="apiLink")
|
||||||
|
should_exclude_alert_suppression_windows: Optional[StrictBool] = Field(default=None, description="Excludes alert suppression window data if set to `true`.", alias="shouldExcludeAlertSuppressionWindows")
|
||||||
|
links: Optional[SelfLinks] = Field(default=None, alias="_links")
|
||||||
|
type: Annotated[str, Field(strict=True)] = Field(description="List widget type. Currently supports only `List`.")
|
||||||
|
sort_direction: Optional[LegacyWidgetSortDirection] = Field(default=None, alias="sortDirection")
|
||||||
|
active_within: Optional[ActiveWithin] = Field(default=None, alias="activeWithin")
|
||||||
|
data_source: Optional[ListDatasource] = Field(default=None, alias="dataSource")
|
||||||
|
__properties: ClassVar[List[str]] = ["id", "title", "visualMode", "embedUrl", "isEmbedded", "metricGroup", "direction", "metric", "filters", "measure", "fixedTimespan", "apiLink", "shouldExcludeAlertSuppressionWindows", "_links", "type", "sortDirection", "activeWithin", "dataSource"]
|
||||||
|
|
||||||
|
@field_validator('type')
|
||||||
|
def type_validate_regular_expression(cls, value):
|
||||||
|
"""Validates the regular expression"""
|
||||||
|
if not re.match(r"^List$", value):
|
||||||
|
raise ValueError(r"must validate the regular expression /^List$/")
|
||||||
|
return value
|
||||||
|
|
||||||
|
model_config = ConfigDict(
|
||||||
|
populate_by_name=True,
|
||||||
|
validate_assignment=True,
|
||||||
|
protected_namespaces=(),
|
||||||
|
extra="allow",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def to_str(self) -> str:
|
||||||
|
"""Returns the string representation of the model using alias"""
|
||||||
|
return pprint.pformat(self.model_dump(by_alias=True))
|
||||||
|
|
||||||
|
def to_json(self) -> str:
|
||||||
|
"""Returns the JSON representation of the model using alias"""
|
||||||
|
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
||||||
|
return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
||||||
|
"""Create an instance of ApiListWidget from a JSON string"""
|
||||||
|
return cls.from_dict(json.loads(json_str))
|
||||||
|
|
||||||
|
def to_dict(self) -> Dict[str, Any]:
|
||||||
|
"""Return the dictionary representation of the model using alias.
|
||||||
|
|
||||||
|
This has the following differences from calling pydantic's
|
||||||
|
`self.model_dump(by_alias=True)`:
|
||||||
|
|
||||||
|
* `None` is only added to the output dict for nullable fields that
|
||||||
|
were set at model initialization. Other fields with value `None`
|
||||||
|
are ignored.
|
||||||
|
* OpenAPI `readOnly` fields are excluded.
|
||||||
|
* OpenAPI `readOnly` fields are excluded.
|
||||||
|
* OpenAPI `readOnly` fields are excluded.
|
||||||
|
"""
|
||||||
|
excluded_fields: Set[str] = set([
|
||||||
|
"id",
|
||||||
|
"embed_url",
|
||||||
|
"api_link",
|
||||||
|
])
|
||||||
|
|
||||||
|
_dict = self.model_dump(
|
||||||
|
by_alias=True,
|
||||||
|
exclude=excluded_fields,
|
||||||
|
exclude_none=True,
|
||||||
|
)
|
||||||
|
# override the default output from pydantic by calling `to_dict()` of measure
|
||||||
|
if self.measure:
|
||||||
|
_dict['measure'] = self.measure.to_dict()
|
||||||
|
# override the default output from pydantic by calling `to_dict()` of fixed_timespan
|
||||||
|
if self.fixed_timespan:
|
||||||
|
_dict['fixedTimespan'] = self.fixed_timespan.to_dict()
|
||||||
|
# override the default output from pydantic by calling `to_dict()` of links
|
||||||
|
if self.links:
|
||||||
|
_dict['_links'] = self.links.to_dict()
|
||||||
|
# override the default output from pydantic by calling `to_dict()` of active_within
|
||||||
|
if self.active_within:
|
||||||
|
_dict['activeWithin'] = self.active_within.to_dict()
|
||||||
|
return _dict
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
||||||
|
"""Create an instance of ApiListWidget from a dict"""
|
||||||
|
if obj is None:
|
||||||
|
return None
|
||||||
|
|
||||||
|
if not isinstance(obj, dict):
|
||||||
|
return cls.model_validate(obj)
|
||||||
|
|
||||||
|
_obj = cls.model_validate({
|
||||||
|
"id": obj.get("id"),
|
||||||
|
"title": obj.get("title"),
|
||||||
|
"visualMode": obj.get("visualMode"),
|
||||||
|
"embedUrl": obj.get("embedUrl"),
|
||||||
|
"isEmbedded": obj.get("isEmbedded"),
|
||||||
|
"metricGroup": obj.get("metricGroup"),
|
||||||
|
"direction": obj.get("direction"),
|
||||||
|
"metric": obj.get("metric"),
|
||||||
|
"filters": obj.get("filters"),
|
||||||
|
"measure": ApiWidgetMeasure.from_dict(obj["measure"]) if obj.get("measure") is not None else None,
|
||||||
|
"fixedTimespan": ApiDuration.from_dict(obj["fixedTimespan"]) if obj.get("fixedTimespan") is not None else None,
|
||||||
|
"apiLink": obj.get("apiLink"),
|
||||||
|
"shouldExcludeAlertSuppressionWindows": obj.get("shouldExcludeAlertSuppressionWindows"),
|
||||||
|
"_links": SelfLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
|
||||||
|
"type": obj.get("type"),
|
||||||
|
"sortDirection": obj.get("sortDirection"),
|
||||||
|
"activeWithin": ActiveWithin.from_dict(obj["activeWithin"]) if obj.get("activeWithin") is not None else None,
|
||||||
|
"dataSource": obj.get("dataSource")
|
||||||
|
})
|
||||||
|
return _obj
|
||||||
|
|
||||||
|
|
||||||
@ -22,6 +22,7 @@ from thousandeyes_sdk.dashboards.models.api_box_and_whiskers_widget import ApiBo
|
|||||||
from thousandeyes_sdk.dashboards.models.api_color_grid_widget import ApiColorGridWidget
|
from thousandeyes_sdk.dashboards.models.api_color_grid_widget import ApiColorGridWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_geo_map_widget import ApiGeoMapWidget
|
from thousandeyes_sdk.dashboards.models.api_geo_map_widget import ApiGeoMapWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_grouped_barchart_widget import ApiGroupedBarchartWidget
|
from thousandeyes_sdk.dashboards.models.api_grouped_barchart_widget import ApiGroupedBarchartWidget
|
||||||
|
from thousandeyes_sdk.dashboards.models.api_list_widget import ApiListWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_multi_metric_table_widget import ApiMultiMetricTableWidget
|
from thousandeyes_sdk.dashboards.models.api_multi_metric_table_widget import ApiMultiMetricTableWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_numbers_card_widget import ApiNumbersCardWidget
|
from thousandeyes_sdk.dashboards.models.api_numbers_card_widget import ApiNumbersCardWidget
|
||||||
from thousandeyes_sdk.dashboards.models.api_pie_chart_widget import ApiPieChartWidget
|
from thousandeyes_sdk.dashboards.models.api_pie_chart_widget import ApiPieChartWidget
|
||||||
@ -34,7 +35,7 @@ from pydantic import StrictStr, Field, model_serializer
|
|||||||
from typing import Union, List, Set, Optional, Dict
|
from typing import Union, List, Set, Optional, Dict
|
||||||
from typing_extensions import Literal, Self
|
from typing_extensions import Literal, Self
|
||||||
|
|
||||||
APIWIDGET_ONE_OF_SCHEMAS = ["ApiAgentStatusWidget", "ApiAlertListWidget", "ApiBoxAndWhiskersWidget", "ApiColorGridWidget", "ApiGeoMapWidget", "ApiGroupedBarchartWidget", "ApiMultiMetricTableWidget", "ApiNumbersCardWidget", "ApiPieChartWidget", "ApiStackedAreaChartWidget", "ApiStackedBarchartWidget", "ApiTableWidget", "ApiTestTableWidget", "ApiTimeseriesWidget"]
|
APIWIDGET_ONE_OF_SCHEMAS = ["ApiAgentStatusWidget", "ApiAlertListWidget", "ApiBoxAndWhiskersWidget", "ApiColorGridWidget", "ApiGeoMapWidget", "ApiGroupedBarchartWidget", "ApiListWidget", "ApiMultiMetricTableWidget", "ApiNumbersCardWidget", "ApiPieChartWidget", "ApiStackedAreaChartWidget", "ApiStackedBarchartWidget", "ApiTableWidget", "ApiTestTableWidget", "ApiTimeseriesWidget"]
|
||||||
|
|
||||||
class ApiWidget(BaseModel):
|
class ApiWidget(BaseModel):
|
||||||
"""
|
"""
|
||||||
@ -52,24 +53,26 @@ class ApiWidget(BaseModel):
|
|||||||
oneof_schema_5_validator: Optional[ApiGeoMapWidget] = None
|
oneof_schema_5_validator: Optional[ApiGeoMapWidget] = None
|
||||||
# data type: ApiGroupedBarchartWidget
|
# data type: ApiGroupedBarchartWidget
|
||||||
oneof_schema_6_validator: Optional[ApiGroupedBarchartWidget] = None
|
oneof_schema_6_validator: Optional[ApiGroupedBarchartWidget] = None
|
||||||
|
# data type: ApiListWidget
|
||||||
|
oneof_schema_7_validator: Optional[ApiListWidget] = None
|
||||||
# data type: ApiMultiMetricTableWidget
|
# data type: ApiMultiMetricTableWidget
|
||||||
oneof_schema_7_validator: Optional[ApiMultiMetricTableWidget] = None
|
oneof_schema_8_validator: Optional[ApiMultiMetricTableWidget] = None
|
||||||
# data type: ApiNumbersCardWidget
|
# data type: ApiNumbersCardWidget
|
||||||
oneof_schema_8_validator: Optional[ApiNumbersCardWidget] = None
|
oneof_schema_9_validator: Optional[ApiNumbersCardWidget] = None
|
||||||
# data type: ApiPieChartWidget
|
# data type: ApiPieChartWidget
|
||||||
oneof_schema_9_validator: Optional[ApiPieChartWidget] = None
|
oneof_schema_10_validator: Optional[ApiPieChartWidget] = None
|
||||||
# data type: ApiStackedAreaChartWidget
|
# data type: ApiStackedAreaChartWidget
|
||||||
oneof_schema_10_validator: Optional[ApiStackedAreaChartWidget] = None
|
oneof_schema_11_validator: Optional[ApiStackedAreaChartWidget] = None
|
||||||
# data type: ApiStackedBarchartWidget
|
# data type: ApiStackedBarchartWidget
|
||||||
oneof_schema_11_validator: Optional[ApiStackedBarchartWidget] = None
|
oneof_schema_12_validator: Optional[ApiStackedBarchartWidget] = None
|
||||||
# data type: ApiTableWidget
|
# data type: ApiTableWidget
|
||||||
oneof_schema_12_validator: Optional[ApiTableWidget] = None
|
oneof_schema_13_validator: Optional[ApiTableWidget] = None
|
||||||
# data type: ApiTestTableWidget
|
# data type: ApiTestTableWidget
|
||||||
oneof_schema_13_validator: Optional[ApiTestTableWidget] = None
|
oneof_schema_14_validator: Optional[ApiTestTableWidget] = None
|
||||||
# data type: ApiTimeseriesWidget
|
# data type: ApiTimeseriesWidget
|
||||||
oneof_schema_14_validator: Optional[ApiTimeseriesWidget] = None
|
oneof_schema_15_validator: Optional[ApiTimeseriesWidget] = None
|
||||||
actual_instance: Optional[Union[ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget]] = None
|
actual_instance: Optional[Union[ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiListWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget]] = None
|
||||||
one_of_schemas: Set[str] = { "ApiAgentStatusWidget", "ApiAlertListWidget", "ApiBoxAndWhiskersWidget", "ApiColorGridWidget", "ApiGeoMapWidget", "ApiGroupedBarchartWidget", "ApiMultiMetricTableWidget", "ApiNumbersCardWidget", "ApiPieChartWidget", "ApiStackedAreaChartWidget", "ApiStackedBarchartWidget", "ApiTableWidget", "ApiTestTableWidget", "ApiTimeseriesWidget" }
|
one_of_schemas: Set[str] = { "ApiAgentStatusWidget", "ApiAlertListWidget", "ApiBoxAndWhiskersWidget", "ApiColorGridWidget", "ApiGeoMapWidget", "ApiGroupedBarchartWidget", "ApiListWidget", "ApiMultiMetricTableWidget", "ApiNumbersCardWidget", "ApiPieChartWidget", "ApiStackedAreaChartWidget", "ApiStackedBarchartWidget", "ApiTableWidget", "ApiTestTableWidget", "ApiTimeseriesWidget" }
|
||||||
|
|
||||||
model_config = ConfigDict(
|
model_config = ConfigDict(
|
||||||
validate_assignment=True,
|
validate_assignment=True,
|
||||||
@ -125,6 +128,11 @@ class ApiWidget(BaseModel):
|
|||||||
error_messages.append(f"Error! Input type `{type(v)}` is not `ApiGroupedBarchartWidget`")
|
error_messages.append(f"Error! Input type `{type(v)}` is not `ApiGroupedBarchartWidget`")
|
||||||
else:
|
else:
|
||||||
match += 1
|
match += 1
|
||||||
|
# validate data type: ApiListWidget
|
||||||
|
if not isinstance(v, ApiListWidget):
|
||||||
|
error_messages.append(f"Error! Input type `{type(v)}` is not `ApiListWidget`")
|
||||||
|
else:
|
||||||
|
match += 1
|
||||||
# validate data type: ApiMultiMetricTableWidget
|
# validate data type: ApiMultiMetricTableWidget
|
||||||
if not isinstance(v, ApiMultiMetricTableWidget):
|
if not isinstance(v, ApiMultiMetricTableWidget):
|
||||||
error_messages.append(f"Error! Input type `{type(v)}` is not `ApiMultiMetricTableWidget`")
|
error_messages.append(f"Error! Input type `{type(v)}` is not `ApiMultiMetricTableWidget`")
|
||||||
@ -167,10 +175,10 @@ class ApiWidget(BaseModel):
|
|||||||
match += 1
|
match += 1
|
||||||
if match > 1:
|
if match > 1:
|
||||||
# more than 1 match
|
# more than 1 match
|
||||||
raise ValueError("Multiple matches found when setting `actual_instance` in ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
raise ValueError("Multiple matches found when setting `actual_instance` in ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiListWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
||||||
elif match == 0:
|
elif match == 0:
|
||||||
# no match
|
# no match
|
||||||
raise ValueError("No match found when setting `actual_instance` in ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
raise ValueError("No match found when setting `actual_instance` in ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiListWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
||||||
else:
|
else:
|
||||||
return v
|
return v
|
||||||
|
|
||||||
@ -221,6 +229,12 @@ class ApiWidget(BaseModel):
|
|||||||
match += 1
|
match += 1
|
||||||
except (ValidationError, ValueError) as e:
|
except (ValidationError, ValueError) as e:
|
||||||
error_messages.append(str(e))
|
error_messages.append(str(e))
|
||||||
|
# deserialize data into ApiListWidget
|
||||||
|
try:
|
||||||
|
instance.actual_instance = ApiListWidget.from_json(json_str)
|
||||||
|
match += 1
|
||||||
|
except (ValidationError, ValueError) as e:
|
||||||
|
error_messages.append(str(e))
|
||||||
# deserialize data into ApiMultiMetricTableWidget
|
# deserialize data into ApiMultiMetricTableWidget
|
||||||
try:
|
try:
|
||||||
instance.actual_instance = ApiMultiMetricTableWidget.from_json(json_str)
|
instance.actual_instance = ApiMultiMetricTableWidget.from_json(json_str)
|
||||||
@ -272,10 +286,10 @@ class ApiWidget(BaseModel):
|
|||||||
|
|
||||||
if match > 1:
|
if match > 1:
|
||||||
# more than 1 match
|
# more than 1 match
|
||||||
raise ValueError("Multiple matches found when deserializing the JSON string into ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
raise ValueError("Multiple matches found when deserializing the JSON string into ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiListWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
||||||
elif match == 0:
|
elif match == 0:
|
||||||
# no match
|
# no match
|
||||||
raise ValueError("No match found when deserializing the JSON string into ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
raise ValueError("No match found when deserializing the JSON string into ApiWidget with oneOf schemas: ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiListWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget. Details: " + ", ".join(error_messages))
|
||||||
else:
|
else:
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
@ -293,7 +307,7 @@ class ApiWidget(BaseModel):
|
|||||||
else:
|
else:
|
||||||
return json.dumps(self.actual_instance)
|
return json.dumps(self.actual_instance)
|
||||||
|
|
||||||
def to_dict(self) -> Optional[Union[Dict[str, Any], ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget]]:
|
def to_dict(self) -> Optional[Union[Dict[str, Any], ApiAgentStatusWidget, ApiAlertListWidget, ApiBoxAndWhiskersWidget, ApiColorGridWidget, ApiGeoMapWidget, ApiGroupedBarchartWidget, ApiListWidget, ApiMultiMetricTableWidget, ApiNumbersCardWidget, ApiPieChartWidget, ApiStackedAreaChartWidget, ApiStackedBarchartWidget, ApiTableWidget, ApiTestTableWidget, ApiTimeseriesWidget]]:
|
||||||
"""Returns the dict representation of the actual instance"""
|
"""Returns the dict representation of the actual instance"""
|
||||||
if self.actual_instance is None:
|
if self.actual_instance is None:
|
||||||
return None
|
return None
|
||||||
|
|||||||
@ -0,0 +1,40 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
Dashboards API
|
||||||
|
|
||||||
|
Manage ThousandEyes Dashboards.
|
||||||
|
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
import json
|
||||||
|
from enum import Enum
|
||||||
|
from typing_extensions import Self
|
||||||
|
|
||||||
|
|
||||||
|
class ListDatasource(str, Enum):
|
||||||
|
"""
|
||||||
|
Data source for the list widget.
|
||||||
|
"""
|
||||||
|
|
||||||
|
"""
|
||||||
|
allowed enum values
|
||||||
|
"""
|
||||||
|
EVENT_DETECTION = 'EVENT_DETECTION'
|
||||||
|
UNKNOWN = 'unknown'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def from_json(cls, json_str: str) -> Self:
|
||||||
|
"""Create an instance of ListDatasource from a JSON string"""
|
||||||
|
return cls(json.loads(json_str))
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _missing_(cls, value):
|
||||||
|
"""Handle unknown values"""
|
||||||
|
return cls.UNKNOWN
|
||||||
|
|
||||||
@ -36,6 +36,7 @@ class WidgetType(str, Enum):
|
|||||||
AGENT_STATUS = 'Agent Status'
|
AGENT_STATUS = 'Agent Status'
|
||||||
COLOR_GRID = 'Color Grid'
|
COLOR_GRID = 'Color Grid'
|
||||||
ALERT_LIST = 'Alert List'
|
ALERT_LIST = 'Alert List'
|
||||||
|
LIST = 'List'
|
||||||
TEST_TABLE = 'Test Table'
|
TEST_TABLE = 'Test Table'
|
||||||
MAP = 'Map'
|
MAP = 'Map'
|
||||||
BOX_AND_WHISKERS = 'Box and Whiskers'
|
BOX_AND_WHISKERS = 'Box and Whiskers'
|
||||||
|
|||||||
@ -9,7 +9,7 @@ To access Emulation API operations, the following permissions are required:
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ For more information about Endpoint Agents, see [Endpoint Agents](https://docs.t
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ The URLs for these API test data endpoints are provided within the test definiti
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ Manage labels applied to endpoint agents using this API.
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ Retrieve results for scheduled and dynamic tests on endpoint agents.
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ With the Events API, you can perform the following tasks on the ThousandEyes pla
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ The response does not include the immediate test results. Use the Test Results e
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ For more information about Internet Insights, see the [Internet Insights](https:
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ Creates a new test snapshot in ThousandEyes.
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ For more information about ThousandEyes for OpenTelemetry, see the [product docu
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ Things to note with the ThousandEyes Tags API:
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ Get test result metrics for Network and Application Synthetics tests.
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ This API allows you to list, create, edit, and delete Network and Application Sy
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ Refer to the Usage API operations for detailed usage instructions and optional p
|
|||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 7.0.62
|
- API version: 7.0.63
|
||||||
- Generator version: 7.6.0
|
- Generator version: 7.6.0
|
||||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user