Skip to content

Changes to reflect adding limit to change widget #2769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "fde8b90",
"generated": "2025-08-18 20:32:42.259"
"spec_repo_commit": "e9346e4",
"generated": "2025-08-19 15:54:52.317"
}
4 changes: 4 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,10 @@ components:
increase_good:
description: Whether to show increase as good.
type: boolean
limit:
description: The number of items to show.
format: int64
type: integer
log_query:
$ref: '#/components/schemas/LogQueryDefinition'
network_query:
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/change_widget_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def openapi_types(_):
"event_query": (LogQueryDefinition,),
"formulas": ([WidgetFormula],),
"increase_good": (bool,),
"limit": (int,),
"log_query": (LogQueryDefinition,),
"network_query": (LogQueryDefinition,),
"order_by": (WidgetOrderBy,),
Expand All @@ -87,6 +88,7 @@ def openapi_types(_):
"event_query": "event_query",
"formulas": "formulas",
"increase_good": "increase_good",
"limit": "limit",
"log_query": "log_query",
"network_query": "network_query",
"order_by": "order_by",
Expand All @@ -109,6 +111,7 @@ def __init__(
event_query: Union[LogQueryDefinition, UnsetType] = unset,
formulas: Union[List[WidgetFormula], UnsetType] = unset,
increase_good: Union[bool, UnsetType] = unset,
limit: Union[int, UnsetType] = unset,
log_query: Union[LogQueryDefinition, UnsetType] = unset,
network_query: Union[LogQueryDefinition, UnsetType] = unset,
order_by: Union[WidgetOrderBy, UnsetType] = unset,
Expand Down Expand Up @@ -158,6 +161,9 @@ def __init__(
:param increase_good: Whether to show increase as good.
:type increase_good: bool, optional

:param limit: The number of items to show.
:type limit: int, optional

:param log_query: The log query.
:type log_query: LogQueryDefinition, optional

Expand Down Expand Up @@ -206,6 +212,8 @@ def __init__(
kwargs["formulas"] = formulas
if increase_good is not unset:
kwargs["increase_good"] = increase_good
if limit is not unset:
kwargs["limit"] = limit
if log_query is not unset:
kwargs["log_query"] = log_query
if network_query is not unset:
Expand Down
Loading