Skip to content

Add title and background_color properties to dashboard group widget #388

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

Merged
merged 1 commit into from
Apr 19, 2021
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-04-16 12:34:36.909991",
"spec_repo_commit": "9149cd6"
"regenerated": "2021-04-19 09:21:33.778445",
"spec_repo_commit": "2c91a1d"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-04-16 12:35:01.520219",
"spec_repo_commit": "9149cd6"
"regenerated": "2021-04-19 09:21:56.556582",
"spec_repo_commit": "2c91a1d"
}
}
}
2 changes: 2 additions & 0 deletions docs/v1/GroupWidgetDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Name | Type | Description | Notes
**layout_type** | [**WidgetLayoutType**](WidgetLayoutType.md) | |
**type** | [**GroupWidgetDefinitionType**](GroupWidgetDefinitionType.md) | |
**widgets** | [**[Widget]**](Widget.md) | List of widget groups. |
**background_color** | **str** | Background color of the group title. | [optional]
**title** | **str** | Title of the widget. | [optional]
**title_align** | [**WidgetTextAlign**](WidgetTextAlign.md) | | [optional]

[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/v1/WidgetDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Description | Notes
**tags_execution** | **str** | The execution method for multi-value filters. Can be either and or or. | [optional]
**color** | **str** | Color of the text. | [optional]
**font_size** | **str** | Size of the text. | [optional]
**background_color** | **str** | Background color of the note. | [optional]
**events** | [**[WidgetEvent]**](WidgetEvent.md) | List of widget events. | [optional]
**yaxis** | [**WidgetAxis**](WidgetAxis.md) | | [optional]
**no_group_hosts** | **bool** | Whether to show the hosts that don’t fit in a group. | [optional]
Expand All @@ -45,7 +46,6 @@ Name | Type | Description | Notes
**show_last_triggered** | **bool** | Whether to show the time that has elapsed since the monitor/group triggered. | [optional]
**start** | **int** | The start of the list. Typically 0. | [optional]
**summary_type** | [**WidgetSummaryType**](WidgetSummaryType.md) | | [optional]
**background_color** | **str** | Background color of the note. | [optional]
**show_tick** | **bool** | Whether to show a tick or not. | [optional]
**tick_edge** | [**WidgetTickEdge**](WidgetTickEdge.md) | | [optional]
**tick_pos** | **str** | Where to position the tick on an edge. | [optional]
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/group_widget_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ def lazy_import():
from datadog_api_client.v1.model.group_widget_definition_type import GroupWidgetDefinitionType
from datadog_api_client.v1.model.widget import Widget
from datadog_api_client.v1.model.widget_layout_type import WidgetLayoutType
from datadog_api_client.v1.model.widget_text_align import WidgetTextAlign

globals()["GroupWidgetDefinitionType"] = GroupWidgetDefinitionType
globals()["Widget"] = Widget
globals()["WidgetLayoutType"] = WidgetLayoutType
globals()["WidgetTextAlign"] = WidgetTextAlign


class GroupWidgetDefinition(ModelNormal):
Expand Down Expand Up @@ -79,7 +81,9 @@ def openapi_types():
"layout_type": (WidgetLayoutType,), # noqa: E501
"type": (GroupWidgetDefinitionType,), # noqa: E501
"widgets": ([Widget],), # noqa: E501
"background_color": (str,), # noqa: E501
"title": (str,), # noqa: E501
"title_align": (WidgetTextAlign,), # noqa: E501
}

@cached_property
Expand All @@ -90,7 +94,9 @@ def discriminator():
"layout_type": "layout_type", # noqa: E501
"type": "type", # noqa: E501
"widgets": "widgets", # noqa: E501
"background_color": "background_color", # noqa: E501
"title": "title", # noqa: E501
"title_align": "title_align", # noqa: E501
}

_composed_schemas = {}
Expand Down Expand Up @@ -146,7 +152,9 @@ def __init__(self, layout_type, type, widgets, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
background_color (str): Background color of the group title.. [optional] # noqa: E501
title (str): Title of the widget.. [optional] # noqa: E501
title_align (WidgetTextAlign): [optional] # noqa: E501
"""

_check_type = kwargs.pop("_check_type", True)
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v1/model/widget_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
tags_execution (str): The execution method for multi-value filters. Can be either and or or.. [optional] # noqa: E501
color (str): Color of the text.. [optional] # noqa: E501
font_size (str): Size of the text.. [optional] # noqa: E501
background_color (str): Background color of the note.. [optional] # noqa: E501
events ([WidgetEvent]): List of widget events.. [optional] # noqa: E501
yaxis (WidgetAxis): [optional] # noqa: E501
no_group_hosts (bool): Whether to show the hosts that don’t fit in a group.. [optional] # noqa: E501
Expand All @@ -296,7 +297,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
show_last_triggered (bool): Whether to show the time that has elapsed since the monitor/group triggered.. [optional] # noqa: E501
start (int): The start of the list. Typically 0.. [optional] # noqa: E501
summary_type (WidgetSummaryType): [optional] # noqa: E501
background_color (str): Background color of the note.. [optional] # noqa: E501
show_tick (bool): Whether to show a tick or not.. [optional] # noqa: E501
tick_edge (WidgetTickEdge): [optional] # noqa: E501
tick_pos (str): Where to position the tick on an edge.. [optional] # noqa: E501
Expand Down
5 changes: 5 additions & 0 deletions src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2242,11 +2242,16 @@ components:
your timeboard. Each group has a custom header, can hold one to many graphs,
and is collapsible.
properties:
background_color:
description: Background color of the group title.
type: string
layout_type:
$ref: '#/components/schemas/WidgetLayoutType'
title:
description: Title of the widget.
type: string
title_align:
$ref: '#/components/schemas/WidgetTextAlign'
type:
$ref: '#/components/schemas/GroupWidgetDefinitionType'
widgets:
Expand Down