From c4505be72a5a0402bb5e679d5ca29eaa6e9d9c69 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 10 Jul 2026 14:32:42 +0000 Subject: [PATCH] Regenerate client from commit 492dc21 of spec repo --- .generator/schemas/v1/openapi.yaml | 78 +++++++++++++++++++ docs/datadog_api_client.v1.model.rst | 42 ++++++++++ ...ard_available_values_events_data_source.py | 41 ++++++++++ ...dashboard_available_values_events_query.py | 78 +++++++++++++++++++ ...able_values_events_query_group_by_items.py | 37 +++++++++ ...rd_available_values_events_query_search.py | 37 +++++++++ ...ashboard_available_values_metrics_query.py | 52 +++++++++++++ .../v1/model/dashboard_template_variable.py | 37 ++++++++- ...emplate_variable_available_values_query.py | 53 +++++++++++++ src/datadog_api_client/v1/models/__init__.py | 20 +++++ tests/v1/features/dashboards.feature | 6 +- 11 files changed, 477 insertions(+), 4 deletions(-) create mode 100644 src/datadog_api_client/v1/model/dashboard_available_values_events_data_source.py create mode 100644 src/datadog_api_client/v1/model/dashboard_available_values_events_query.py create mode 100644 src/datadog_api_client/v1/model/dashboard_available_values_events_query_group_by_items.py create mode 100644 src/datadog_api_client/v1/model/dashboard_available_values_events_query_search.py create mode 100644 src/datadog_api_client/v1/model/dashboard_available_values_metrics_query.py create mode 100644 src/datadog_api_client/v1/model/dashboard_template_variable_available_values_query.py diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index b41f414fd3..05258906e6 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -1530,6 +1530,72 @@ components: - layout_type - widgets type: object + DashboardAvailableValuesEventsDataSource: + description: The events-based data source for the query. + enum: + - spans + - logs + - rum + example: spans + type: string + x-enum-varnames: + - SPANS + - LOGS + - RUM + DashboardAvailableValuesEventsQuery: + additionalProperties: false + description: Query for available values using an events-based data source (spans, logs, or rum). + properties: + data_source: + $ref: "#/components/schemas/DashboardAvailableValuesEventsDataSource" + group_by: + description: The fields to group by in the query. + items: + $ref: "#/components/schemas/DashboardAvailableValuesEventsQueryGroupByItems" + type: array + search: + $ref: "#/components/schemas/DashboardAvailableValuesEventsQuerySearch" + required: + - data_source + - search + - group_by + type: object + DashboardAvailableValuesEventsQueryGroupByItems: + additionalProperties: false + description: A field to group by in the available values query. + properties: + facet: + description: The facet to group by. + example: "" + type: string + required: + - facet + type: object + DashboardAvailableValuesEventsQuerySearch: + additionalProperties: false + description: The search filter for the query. + properties: + query: + description: The search query string. + example: "" + type: string + required: + - query + type: object + DashboardAvailableValuesMetricsQuery: + additionalProperties: false + description: Query for available values using the metrics data source. + properties: + data_source: + $ref: "#/components/schemas/FormulaAndFunctionMetricDataSource" + query: + description: The metrics query string. + example: "" + type: string + required: + - data_source + - query + type: object DashboardBulkActionData: description: Dashboard bulk action request data. example: {"id": "123-abc-456", "type": "dashboard"} @@ -1800,6 +1866,13 @@ components: type: string nullable: true type: array + available_values_query: + $ref: "#/components/schemas/DashboardTemplateVariableAvailableValuesQuery" + data_source_mappings: + additionalProperties: + type: string + description: A mapping from data source type to the variable value to use for that data source. + type: object default: deprecated: true description: (deprecated) The default value for the template variable on dashboard load. Cannot be used in conjunction with `defaults`. @@ -1831,6 +1904,11 @@ components: required: - name type: object + DashboardTemplateVariableAvailableValuesQuery: + description: A query that dynamically computes the list of values available for this template variable. + oneOf: + - $ref: "#/components/schemas/DashboardAvailableValuesEventsQuery" + - $ref: "#/components/schemas/DashboardAvailableValuesMetricsQuery" DashboardTemplateVariablePreset: description: Template variables saved views. properties: diff --git a/docs/datadog_api_client.v1.model.rst b/docs/datadog_api_client.v1.model.rst index 048116b98c..2803904615 100644 --- a/docs/datadog_api_client.v1.model.rst +++ b/docs/datadog_api_client.v1.model.rst @@ -543,6 +543,41 @@ datadog\_api\_client.v1.model.dashboard module :members: :show-inheritance: +datadog\_api\_client.v1.model.dashboard\_available\_values\_events\_data\_source module +--------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.dashboard_available_values_events_data_source + :members: + :show-inheritance: + +datadog\_api\_client.v1.model.dashboard\_available\_values\_events\_query module +-------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.dashboard_available_values_events_query + :members: + :show-inheritance: + +datadog\_api\_client.v1.model.dashboard\_available\_values\_events\_query\_group\_by\_items module +-------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.dashboard_available_values_events_query_group_by_items + :members: + :show-inheritance: + +datadog\_api\_client.v1.model.dashboard\_available\_values\_events\_query\_search module +---------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.dashboard_available_values_events_query_search + :members: + :show-inheritance: + +datadog\_api\_client.v1.model.dashboard\_available\_values\_metrics\_query module +--------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.dashboard_available_values_metrics_query + :members: + :show-inheritance: + datadog\_api\_client.v1.model.dashboard\_bulk\_action\_data module ------------------------------------------------------------------ @@ -676,6 +711,13 @@ datadog\_api\_client.v1.model.dashboard\_template\_variable module :members: :show-inheritance: +datadog\_api\_client.v1.model.dashboard\_template\_variable\_available\_values\_query module +-------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.dashboard_template_variable_available_values_query + :members: + :show-inheritance: + datadog\_api\_client.v1.model.dashboard\_template\_variable\_preset module -------------------------------------------------------------------------- diff --git a/src/datadog_api_client/v1/model/dashboard_available_values_events_data_source.py b/src/datadog_api_client/v1/model/dashboard_available_values_events_data_source.py new file mode 100644 index 0000000000..32d6f1bf86 --- /dev/null +++ b/src/datadog_api_client/v1/model/dashboard_available_values_events_data_source.py @@ -0,0 +1,41 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class DashboardAvailableValuesEventsDataSource(ModelSimple): + """ + The events-based data source for the query. + + :param value: Must be one of ["spans", "logs", "rum"]. + :type value: str + """ + + allowed_values = { + "spans", + "logs", + "rum", + } + SPANS: ClassVar["DashboardAvailableValuesEventsDataSource"] + LOGS: ClassVar["DashboardAvailableValuesEventsDataSource"] + RUM: ClassVar["DashboardAvailableValuesEventsDataSource"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +DashboardAvailableValuesEventsDataSource.SPANS = DashboardAvailableValuesEventsDataSource("spans") +DashboardAvailableValuesEventsDataSource.LOGS = DashboardAvailableValuesEventsDataSource("logs") +DashboardAvailableValuesEventsDataSource.RUM = DashboardAvailableValuesEventsDataSource("rum") diff --git a/src/datadog_api_client/v1/model/dashboard_available_values_events_query.py b/src/datadog_api_client/v1/model/dashboard_available_values_events_query.py new file mode 100644 index 0000000000..520c5b00a5 --- /dev/null +++ b/src/datadog_api_client/v1/model/dashboard_available_values_events_query.py @@ -0,0 +1,78 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v1.model.dashboard_available_values_events_data_source import ( + DashboardAvailableValuesEventsDataSource, + ) + from datadog_api_client.v1.model.dashboard_available_values_events_query_group_by_items import ( + DashboardAvailableValuesEventsQueryGroupByItems, + ) + from datadog_api_client.v1.model.dashboard_available_values_events_query_search import ( + DashboardAvailableValuesEventsQuerySearch, + ) + + +class DashboardAvailableValuesEventsQuery(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v1.model.dashboard_available_values_events_data_source import ( + DashboardAvailableValuesEventsDataSource, + ) + from datadog_api_client.v1.model.dashboard_available_values_events_query_group_by_items import ( + DashboardAvailableValuesEventsQueryGroupByItems, + ) + from datadog_api_client.v1.model.dashboard_available_values_events_query_search import ( + DashboardAvailableValuesEventsQuerySearch, + ) + + return { + "data_source": (DashboardAvailableValuesEventsDataSource,), + "group_by": ([DashboardAvailableValuesEventsQueryGroupByItems],), + "search": (DashboardAvailableValuesEventsQuerySearch,), + } + + attribute_map = { + "data_source": "data_source", + "group_by": "group_by", + "search": "search", + } + + def __init__( + self_, + data_source: DashboardAvailableValuesEventsDataSource, + group_by: List[DashboardAvailableValuesEventsQueryGroupByItems], + search: DashboardAvailableValuesEventsQuerySearch, + **kwargs, + ): + """ + Query for available values using an events-based data source (spans, logs, or rum). + + :param data_source: The events-based data source for the query. + :type data_source: DashboardAvailableValuesEventsDataSource + + :param group_by: The fields to group by in the query. + :type group_by: [DashboardAvailableValuesEventsQueryGroupByItems] + + :param search: The search filter for the query. + :type search: DashboardAvailableValuesEventsQuerySearch + """ + super().__init__(kwargs) + + self_.data_source = data_source + self_.group_by = group_by + self_.search = search diff --git a/src/datadog_api_client/v1/model/dashboard_available_values_events_query_group_by_items.py b/src/datadog_api_client/v1/model/dashboard_available_values_events_query_group_by_items.py new file mode 100644 index 0000000000..428655fb4e --- /dev/null +++ b/src/datadog_api_client/v1/model/dashboard_available_values_events_query_group_by_items.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class DashboardAvailableValuesEventsQueryGroupByItems(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "facet": (str,), + } + + attribute_map = { + "facet": "facet", + } + + def __init__(self_, facet: str, **kwargs): + """ + A field to group by in the available values query. + + :param facet: The facet to group by. + :type facet: str + """ + super().__init__(kwargs) + + self_.facet = facet diff --git a/src/datadog_api_client/v1/model/dashboard_available_values_events_query_search.py b/src/datadog_api_client/v1/model/dashboard_available_values_events_query_search.py new file mode 100644 index 0000000000..f92460966c --- /dev/null +++ b/src/datadog_api_client/v1/model/dashboard_available_values_events_query_search.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class DashboardAvailableValuesEventsQuerySearch(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "query": (str,), + } + + attribute_map = { + "query": "query", + } + + def __init__(self_, query: str, **kwargs): + """ + The search filter for the query. + + :param query: The search query string. + :type query: str + """ + super().__init__(kwargs) + + self_.query = query diff --git a/src/datadog_api_client/v1/model/dashboard_available_values_metrics_query.py b/src/datadog_api_client/v1/model/dashboard_available_values_metrics_query.py new file mode 100644 index 0000000000..7d37c9fd19 --- /dev/null +++ b/src/datadog_api_client/v1/model/dashboard_available_values_metrics_query.py @@ -0,0 +1,52 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v1.model.formula_and_function_metric_data_source import FormulaAndFunctionMetricDataSource + + +class DashboardAvailableValuesMetricsQuery(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v1.model.formula_and_function_metric_data_source import ( + FormulaAndFunctionMetricDataSource, + ) + + return { + "data_source": (FormulaAndFunctionMetricDataSource,), + "query": (str,), + } + + attribute_map = { + "data_source": "data_source", + "query": "query", + } + + def __init__(self_, data_source: FormulaAndFunctionMetricDataSource, query: str, **kwargs): + """ + Query for available values using the metrics data source. + + :param data_source: Data source for metrics queries. + :type data_source: FormulaAndFunctionMetricDataSource + + :param query: The metrics query string. + :type query: str + """ + super().__init__(kwargs) + + self_.data_source = data_source + self_.query = query diff --git a/src/datadog_api_client/v1/model/dashboard_template_variable.py b/src/datadog_api_client/v1/model/dashboard_template_variable.py index 4013c0094e..ffb678dded 100644 --- a/src/datadog_api_client/v1/model/dashboard_template_variable.py +++ b/src/datadog_api_client/v1/model/dashboard_template_variable.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import List, Union +from typing import Dict, List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -14,11 +14,27 @@ ) +if TYPE_CHECKING: + from datadog_api_client.v1.model.dashboard_template_variable_available_values_query import ( + DashboardTemplateVariableAvailableValuesQuery, + ) + from datadog_api_client.v1.model.dashboard_available_values_events_query import DashboardAvailableValuesEventsQuery + from datadog_api_client.v1.model.dashboard_available_values_metrics_query import ( + DashboardAvailableValuesMetricsQuery, + ) + + class DashboardTemplateVariable(ModelNormal): @cached_property def openapi_types(_): + from datadog_api_client.v1.model.dashboard_template_variable_available_values_query import ( + DashboardTemplateVariableAvailableValuesQuery, + ) + return { "available_values": ([str], none_type), + "available_values_query": (DashboardTemplateVariableAvailableValuesQuery,), + "data_source_mappings": ({str: (str,)},), "default": (str, none_type), "defaults": ([str],), "name": (str,), @@ -28,6 +44,8 @@ def openapi_types(_): attribute_map = { "available_values": "available_values", + "available_values_query": "available_values_query", + "data_source_mappings": "data_source_mappings", "default": "default", "defaults": "defaults", "name": "name", @@ -39,6 +57,13 @@ def __init__( self_, name: str, available_values: Union[List[str], none_type, UnsetType] = unset, + available_values_query: Union[ + DashboardTemplateVariableAvailableValuesQuery, + DashboardAvailableValuesEventsQuery, + DashboardAvailableValuesMetricsQuery, + UnsetType, + ] = unset, + data_source_mappings: Union[Dict[str, str], UnsetType] = unset, default: Union[str, none_type, UnsetType] = unset, defaults: Union[List[str], UnsetType] = unset, prefix: Union[str, none_type, UnsetType] = unset, @@ -51,6 +76,12 @@ def __init__( :param available_values: The list of values that the template variable drop-down is limited to. :type available_values: [str], none_type, optional + :param available_values_query: A query that dynamically computes the list of values available for this template variable. + :type available_values_query: DashboardTemplateVariableAvailableValuesQuery, optional + + :param data_source_mappings: A mapping from data source type to the variable value to use for that data source. + :type data_source_mappings: {str: (str,)}, optional + :param default: (deprecated) The default value for the template variable on dashboard load. Cannot be used in conjunction with ``defaults``. **Deprecated**. :type default: str, none_type, optional @@ -68,6 +99,10 @@ def __init__( """ if available_values is not unset: kwargs["available_values"] = available_values + if available_values_query is not unset: + kwargs["available_values_query"] = available_values_query + if data_source_mappings is not unset: + kwargs["data_source_mappings"] = data_source_mappings if default is not unset: kwargs["default"] = default if defaults is not unset: diff --git a/src/datadog_api_client/v1/model/dashboard_template_variable_available_values_query.py b/src/datadog_api_client/v1/model/dashboard_template_variable_available_values_query.py new file mode 100644 index 0000000000..87d79db887 --- /dev/null +++ b/src/datadog_api_client/v1/model/dashboard_template_variable_available_values_query.py @@ -0,0 +1,53 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class DashboardTemplateVariableAvailableValuesQuery(ModelComposed): + def __init__(self, **kwargs): + """ + A query that dynamically computes the list of values available for this template variable. + + :param data_source: The events-based data source for the query. + :type data_source: DashboardAvailableValuesEventsDataSource + + :param group_by: The fields to group by in the query. + :type group_by: [DashboardAvailableValuesEventsQueryGroupByItems] + + :param search: The search filter for the query. + :type search: DashboardAvailableValuesEventsQuerySearch + + :param query: The metrics query string. + :type query: str + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v1.model.dashboard_available_values_events_query import ( + DashboardAvailableValuesEventsQuery, + ) + from datadog_api_client.v1.model.dashboard_available_values_metrics_query import ( + DashboardAvailableValuesMetricsQuery, + ) + + return { + "oneOf": [ + DashboardAvailableValuesEventsQuery, + DashboardAvailableValuesMetricsQuery, + ], + } diff --git a/src/datadog_api_client/v1/models/__init__.py b/src/datadog_api_client/v1/models/__init__.py index 8f103b8feb..d4665acd5a 100644 --- a/src/datadog_api_client/v1/models/__init__.py +++ b/src/datadog_api_client/v1/models/__init__.py @@ -75,6 +75,17 @@ from datadog_api_client.v1.model.content_encoding import ContentEncoding from datadog_api_client.v1.model.creator import Creator from datadog_api_client.v1.model.dashboard import Dashboard +from datadog_api_client.v1.model.dashboard_available_values_events_data_source import ( + DashboardAvailableValuesEventsDataSource, +) +from datadog_api_client.v1.model.dashboard_available_values_events_query import DashboardAvailableValuesEventsQuery +from datadog_api_client.v1.model.dashboard_available_values_events_query_group_by_items import ( + DashboardAvailableValuesEventsQueryGroupByItems, +) +from datadog_api_client.v1.model.dashboard_available_values_events_query_search import ( + DashboardAvailableValuesEventsQuerySearch, +) +from datadog_api_client.v1.model.dashboard_available_values_metrics_query import DashboardAvailableValuesMetricsQuery from datadog_api_client.v1.model.dashboard_bulk_action_data import DashboardBulkActionData from datadog_api_client.v1.model.dashboard_bulk_action_data_list import DashboardBulkActionDataList from datadog_api_client.v1.model.dashboard_bulk_delete_request import DashboardBulkDeleteRequest @@ -94,6 +105,9 @@ from datadog_api_client.v1.model.dashboard_summary_definition import DashboardSummaryDefinition from datadog_api_client.v1.model.dashboard_tab import DashboardTab from datadog_api_client.v1.model.dashboard_template_variable import DashboardTemplateVariable +from datadog_api_client.v1.model.dashboard_template_variable_available_values_query import ( + DashboardTemplateVariableAvailableValuesQuery, +) from datadog_api_client.v1.model.dashboard_template_variable_preset import DashboardTemplateVariablePreset from datadog_api_client.v1.model.dashboard_template_variable_preset_value import DashboardTemplateVariablePresetValue from datadog_api_client.v1.model.dashboard_type import DashboardType @@ -1509,6 +1523,11 @@ "ContentEncoding", "Creator", "Dashboard", + "DashboardAvailableValuesEventsDataSource", + "DashboardAvailableValuesEventsQuery", + "DashboardAvailableValuesEventsQueryGroupByItems", + "DashboardAvailableValuesEventsQuerySearch", + "DashboardAvailableValuesMetricsQuery", "DashboardBulkActionData", "DashboardBulkActionDataList", "DashboardBulkDeleteRequest", @@ -1528,6 +1547,7 @@ "DashboardSummaryDefinition", "DashboardTab", "DashboardTemplateVariable", + "DashboardTemplateVariableAvailableValuesQuery", "DashboardTemplateVariablePreset", "DashboardTemplateVariablePresetValue", "DashboardType", diff --git a/tests/v1/features/dashboards.feature b/tests/v1/features/dashboards.feature index 28e57ec5e2..404e2f6d34 100644 --- a/tests/v1/features/dashboards.feature +++ b/tests/v1/features/dashboards.feature @@ -90,7 +90,7 @@ Feature: Dashboards @generated @skip @team:DataDog/dashboards-backend Scenario: Create a new dashboard returns "Bad Request" response Given new "CreateDashboard" request - And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]} + And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "available_values_query": {"data_source": "spans", "group_by": [{"facet": ""}], "search": {"query": ""}}, "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]} When the request is sent Then the response status is 400 Bad Request @@ -1481,7 +1481,7 @@ Feature: Dashboards Scenario: Update a dashboard returns "Bad Request" response Given new "UpdateDashboard" request And request contains "dashboard_id" parameter from "REPLACE.ME" - And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]} + And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "available_values_query": {"data_source": "spans", "group_by": [{"facet": ""}], "search": {"query": ""}}, "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]} When the request is sent Then the response status is 400 Bad Request @@ -1489,7 +1489,7 @@ Feature: Dashboards Scenario: Update a dashboard returns "Item Not Found" response Given new "UpdateDashboard" request And request contains "dashboard_id" parameter from "REPLACE.ME" - And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]} + And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "available_values_query": {"data_source": "spans", "group_by": [{"facet": ""}], "search": {"query": ""}}, "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]} When the request is sent Then the response status is 404 Item Not Found