---
type: api
title: "Search visualizations"
description: "Returns a paginated list of Lens visualizations matching the optional query text."
url: https://www.elastic.co/elastic/docs-builder/docs/5106/api/kibana/operation/operation-search-visualizations
resource: https://www.elastic.co/elastic/docs-builder/docs/5106/api/kibana/operation/operation-search-visualizations
products:
  - Kibana
---

# Search visualizations

Authentication: required

Availability: Generally available since 9.5

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/visualizations`
- `GET` `/s/{space_id}/api/visualizations`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Description

Returns a paginated list of Lens visualizations matching the optional `query` text.

## Query string parameters

- `fields` (string[] · max items: 100) — optional
  The saved object fields to include in each result. When omitted, all fields are returned.
- `search_fields` (string[] · max items: 100) — optional
  The fields to match the `query` text against. Defaults to `title` when omitted.
- `query` (string) — optional
  Text to match against `search_fields`.
- `page` (number · min: 1 · default: 1) — optional
  The page of results to return.
- `per_page` (number · min: 1 · max: 1000 · default: 20) — optional
  The number of results to return per page.

## Responses

#### `200`

Ok

`application/json`

- `data` (object[] · max items: 1000)
  - `data` (union anyOf)
    - **Metric Chart (DSL)**
      Metric chart configuration for standard queries
      - `type` (enum)
        Values: `metric`
      - `breakdown_by` (union anyOf)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `columns` (number · default: 3)
            Number of columns.
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `columns` (number · default: 3)
            Number of columns.
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            - **Numeric Format**
              Number or percentage format with optional decimal places, suffix, and compact notation.
              - `compact` (boolean · default: false)
                When `true`, uses compact notation (for example, 1.2k instead of 1,200). Defaults to `false`.
              - `decimals` (number · default: 2)
                Number of decimal places to display.
              - `suffix` (string)
                Suffix appended to the formatted value.
              - `type` (enum)
                Value format type: `number` for plain numbers, `percent` for percentages.
                Values: `number`, `percent`
            - **Byte Format**
              Data size format in bits or bytes, with optional decimal places and suffix.
              - `decimals` (number · default: 2)
                Number of decimal places to display.
              - `suffix` (string)
                Suffix appended to the formatted value.
              - `type` (enum)
                Data size unit: `bits` or `bytes`.
                Values: `bits`, `bytes`
            - **Duration Format**
              Duration format between time units.
              - `compact` (boolean)
                When `true`, uses short unit suffixes (for example, `ms` instead of `Milliseconds`). Defaults to `true`. Ignored for `auto-approximate`.
              - `decimals` (number)
                Number of decimal places to display. Defaults to `0`. Ignored for `auto-approximate`.
              - `from` (enum)
                Source time unit of the raw field value, including fine-grained units (`ps`, `ns`, `us`) in addition to standard units. This describes how the stored data is encoded, not a query duration literal.
                Values: `ps`, `ns`, `us`, `ms`, `s`, `min`, `h`, `d`, `w`, `mo`, `y`
              - `suffix` (string)
                Suffix appended to the formatted value.
              - `to` (enum)
                Display time unit: `auto` (precise), `auto-approximate`, or a fixed conversion unit.
                Values: `auto`, `auto-approximate`, `ms`, `s`, `min`, `h`, `d`, `w`, `mo`, `y`
              - `type` (enum)
                Values: `duration`
            - **Duration Format (Legacy)**
              Legacy duration format used when the `asCode.useGASchemas` feature flag is disabled. Accepts free-form unit strings (no enum validation) to preserve pre-GA behavior.
              - `from` (string)
                Source time unit for conversion, for example `milliseconds`, `seconds`, `minutes`, `hours`, or `days`.
              - `suffix` (string)
                Suffix appended to the formatted value.
              - `to` (string)
                Display time unit after conversion, for example `seconds`, `minutes`, `hours`, or `days`.
              - `type` (enum)
                Values: `duration`
            - **Custom Format**
              Custom format using a Kibana field format pattern string.
              - `pattern` (string)
                Kibana field format pattern string.
              - `type` (enum)
                Values: `custom`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            - **Terms Rank By Alphabetical**
              Terms ranked alphabetically.
              - `direction` (enum)
                Sort direction for alphabetical ranking.
                Values: `asc`, `desc`
              - `type` (enum)
                Values: `alphabetical`
            - **Terms Rank By Rarity**
              Terms ranked by rarity.
              - `max` (number)
                Maximum number of rare terms to include.
              - `type` (enum)
                Values: `rare`
            - **Terms Rank By Significance**
              Terms ranked by significance.
              - `type` (enum)
                Values: `significant`
            - **Terms Rank By Metric**
              Terms ranked by a linked metric.
              - `direction` (enum)
                Sort direction for metric-based ranking.
                Values: `asc`, `desc`
              - `metric_index` (number · min: 0 · default: 0)
                Zero-based index into the metrics array identifying which metric to rank by.
              - `type` (enum)
                Values: `metric`
            - **Terms Rank By Custom Operation**
              Terms ranked by custom operation.
              - `direction` (enum)
                Sort direction for custom ranking.
                Values: `asc`, `desc`
              - `field` (string)
                Numeric field to be used for the custom operation.
              - `operation` (enum)
                Values: `min`, `max`, `average`, `median`, `standard_deviation`, `unique_count`, `sum`
              - `type` (enum)
                Values: `custom`
            - **Terms Rank By Custom Last Value Operation**
              Terms ranked by the last value of a field.
              - `direction` (enum)
                Sort direction for custom ranking.
                Values: `asc`, `desc`
              - `field` (string)
                Numeric field to be used for the custom operation.
              - `operation` (enum)
                Values: `last_value`
              - `time_field` (string · min length: 1)
                Time field used to determine document recency for the last-value ranking.
              - `type` (enum)
                Values: `custom`
            - **Terms Rank By Custom Count Operation**
              Terms ranked by count, either of all documents or of a specific field.
              - `direction` (enum)
                Sort direction for custom ranking.
                Values: `asc`, `desc`
              - `field` (string)
                Numeric field to be used for the custom operation.
              - `operation` (enum)
                Values: `count`
              - `type` (enum)
                Values: `custom`
            - **Terms Rank By Percentile Operation**
              Terms ranked by a percentile of a numeric field, for example the 95th percentile of response time.
              - `direction` (enum)
                Sort direction for custom ranking.
                Values: `asc`, `desc`
              - `field` (string)
                Numeric field to be used for the custom operation.
              - `operation` (enum)
                Values: `percentile`
              - `percentile` (number · default: 95)
                The percentile threshold (0–100) at which to compute the field value used for ranking terms.
              - `type` (enum)
                Values: `custom`
            - **Terms Rank By Percentile Rank Operation**
              Terms ranked by the percentile rank of a single value: the proportion of field values at or below that value.
              - `direction` (enum)
                Sort direction for custom ranking.
                Values: `asc`, `desc`
              - `field` (string)
                Numeric field to be used for the custom operation.
              - `operation` (enum)
                Values: `percentile_rank`
              - `rank` (number · default: 0)
                The numeric value for which to compute the percentile rank (the percentage of field values at or below this value).
              - `type` (enum)
                Values: `custom`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `columns` (number · default: 3)
            Number of columns.
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `columns` (number · default: 3)
            Number of columns.
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `columns` (number · default: 3)
            Number of columns.
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `data_source` (union anyOf)
        - **Data view reference**
          - `type` (enum)
            Values: `data_view_reference`
          - `ref_id` (string)
            The id of the Kibana data view to use as the data source. Example: "my-data-view".
        - **Data view inline spec**
          - `type` (enum)
            Values: `data_view_spec`
          - `allow_hidden_indices` (boolean)
            When `true`, allows the data view to match hidden indices.
          - `field_settings` (map string to anyOf)
            Map values (union anyOf)
            Any of:
            - **Composite runtime field**
              - `fields` (map string to object)
                Map values (object)
                - `custom_description` (string · min length: 1)
                  Add a description to the field. It's displayed next to the field on the Discover, Lens, and Data View Management pages.
                - `custom_label` (string · min length: 1)
                  Create a label to display in place of the field name in Discover, Maps, Lens, Visualize, and TSVB. Useful for shortening a long field name. Queries and filters use the original field name.
                - `format` (object)
                  Set your preferred format for displaying the value. Changing the format can affect the value and prevent highlighting in Discover.
                  - `params` (object)
                  - `type` (string)
              - `script` (string · min length: 1)
                The script that defines the runtime field. This should be a painless script that computes the field value at query time. Runtime fields without a script retrieve values from _source. If the field doesn't exist in _source, a search request returns no value.
              - `type` (enum)
                Values: `composite`
            - **Runtime field**
              - `custom_description` (string · min length: 1)
                Add a description to the field. It's displayed next to the field on the Discover, Lens, and Data View Management pages.
              - `custom_label` (string · min length: 1)
                Create a label to display in place of the field name in Discover, Maps, Lens, Visualize, and TSVB. Useful for shortening a long field name. Queries and filters use the original field name.
              - `format` (object)
                Set your preferred format for displaying the value. Changing the format can affect the value and prevent highlighting in Discover.
                - `params` (object)
                - `type` (string)
              - `script` (string · min length: 1)
                The script that defines the runtime field. This should be a painless script that computes the field value at query time. Runtime fields without a script retrieve values from _source. If the field doesn't exist in _source, a search request returns no value.
              - `type` (enum)
                The type of the runtime field (e.g., "keyword", "long", "date").
                Values: `keyword`, `long`, `double`, `date`, `ip`, `boolean`, `geo_point`
            - **Field settings**
              Display overrides for a field. These settings can define a custom label, description, and format.
              - `custom_description` (string · min length: 1)
                Add a description to the field. It's displayed next to the field on the Discover, Lens, and Data View Management pages.
              - `custom_label` (string · min length: 1)
                Create a label to display in place of the field name in Discover, Maps, Lens, Visualize, and TSVB. Useful for shortening a long field name. Queries and filters use the original field name.
              - `format` (object)
                Set your preferred format for displaying the value. Changing the format can affect the value and prevent highlighting in Discover.
                - `params` (object)
                - `type` (string)
          - `index_pattern` (string · min length: 1)
            The index pattern (Elasticsearch index expression) to use as the data source. Example: "my-index-*".
          - `name` (string · min length: 1 · max length: 256)
            The name of the data view. Example: "Sample data view".
          - `time_field` (string)
            The name of the time field in the index. Used for time-based filtering. Example: "@timestamp".
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        - **dashboard_drilldown**
          - `type` (enum)
            Values: `dashboard_drilldown`
          - `dashboard_id` (string)
          - `label` (string)
          - `open_in_new_tab` (boolean · default: false)
            When enabled, the dashboard opens in a new browser tab.
          - `trigger` (enum)
            Values: `on_apply_filter`
          - `use_filters` (boolean · default: true)
            When enabled, filters are passed to the opening dashboard.
          - `use_time_range` (boolean · default: true)
            When enabled, time range is passed to the opening dashboard.
        - **discover_drilldown**
          - `type` (enum)
            Values: `discover_drilldown`
          - `label` (string)
          - `open_in_new_tab` (boolean · default: true)
          - `trigger` (enum)
            Values: `on_apply_filter`
        - **url_drilldown**
          - `type` (enum)
            Values: `url_drilldown`
          - `encode_url` (boolean · default: true)
            When true, URL is escaped using percent encoding
          - `label` (string)
          - `open_in_new_tab` (boolean · default: true)
          - `trigger` (enum)
            Values: `on_click_row`, `on_click_value`, `on_open_panel_menu`, `on_select_range`
          - `url` (string)
            Templated Url. Variables documented at https://www.elastic.co/docs/explore-analyze/dashboards/drilldowns#url-template-variable
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        - **condition**
          A filter that evaluates a single field condition such as equality, range, or existence.
          - `type` (enum)
            Values: `condition`
          - `condition` (union oneOf)
            A filter condition with strict operator/value type matching.
            - **is** (`operator: is`)
              Matches documents where `field` equals a single specified value.
              - `operator` (enum)
                Values: `is`
              - `field` (string)
                Name of the document field the condition evaluates.
              - `negate` (boolean)
                When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
              - `value` (union string | number | boolean)
                Single value to compare against the field.
            - **is_one_of** (`operator: is_one_of`)
              Matches documents where `field` equals any value in a provided list.
              - `operator` (enum)
                Values: `is_one_of`
              - `field` (string)
                Name of the document field the condition evaluates.
              - `negate` (boolean)
                When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
              - `value` (union string[] | number[] | boolean[])
                Homogeneous array of values to match against the field.
            - **range** (`operator: range`)
              Matches documents where `field` falls within a specified numeric or date range.
              - `operator` (enum)
                Values: `range`
              - `field` (string)
                Name of the document field the condition evaluates.
              - `negate` (boolean)
                When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
              - `value` (object)
                Boundary values for a range comparison.
                - `format` (string)
                  Elasticsearch [date format](https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-date-format) string applied when parsing date boundary values. For example, `strict_date_optional_time` or `epoch_millis`.
                - `gt` (number | string)
                  Greater than.
                - `gte` (number | string)
                  Greater than or equal to.
                - `lt` (number | string)
                  Less than.
                - `lte` (number | string)
                  Less than or equal to.
            - **exists** (`operator: exists`)
              Matches documents where `field` exists and contains a non-null value.
              - `operator` (enum)
                Values: `exists`
              - `field` (string)
                Name of the document field the condition evaluates.
              - `negate` (boolean)
                When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
          - `controlled_by` (string)
            Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
          - `data_view_id` (string)
            Identifier of the data view used as context for this filter.
          - `disabled` (boolean)
            When `true`, the filter is inactive and does not affect query results. Defaults to `false`.
          - `is_multi_index` (boolean)
            When `true`, the filter can be applied across multiple indices. Defaults to `false`.
          - `label` (string)
            Human-readable label for the filter, used for display purposes.
          - `negate` (boolean)
            When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
        - **group**
          A filter that combines multiple conditions or nested groups using a logical `and` or `or` operator.
          - `type` (enum)
            Values: `group`
          - `controlled_by` (string)
            Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
          - `data_view_id` (string)
            Identifier of the data view used as context for this filter.
          - `disabled` (boolean)
            When `true`, the filter is inactive and does not affect query results. Defaults to `false`.
          - `group` (object)
            Logical group that combines one or more conditions or nested groups.
            - `conditions` (union anyOf[]) — recursive
              Ordered list of conditions or nested groups combined by the group `operator`.
            - `operator` (enum)
              Logical operator applied across all entries in `conditions`. Use `and` to require all conditions, or `or` to require at least one.
              Values: `and`, `or`
          - `is_multi_index` (boolean)
            When `true`, the filter can be applied across multiple indices. Defaults to `false`.
          - `label` (string)
            Human-readable label for the filter, used for display purposes.
          - `negate` (boolean)
            When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
        - **dsl**
          A filter expressed as a raw [Elasticsearch Query DSL](https://www.elastic.co/docs/reference/query-languages/querydsl) object, used for queries that cannot be represented by condition or group filters.
          - `type` (enum)
            Values: `dsl`
          - `controlled_by` (string)
            Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
          - `data_view_id` (string)
            Identifier of the data view used as context for this filter.
          - `disabled` (boolean)
            When `true`, the filter is inactive and does not affect query results. Defaults to `false`.
          - `dsl` (map string to object)
            Elasticsearch Query DSL object passed directly to the query.
          - `field` (string)
            Field name for scripted filters where the field cannot be extracted from the DSL query.
          - `is_multi_index` (boolean)
            When `true`, the filter can be applied across multiple indices. Defaults to `false`.
          - `label` (string)
            Human-readable label for the filter, used for display purposes.
          - `negate` (boolean)
            When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
          - `params` (object)
            Filter parameters metadata. May contain display values, formats, and parameters for scripted filters.
        - **spatial**
          A filter that applies an Elasticsearch geo query, used for geographic boundary and shape matching.
          - `type` (enum)
            Values: `spatial`
          - `controlled_by` (string)
            Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
          - `data_view_id` (string)
            Identifier of the data view used as context for this filter.
          - `disabled` (boolean)
            When `true`, the filter is inactive and does not affect query results. Defaults to `false`.
          - `dsl` (map string to object)
            Elasticsearch geo query DSL object.
          - `is_multi_index` (boolean)
            When `true`, the filter can be applied across multiple indices. Defaults to `false`.
          - `label` (string)
            Human-readable label for the filter, used for display purposes.
          - `negate` (boolean)
            When `true`, the filter is negated and matches documents that do NOT satisfy the condition. Defaults to `false`.
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `metrics` (union anyOf[] · min items: 1 · max items: 2)
        Metric dimensions to display. The first must be a primary metric; an optional second must be a secondary metric.
        - **Count Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            - **Bar Background Chart**
              Bar chart shown as background context behind the primary metric value.
              - `type` (enum)
                Values: `bar`
              - `max_value` (union anyOf)
                Metric dimension configuration, supporting field-based aggregations (count, sum, average, median, standard deviation, unique count, last value), percentile operations, time-series operations (differences, moving average, cumulative sum, counter rate), and mathematical formulas.
                - **Formula Operation**
                  - `operation` (enum)
                    Values: `formula`
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `formula` (string)
                    Formula
                  - `label` (string)
                    Label for the operation
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                - **Static Operation Definition**
                  - `operation` (enum)
                    Values: `static_value`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `value` (number · default: 100)
                    Static value
                - **Field Metric Operations**
                  Any of:
                  - **Count Metric Operation**
                    - `empty_as_null` (boolean · default: false)
                      When `true`, treats empty buckets as null instead of zero.
                    - `field` (string)
                      Field to be used for the metric
                    - `filter` (object)
                      A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                      - `expression` (string)
                        A query expression in KQL or Lucene syntax
                      - `language` (enum · default: kql)
                        Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                        Values: `kql`, `lucene`
                    - `format` (union anyOf)
                      Number display format for the dimension value.
                      Same options as `format` in `Terms Operation`
                    - `label` (string)
                      Label for the operation
                    - `operation` (enum)
                      Values: `count`
                    - `reduced_time_range` (string)
                      Reduced time range
                    - `time_scale` (enum)
                      Time scale
                      Values: `s`, `m`, `h`, `d`
                    - `time_shift` (string)
                      Time shift
                  - **Unique Count Metric Operation**
                    - `empty_as_null` (boolean · default: false)
                      When `true`, treats empty buckets as null instead of zero.
                    - `field` (string)
                      Field to be used for the metric
                    - `filter` (object)
                      A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                      - `expression` (string)
                        A query expression in KQL or Lucene syntax
                      - `language` (enum · default: kql)
                        Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                        Values: `kql`, `lucene`
                    - `format` (union anyOf)
                      Number display format for the dimension value.
                      Same options as `format` in `Terms Operation`
                    - `label` (string)
                      Label for the operation
                    - `operation` (enum)
                      Values: `unique_count`
                    - `reduced_time_range` (string)
                      Reduced time range
                    - `time_scale` (enum)
                      Time scale
                      Values: `s`, `m`, `h`, `d`
                    - `time_shift` (string)
                      Time shift
                  - **Stats Metric Operation**
                    - `field` (string)
                      Field to be used for the metric
                    - `filter` (object)
                      A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                      - `expression` (string)
                        A query expression in KQL or Lucene syntax
                      - `language` (enum · default: kql)
                        Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                        Values: `kql`, `lucene`
                    - `format` (union anyOf)
                      Number display format for the dimension value.
                      Same options as `format` in `Terms Operation`
                    - `label` (string)
                      Label for the operation
                    - `operation` (enum)
                      Values: `min`, `max`, `average`, `median`, `standard_deviation`
                    - `reduced_time_range` (string)
                      Reduced time range
                    - `time_scale` (enum)
                      Time scale
                      Values: `s`, `m`, `h`, `d`
                    - `time_shift` (string)
                      Time shift
                  - **Sum Metric Operation**
                    - `empty_as_null` (boolean · default: false)
                      When `true`, treats empty buckets as null instead of zero.
                    - `field` (string)
                      Field to be used for the metric
                    - `filter` (object)
                      A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                      - `expression` (string)
                        A query expression in KQL or Lucene syntax
                      - `language` (enum · default: kql)
                        Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                        Values: `kql`, `lucene`
                    - `format` (union anyOf)
                      Number display format for the dimension value.
                      Same options as `format` in `Terms Operation`
                    - `label` (string)
                      Label for the operation
                    - `operation` (enum)
                      Values: `sum`
                    - `reduced_time_range` (string)
                      Reduced time range
                    - `time_scale` (enum)
                      Time scale
                      Values: `s`, `m`, `h`, `d`
                    - `time_shift` (string)
                      Time shift
                  - **Last Value Operation**
                    - `field` (string)
                      Field to be used for the metric
                    - `filter` (object)
                      A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                      - `expression` (string)
                        A query expression in KQL or Lucene syntax
                      - `language` (enum · default: kql)
                        Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                        Values: `kql`, `lucene`
                    - `format` (union anyOf)
                      Number display format for the dimension value.
                      Same options as `format` in `Terms Operation`
                    - `label` (string)
                      Label for the operation
                    - `multi_value` (boolean · default: false)
                      Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
                    - `operation` (enum)
                      Values: `last_value`
                    - `reduced_time_range` (string)
                      Reduced time range
                    - `time_field` (string)
                      Time field used to determine document recency
                    - `time_scale` (enum)
                      Time scale
                      Values: `s`, `m`, `h`, `d`
                    - `time_shift` (string)
                      Time shift
                  - **Percentile Operation**
                    - `field` (string)
                      Field to be used for the metric
                    - `filter` (object)
                      A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                      - `expression` (string)
                        A query expression in KQL or Lucene syntax
                      - `language` (enum · default: kql)
                        Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                        Values: `kql`, `lucene`
                    - `format` (union anyOf)
                      Number display format for the dimension value.
                      Same options as `format` in `Terms Operation`
                    - `label` (string)
                      Label for the operation
                    - `operation` (enum)
                      Values: `percentile`
                    - `percentile` (number · default: 95)
                      Percentile
                    - `reduced_time_range` (string)
                      Reduced time range
                    - `time_scale` (enum)
                      Time scale
                      Values: `s`, `m`, `h`, `d`
                    - `time_shift` (string)
                      Time shift
                  - **Percentile Ranks Operation**
                    - `field` (string)
                      Field to be used for the metric
                    - `filter` (object)
                      A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                      - `expression` (string)
                        A query expression in KQL or Lucene syntax
                      - `language` (enum · default: kql)
                        Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                        Values: `kql`, `lucene`
                    - `format` (union anyOf)
                      Number display format for the dimension value.
                      Same options as `format` in `Terms Operation`
                    - `label` (string)
                      Label for the operation
                    - `operation` (enum)
                      Values: `percentile_rank`
                    - `rank` (number · default: 0)
                      Percentile Rank
                    - `reduced_time_range` (string)
                      Reduced time range
                    - `time_scale` (enum)
                      Time scale
                      Values: `s`, `m`, `h`, `d`
                    - `time_shift` (string)
                      Time shift
                - **Differences Operation**
                  - `operation` (enum)
                    Values: `differences`
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `of` (union anyOf)
                    - **Count Metric Operation**
                      - `empty_as_null` (boolean · default: false)
                        When `true`, treats empty buckets as null instead of zero.
                      - `field` (string)
                        Field to be used for the metric
                      - `filter` (object)
                        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                        - `expression` (string)
                          A query expression in KQL or Lucene syntax
                        - `language` (enum · default: kql)
                          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                          Values: `kql`, `lucene`
                      - `format` (union anyOf)
                        Number display format for the dimension value.
                        Same options as `format` in `Terms Operation`
                      - `label` (string)
                        Label for the operation
                      - `operation` (enum)
                        Values: `count`
                      - `reduced_time_range` (string)
                        Reduced time range
                      - `time_scale` (enum)
                        Time scale
                        Values: `s`, `m`, `h`, `d`
                      - `time_shift` (string)
                        Time shift
                    - **Unique Count Metric Operation**
                      - `empty_as_null` (boolean · default: false)
                        When `true`, treats empty buckets as null instead of zero.
                      - `field` (string)
                        Field to be used for the metric
                      - `filter` (object)
                        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                        - `expression` (string)
                          A query expression in KQL or Lucene syntax
                        - `language` (enum · default: kql)
                          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                          Values: `kql`, `lucene`
                      - `format` (union anyOf)
                        Number display format for the dimension value.
                        Same options as `format` in `Terms Operation`
                      - `label` (string)
                        Label for the operation
                      - `operation` (enum)
                        Values: `unique_count`
                      - `reduced_time_range` (string)
                        Reduced time range
                      - `time_scale` (enum)
                        Time scale
                        Values: `s`, `m`, `h`, `d`
                      - `time_shift` (string)
                        Time shift
                    - **Stats Metric Operation**
                      - `field` (string)
                        Field to be used for the metric
                      - `filter` (object)
                        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                        - `expression` (string)
                          A query expression in KQL or Lucene syntax
                        - `language` (enum · default: kql)
                          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                          Values: `kql`, `lucene`
                      - `format` (union anyOf)
                        Number display format for the dimension value.
                        Same options as `format` in `Terms Operation`
                      - `label` (string)
                        Label for the operation
                      - `operation` (enum)
                        Values: `min`, `max`, `average`, `median`, `standard_deviation`
                      - `reduced_time_range` (string)
                        Reduced time range
                      - `time_scale` (enum)
                        Time scale
                        Values: `s`, `m`, `h`, `d`
                      - `time_shift` (string)
                        Time shift
                    - **Sum Metric Operation**
                      - `empty_as_null` (boolean · default: false)
                        When `true`, treats empty buckets as null instead of zero.
                      - `field` (string)
                        Field to be used for the metric
                      - `filter` (object)
                        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                        - `expression` (string)
                          A query expression in KQL or Lucene syntax
                        - `language` (enum · default: kql)
                          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                          Values: `kql`, `lucene`
                      - `format` (union anyOf)
                        Number display format for the dimension value.
                        Same options as `format` in `Terms Operation`
                      - `label` (string)
                        Label for the operation
                      - `operation` (enum)
                        Values: `sum`
                      - `reduced_time_range` (string)
                        Reduced time range
                      - `time_scale` (enum)
                        Time scale
                        Values: `s`, `m`, `h`, `d`
                      - `time_shift` (string)
                        Time shift
                    - **Last Value Operation**
                      - `field` (string)
                        Field to be used for the metric
                      - `filter` (object)
                        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                        - `expression` (string)
                          A query expression in KQL or Lucene syntax
                        - `language` (enum · default: kql)
                          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                          Values: `kql`, `lucene`
                      - `format` (union anyOf)
                        Number display format for the dimension value.
                        Same options as `format` in `Terms Operation`
                      - `label` (string)
                        Label for the operation
                      - `multi_value` (boolean · default: false)
                        Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
                      - `operation` (enum)
                        Values: `last_value`
                      - `reduced_time_range` (string)
                        Reduced time range
                      - `time_field` (string)
                        Time field used to determine document recency
                      - `time_scale` (enum)
                        Time scale
                        Values: `s`, `m`, `h`, `d`
                      - `time_shift` (string)
                        Time shift
                    - **Percentile Operation**
                      - `field` (string)
                        Field to be used for the metric
                      - `filter` (object)
                        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                        - `expression` (string)
                          A query expression in KQL or Lucene syntax
                        - `language` (enum · default: kql)
                          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                          Values: `kql`, `lucene`
                      - `format` (union anyOf)
                        Number display format for the dimension value.
                        Same options as `format` in `Terms Operation`
                      - `label` (string)
                        Label for the operation
                      - `operation` (enum)
                        Values: `percentile`
                      - `percentile` (number · default: 95)
                        Percentile
                      - `reduced_time_range` (string)
                        Reduced time range
                      - `time_scale` (enum)
                        Time scale
                        Values: `s`, `m`, `h`, `d`
                      - `time_shift` (string)
                        Time shift
                    - **Percentile Ranks Operation**
                      - `field` (string)
                        Field to be used for the metric
                      - `filter` (object)
                        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                        - `expression` (string)
                          A query expression in KQL or Lucene syntax
                        - `language` (enum · default: kql)
                          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                          Values: `kql`, `lucene`
                      - `format` (union anyOf)
                        Number display format for the dimension value.
                        Same options as `format` in `Terms Operation`
                      - `label` (string)
                        Label for the operation
                      - `operation` (enum)
                        Values: `percentile_rank`
                      - `rank` (number · default: 0)
                        Percentile Rank
                      - `reduced_time_range` (string)
                        Reduced time range
                      - `time_scale` (enum)
                        Time scale
                        Values: `s`, `m`, `h`, `d`
                      - `time_shift` (string)
                        Time shift
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                - **Moving Average Operation**
                  - `operation` (enum)
                    Values: `moving_average`
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `of` (union anyOf)
                    Same options as `of` in `Differences Operation`
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                  - `window` (number · default: 5)
                    Window
                - **Cumulative Sum Operation**
                  - `operation` (enum)
                    Values: `cumulative_sum`
                  - `field` (string)
                    Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                - **Counter Rate Operation**
                  - `operation` (enum)
                    Values: `counter_rate`
                  - `field` (string)
                    Field to be used for the metric
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                - **Count Metric Operation**
                  - `operation` (enum)
                    Values: `count`
                  - `empty_as_null` (boolean · default: false)
                    When `true`, treats empty buckets as null instead of zero.
                  - `field` (string)
                    Field to be used for the metric
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                - **Unique Count Metric Operation**
                  - `operation` (enum)
                    Values: `unique_count`
                  - `empty_as_null` (boolean · default: false)
                    When `true`, treats empty buckets as null instead of zero.
                  - `field` (string)
                    Field to be used for the metric
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                - **Last Value Operation**
                  - `operation` (enum)
                    Values: `last_value`
                  - `field` (string)
                    Field to be used for the metric
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `multi_value` (boolean · default: false)
                    Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_field` (string)
                    Time field used to determine document recency
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                - **Percentile Operation**
                  - `operation` (enum)
                    Values: `percentile`
                  - `field` (string)
                    Field to be used for the metric
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `percentile` (number · default: 95)
                    Percentile
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
                - **Percentile Ranks Operation**
                  - `operation` (enum)
                    Values: `percentile_rank`
                  - `field` (string)
                    Field to be used for the metric
                  - `filter` (object)
                    A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                    - `expression` (string)
                      A query expression in KQL or Lucene syntax
                    - `language` (enum · default: kql)
                      Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                      Values: `kql`, `lucene`
                  - `format` (union anyOf)
                    Number display format for the dimension value.
                    Same options as `format` in `Terms Operation`
                  - `label` (string)
                    Label for the operation
                  - `rank` (number · default: 0)
                    Percentile Rank
                  - `reduced_time_range` (string)
                    Reduced time range
                  - `time_scale` (enum)
                    Time scale
                    Values: `s`, `m`, `h`, `d`
                  - `time_shift` (string)
                    Time shift
              - `orientation` (enum · default: horizontal)
                Orientation
                Values: `horizontal`, `vertical`
            - **type: trend**
              - `type` (enum)
                Values: `trend`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            - **Color By Value**
              Dynamic color mapping by numeric range, with support for absolute and percentage-based ranges and for named palettes.
              Any of:
              - **Color By Value (Absolute)**
                Color by absolute value configuration
                - `range` (enum)
                  Values: `absolute`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Percentage)**
                Color by percentage value configuration
                - `range` (enum)
                  Values: `percentage`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Palette)**
                Color by value using a palette, with colors distributed across the range of values.
                - `palette` (enum)
                  The name of the palette to apply across the value range.
                  Values: `status`, `temperature`, `complementary`, `negative`, `positive`, `cool`, `warm`, `gray`
                - `type` (enum)
                  Values: `distributed_palette`
              - **Legacy color by value**
                Legacy color by value configuration
                - `palette` (string)
                  The legacy palette name.
                - `range` (enum)
                  Determines whether the range is interpreted as absolute or as a percentage of the data.
                  Values: `absolute`, `percentage`
                - `shift` (boolean)
                  When `true`, shifts the palette colors so they start from a different offset. Defaults to `false`.
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `legacy_dynamic`
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Unique Count Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Stats Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Sum Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Last Value Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Percentile Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Percentile Ranks Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Differences Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Moving Average Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Counter Rate Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `primary`
        - **Formula Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `background_chart` (union anyOf)
            Secondary visualization displayed behind the primary metric value, either a bar chart (with optional max value) or a trend line.
            Same options as `background_chart` in `Count Metric Operation`
          - `color` (union anyOf)
            Color configuration for the primary metric value or background.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the primary metric value.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `type` (enum)
            Values: `primary`
        - **Count Metric Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Unique Count Metric Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Stats Metric Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Sum Metric Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Last Value Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Percentile Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Percentile Ranks Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Differences Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Moving Average Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Counter Rate Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `type` (enum)
            Values: `secondary`
        - **Formula Operation**
          - `color` (union anyOf)
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
          - `compare` (union anyOf)
            Compare the secondary metric to a baseline value or to the primary metric.
            - **Compare To Baseline**
              - `to` (enum)
                Values: `baseline`
              - `baseline` (number · default: 0)
                Baseline value.
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
            - **Compare To Primary**
              - `to` (enum)
                Values: `primary`
              - `icon` (boolean)
                When `true`, displays the icon for the secondary value.
              - `palette` (string)
                Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
              - `value` (boolean)
                When `true`, displays the secondary value.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `type` (enum)
            Values: `secondary`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `density` (enum)
          Density preset for the metric chart layout. Use `compact` for a compact layout, or `default` for increased padding, element spacing, and font size.
          Values: `compact`, `default`
        - `icon` (object)
          Icon configuration for the metric chart
          - `alignment` (enum)
            Icon alignment. Accepted values: `left`, `right`. Defaults to `right`.
            Values: `left`, `right`
          - `name` (enum)
            Icon name
            Values: `alert`, `asterisk`, `bell`, `bolt`, `bug`, `compute`, `editor_comment`, `flag`, `globe`, `heart`, `map_marker`, `pin`, `sort_down`, `sort_up`, `star_empty`, `tag`, `temperature`
        - `primary` (object)
          - `labels` (object)
            Labels (title and subtitle) configuration
            - `alignment` (enum)
              Horizontal alignment for the title and subtitle text. Accepted values: `left`, `center`, `right`. Defaults to `left`.
              Values: `left`, `center`, `right`
          - `position` (enum)
            Position of the primary metric value (top, middle, or bottom).
            Values: `top`, `middle`, `bottom`
          - `value` (object)
            Primary metric value configuration
            - `alignment` (enum)
              Alignment for the primary metric value. Accepted values: `left`, `center`, `right`. Defaults to `right`.
              Values: `left`, `center`, `right`
            - `sizing` (enum)
              Controls how the primary value text is sized within the panel. 'auto' selects a font size from predefined breakpoints based on panel height, then shrinks if the text overflows horizontally. 'fill' scales the text to be as large as possible, filling all available space.
              Values: `auto`, `fill`
        - `secondary` (object)
          - `label` (object)
            - `placement` (enum)
              Label placement relative to the secondary metric value (before or after). Defaults to `before`. Ignored when the label is not visible.
              Values: `before`, `after`
            - `visible` (boolean)
              When `true`, displays the label.
          - `value` (object)
            Secondary metric value configuration
            - `alignment` (enum)
              Alignment for secondary values. Accepted values: `left`, `center`, `right`. Defaults to `right`.
              Values: `left`, `center`, `right`
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Legacy Metric Chart (DSL)**
      Legacy Metric configuration using a data view. Superseded by the Metric chart type.
      - `type` (enum)
        Values: `legacy_metric`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `metric` (union anyOf)
        - **Count Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            - **Color By Value (Absolute)**
              Color by absolute value configuration
              - `type` (enum)
                Values: `dynamic`
              - `range` (enum)
                Values: `absolute`
              - `steps` (object[] · min items: 1 · max items: 100)
                Array of ordered color steps defining the range each color is applied.
                - `color` (string)
                  The color to use for this step.
                - `gte` (number) — nullable
                  The lower bound of range from which this color applies (inclusive).
                - `lt` (number) — nullable
                  The upper bound of range to which this color applies (exclusive).
                - `lte` (number) — nullable
                  The upper bound of range to which this color applies (inclusive).
            - **Color By Value (Palette)**
              Color by value using a palette, with colors distributed across the range of values.
              - `type` (enum)
                Values: `distributed_palette`
              - `palette` (enum)
                The name of the palette to apply across the value range.
                Values: `status`, `temperature`, `complementary`, `negative`, `positive`, `cool`, `warm`, `gray`
            - **Legacy color by value (absolute)**
              Legacy color by absolute value configuration
              - `type` (enum)
                Values: `legacy_dynamic`
              - `palette` (string)
                The legacy palette name.
              - `range` (enum)
                Values: `absolute`
              - `shift` (boolean)
                When `true`, shifts the palette colors so they start from a different offset. Defaults to `false`.
              - `steps` (object[] · min items: 1 · max items: 100)
                Array of ordered color steps defining the range each color is applied.
                - `color` (string)
                  The color to use for this step.
                - `gte` (number) — nullable
                  The lower bound of range from which this color applies (inclusive).
                - `lt` (number) — nullable
                  The upper bound of range to which this color applies (exclusive).
                - `lte` (number) — nullable
                  The upper bound of range to which this color applies (inclusive).
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
        - **Unique Count Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
        - **Stats Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
        - **Sum Metric Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
        - **Last Value Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
        - **Percentile Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
        - **Percentile Ranks Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
        - **Formula Operation**
          - `apply_color_to` (enum)
            Color target: `value` colors the metric text, `background` colors the cell or panel background.
            Values: `value`, `background`
          - `color` (union anyOf)
            Color configuration based on the metric value. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `labels` (object)
            Labels configuration
            - `alignment` (enum · default: top)
              Label alignment
              Values: `top`, `bottom`
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `size` (enum)
            Font size for the label and value
            Values: `xs`, `s`, `m`, `l`, `xl`, `xxl`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `values` (object)
            Values configuration
            - `alignment` (enum · default: left)
              Value alignment
              Values: `left`, `center`, `right`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **XY Chart (DSL)**
      XY chart configuration for DSL queries
      - `type` (enum)
        Values: `xy`
      - `axis` (object)
        Axis configuration for X, Y, and Y2 axes. The Y axis is on the start (leading) side, the Y2 axis is on the end (trailing) side.
        - `x` (object)
          X-axis configuration
          - `domain` (union anyOf)
            X-axis domain configuration
            - **vis_api_domain_fit**
              Uses tight domain bounds from the observed data minimum to maximum, without baseline expansion.
              - `type` (enum)
                Values: `fit`
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
            - **vis_api_domain_custom**
              Uses explicitly provided domain bounds (min and max).
              - `type` (enum)
                Values: `custom`
              - `max` (number)
                Max domain value
              - `min` (number)
                Min domain value
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
          - `grid` (object)
            Axis grid lines configuration
            - `visible` (boolean)
              Show grid lines for this axis
          - `labels` (object)
            Label configuration
            - `orientation` (enum)
              Orientation of the tagcloud.
              Values: `horizontal`, `vertical`, `angled`
          - `scale` (enum)
            X-axis scale type. Use 'temporal' for timestamp/date fields (for example, @timestamp or DATE_TRUNC results). Use 'ordinal' for categorical/text fields. Use 'linear' for numeric fields.
            Values: `ordinal`, `temporal`, `linear`
          - `ticks` (object)
            Axis tick marks configuration
            - `visible` (boolean)
              Show tick marks on the axis
          - `title` (object)
            Axis title configuration
            - `text` (string)
              Axis title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - `y` (object)
          Y-axis configuration with scale and bounds. The axis position is determined by the key: y renders on the start side (left in vertical charts), y2 on the end side (right in vertical charts).
          - `domain` (union oneOf)
            Y-axis domain configuration
            - **vis_api_domain_full** (`type: full`)
              Uses the full chart domain, including baseline expansion when applicable (for example, includes zero for bar-like series).
              - `type` (enum)
                Values: `full`
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
            - **vis_api_domain_fit** (`type: fit`)
              Uses tight domain bounds from the observed data minimum to maximum, without baseline expansion.
              - `type` (enum)
                Values: `fit`
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
            - **vis_api_domain_custom** (`type: custom`)
              Uses explicitly provided domain bounds (min and max).
              - `type` (enum)
                Values: `custom`
              - `max` (number)
                Max domain value
              - `min` (number)
                Min domain value
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
          - `grid` (object)
            Axis grid lines configuration
            - `visible` (boolean)
              Show grid lines for this axis
          - `labels` (object)
            Label configuration
            - `orientation` (enum)
              Orientation of the tagcloud.
              Values: `horizontal`, `vertical`, `angled`
          - `scale` (enum)
            Y-axis scale type for data transformation
            Values: `linear`, `log`, `sqrt`
          - `ticks` (object)
            Axis tick marks configuration
            - `visible` (boolean)
              Show tick marks on the axis
          - `title` (object)
            Axis title configuration
            - `text` (string)
              Axis title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - `y2` (object)
          Y-axis configuration with scale and bounds. The axis position is determined by the key: y renders on the start side (left in vertical charts), y2 on the end side (right in vertical charts).
          - `domain` (union anyOf)
            Y-axis domain configuration
            - **vis_api_domain_full**
              Uses the full chart domain, including baseline expansion when applicable (for example, includes zero for bar-like series).
              - `type` (enum)
                Values: `full`
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
            - **vis_api_domain_fit**
              Uses tight domain bounds from the observed data minimum to maximum, without baseline expansion.
              - `type` (enum)
                Values: `fit`
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
            - **vis_api_domain_custom**
              Uses explicitly provided domain bounds (min and max).
              - `type` (enum)
                Values: `custom`
              - `max` (number)
                Max domain value
              - `min` (number)
                Min domain value
              - `rounding` (boolean)
                Whether to round axis domain bounds outward to readable “nice” values (for example 1, 5, 10, 100) instead of exact data min/max.
          - `grid` (object)
            Axis grid lines configuration
            - `visible` (boolean)
              Show grid lines for this axis
          - `labels` (object)
            Label configuration
            - `orientation` (enum)
              Orientation of the tagcloud.
              Values: `horizontal`, `vertical`, `angled`
          - `scale` (enum)
            Y-axis scale type for data transformation
            Values: `linear`, `log`, `sqrt`
          - `ticks` (object)
            Axis tick marks configuration
            - `visible` (boolean)
              Show tick marks on the axis
          - `title` (object)
            Axis title configuration
            - `text` (string)
              Axis title text.
            - `visible` (boolean)
              When `true`, displays the title.
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `layers` (union anyOf[] · min items: 1 · max items: 100)
        Chart layers
        - **Layer (DSL)**
          Data layer for standard queries with metrics and buckets
          - `breakdown_by` (union anyOf)
            - **Date Histogram Operation**
              - `operation` (enum)
                Values: `date_histogram`
              - `aggregate_first` (boolean)
                When `true`, aggregates data before splitting into series. Defaults to `false`.
              - `collapse_by` (enum)
                Aggregation function used to collapse a breakdown dimension into a single value.
                Values: `avg`, `sum`, `max`, `min`
              - `color` (union anyOf)
                Color mapping for dimension values, either categorical (for specific values) or as a gradient.
                - **Categorical Color Mapping**
                  Palette color assignment for specific categorical values. Unmapped values receive the unassigned color.
                  - `mode` (enum)
                    Values: `categorical`
                  - `mapping` (object[] · max items: 1000)
                    - `color` (union anyOf)
                      - **Color From Palette**
                        Color at a fixed index position in a named palette.
                        - `type` (enum)
                          Values: `from_palette`
                        - `index` (number)
                          The index of the color in the palette.
                        - `palette` (string)
                          Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                      - **Color Code**
                        A color specified as a hex or CSS color code string.
                        - `type` (enum)
                          Values: `color_code`
                        - `value` (string)
                          The static color value to use.
                    - `values` (union anyOf[] · max items: 1000)
                      - **string**
                      - **number**
                      - **boolean**
                      - **Multi Value Cell**
                        Values of a multi-value cell.
                      - **Range Key**
                        Identifies a range bucket. Omit either bound for an open end.
                        - `type` (enum)
                          Values: `range_key`
                        - `from` (number | string)
                        - `ranges` (object[] · max items: 100)
                          - `from` (number | string)
                          - `label` (string)
                          - `to` (number | string)
                        - `to` (number | string)
                      - **Multi Field Key**
                        Composite key from a multi-terms bucket.
                        - `type` (enum)
                          Values: `multi_field_key`
                        - `keys` (string[] · max items: 100)
                  - `palette` (string)
                    Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - `unassigned` (union anyOf)
                    The color to use for unassigned values.
                    - **Color From Palette**
                      Color at a fixed index position in a named palette.
                      - `type` (enum)
                        Values: `from_palette`
                      - `index` (number)
                        The index of the color in the palette.
                      - `palette` (string)
                        Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                    - **Color Code**
                      A color specified as a hex or CSS color code string.
                      - `type` (enum)
                        Values: `color_code`
                      - `value` (string)
                        The static color value to use.
                - **Gradient Color Mapping**
                  Gradient color mapping across categorical values.
                  - `mode` (enum)
                    Values: `gradient`
                  - `gradient` (union anyOf[] · max items: 3)
                    - **Color From Palette**
                      Color at a fixed index position in a named palette.
                      - `type` (enum)
                        Values: `from_palette`
                      - `index` (number)
                        The index of the color in the palette.
                      - `palette` (string)
                        Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                    - **Color Code**
                      A color specified as a hex or CSS color code string.
                      - `type` (enum)
                        Values: `color_code`
                      - `value` (string)
                        The static color value to use.
                  - `mapping` (object[] · max items: 100)
                    - `values` (union anyOf[] · max items: 100)
                      - **string**
                      - **number**
                      - **boolean**
                      - **Multi Value Cell**
                        Values of a multi-value cell.
                      - **Range Key**
                        Identifies a range bucket. Omit either bound for an open end.
                        - `type` (enum)
                          Values: `range_key`
                        - `from` (number | string)
                        - `ranges` (object[] · max items: 100)
                          - `from` (number | string)
                          - `label` (string)
                          - `to` (number | string)
                        - `to` (number | string)
                      - **Multi Field Key**
                        Composite key from a multi-terms bucket.
                        - `type` (enum)
                          Values: `multi_field_key`
                        - `keys` (string[] · max items: 100)
                  - `palette` (string)
                    Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - `sort` (enum)
                    Sort direction
                    Values: `asc`, `desc`
                  - `unassigned` (union anyOf)
                    The color to use for unassigned values.
                    - **Color From Palette**
                      Color at a fixed index position in a named palette.
                      - `type` (enum)
                        Values: `from_palette`
                      - `index` (number)
                        The index of the color in the palette.
                      - `palette` (string)
                        Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                    - **Color Code**
                      A color specified as a hex or CSS color code string.
                      - `type` (enum)
                        Values: `color_code`
                      - `value` (string)
                        The static color value to use.
              - `drop_partial_intervals` (boolean)
                When `true`, drops partial intervals from the results.
              - `field` (string)
                Field to be used for the date histogram.
              - `include_empty_rows` (boolean · default: true)
                When `true`, includes empty rows in the results.
              - `label` (string)
                Label for the operation
              - `suggested_interval` (string · default: auto)
                Suggested time interval.
              - `use_original_time_range` (boolean · default: false)
                When `true`, uses the original time range instead of the current query time range.
            - **Terms Operation**
              - `operation` (enum)
                Values: `terms`
              - `aggregate_first` (boolean)
                When `true`, aggregates data before splitting into series. Defaults to `false`.
              - `collapse_by` (enum)
                Aggregation function used to collapse a breakdown dimension into a single value.
                Values: `avg`, `sum`, `max`, `min`
              - `color` (union anyOf)
                Color mapping for dimension values, either categorical (for specific values) or as a gradient.
                Same options as `color` in `Date Histogram Operation`
              - `excludes` (object)
                - `as_regex` (boolean)
                  When `true`, treats the values as regular expressions.
                - `values` (union string[] | number[])
                  Values to exclude.
              - `fields` (string[] · min items: 1 · max items: 4)
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `includes` (object)
                - `as_regex` (boolean)
                  When `true`, treats the values as regular expressions.
                - `values` (union string[] | number[])
                  Values to include.
              - `increase_accuracy` (boolean)
                When `true`, increases accuracy at the cost of performance.
              - `label` (string)
                Label for the operation
              - `limit` (number · default: 5)
                Number of terms to return.
              - `other_bucket` (object)
                - `include_documents_without_field` (boolean)
                  When `true`, includes documents that do not have the specified field.
              - `rank_by` (union anyOf)
                Same options as `rank_by` in `Terms Operation`
            - **Histogram Operation**
              - `operation` (enum)
                Values: `histogram`
              - `aggregate_first` (boolean)
                When `true`, aggregates data before splitting into series. Defaults to `false`.
              - `collapse_by` (enum)
                Aggregation function used to collapse a breakdown dimension into a single value.
                Values: `avg`, `sum`, `max`, `min`
              - `color` (union anyOf)
                Color mapping for dimension values, either categorical (for specific values) or as a gradient.
                Same options as `color` in `Date Histogram Operation`
              - `field` (string)
                Field to be used for the histogram.
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `granularity` (union number | enum · default: auto)
                Values: `auto`
              - `include_empty_rows` (boolean · default: true)
                When `true`, includes empty rows in the results.
              - `label` (string)
                Label for the operation
            - **Ranges Operation**
              - `operation` (enum)
                Values: `range`
              - `aggregate_first` (boolean)
                When `true`, aggregates data before splitting into series. Defaults to `false`.
              - `collapse_by` (enum)
                Aggregation function used to collapse a breakdown dimension into a single value.
                Values: `avg`, `sum`, `max`, `min`
              - `color` (union anyOf)
                Color mapping for dimension values, either categorical (for specific values) or as a gradient.
                Same options as `color` in `Date Histogram Operation`
              - `field` (string)
                Field to be used for the range.
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `ranges` (object[] · max items: 100)
                - `gt` (number)
                  Greater than.
                - `label` (string)
                  Label.
                - `lte` (number)
                  Less than or equal to.
            - **Filters Operation**
              - `operation` (enum)
                Values: `filters`
              - `aggregate_first` (boolean)
                When `true`, aggregates data before splitting into series. Defaults to `false`.
              - `collapse_by` (enum)
                Aggregation function used to collapse a breakdown dimension into a single value.
                Values: `avg`, `sum`, `max`, `min`
              - `color` (union anyOf)
                Color mapping for dimension values, either categorical (for specific values) or as a gradient.
                Same options as `color` in `Date Histogram Operation`
              - `filters` (object[] · max items: 100)
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `label` (string)
                  Label for the filter
              - `label` (string)
                Label for the operation
          - `data_source` (union anyOf)
            Same options as `data_source` in `Metric Chart (DSL)`
          - `ignore_global_filters` (boolean · default: false)
            When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
          - `sampling` (number · min: 0 · max: 1 · default: 1)
            Sampling factor between 0 (no sampling) and 1 (full sampling).
          - `type` (enum)
            Chart type for the data layer
            Values: `area`, `area_percentage`, `area_stacked`, `bar`, `bar_horizontal`, `bar_horizontal_stacked`, `bar_horizontal_percentage`, `bar_percentage`, `bar_stacked`, `line`
          - `x` (union anyOf)
            - **Date Histogram Operation**
              - `operation` (enum)
                Values: `date_histogram`
              - `drop_partial_intervals` (boolean)
                When `true`, drops partial intervals from the results.
              - `field` (string)
                Field to be used for the date histogram.
              - `include_empty_rows` (boolean · default: true)
                When `true`, includes empty rows in the results.
              - `label` (string)
                Label for the operation
              - `suggested_interval` (string · default: auto)
                Suggested time interval.
              - `use_original_time_range` (boolean · default: false)
                When `true`, uses the original time range instead of the current query time range.
            - **Terms Operation**
              - `operation` (enum)
                Values: `terms`
              - `excludes` (object)
                - `as_regex` (boolean)
                  When `true`, treats the values as regular expressions.
                - `values` (union string[] | number[])
                  Values to exclude.
              - `fields` (string[] · min items: 1 · max items: 4)
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `includes` (object)
                - `as_regex` (boolean)
                  When `true`, treats the values as regular expressions.
                - `values` (union string[] | number[])
                  Values to include.
              - `increase_accuracy` (boolean)
                When `true`, increases accuracy at the cost of performance.
              - `label` (string)
                Label for the operation
              - `limit` (number · default: 5)
                Number of terms to return.
              - `other_bucket` (object)
                - `include_documents_without_field` (boolean)
                  When `true`, includes documents that do not have the specified field.
              - `rank_by` (union anyOf)
                Same options as `rank_by` in `Terms Operation`
            - **Histogram Operation**
              - `operation` (enum)
                Values: `histogram`
              - `field` (string)
                Field to be used for the histogram.
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `granularity` (union number | enum · default: auto)
                Values: `auto`
              - `include_empty_rows` (boolean · default: true)
                When `true`, includes empty rows in the results.
              - `label` (string)
                Label for the operation
            - **Ranges Operation**
              - `operation` (enum)
                Values: `range`
              - `field` (string)
                Field to be used for the range.
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `ranges` (object[] · max items: 100)
                - `gt` (number)
                  Greater than.
                - `label` (string)
                  Label.
                - `lte` (number)
                  Less than or equal to.
            - **Filters Operation**
              - `operation` (enum)
                Values: `filters`
              - `filters` (object[] · max items: 100)
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `label` (string)
                  Label for the filter
              - `label` (string)
                Label for the operation
          - `y` (union anyOf[] · max items: 100)
            Array of metrics to display on Y-axis
            - **Count Metric Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `empty_as_null` (boolean · default: false)
                When `true`, treats empty buckets as null instead of zero.
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `count`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Unique Count Metric Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `empty_as_null` (boolean · default: false)
                When `true`, treats empty buckets as null instead of zero.
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `unique_count`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Stats Metric Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `min`, `max`, `average`, `median`, `standard_deviation`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Sum Metric Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `empty_as_null` (boolean · default: false)
                When `true`, treats empty buckets as null instead of zero.
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `sum`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Last Value Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `multi_value` (boolean · default: false)
                Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
              - `operation` (enum)
                Values: `last_value`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_field` (string)
                Time field used to determine document recency
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Percentile Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `percentile`
              - `percentile` (number · default: 95)
                Percentile
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Percentile Ranks Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `percentile_rank`
              - `rank` (number · default: 0)
                Percentile Rank
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Differences Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `of` (union anyOf)
                Same options as `of` in `Differences Operation`
              - `operation` (enum)
                Values: `differences`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Moving Average Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `of` (union anyOf)
                Same options as `of` in `Differences Operation`
              - `operation` (enum)
                Values: `moving_average`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
              - `window` (number · default: 5)
                Window
            - **Cumulative Sum Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `cumulative_sum`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Counter Rate Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `counter_rate`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Formula Operation**
              - `axis` (enum)
                The Y axis this metric is plotted on. Values match the root axis configuration keys (axis.y, axis.y2). If omitted, defaults to the Y axis start (leading) side.
                Values: `y`, `y2`
              - `color` (union anyOf)
                Static color of the Y metric. Defaults to `auto`. Ignored with a non-collapsed `breakdown_by`.
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `formula` (string)
                Formula
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `formula`
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
        - **Reference Line Layer (DSL)**
          Reference line layer for standard queries
          - `data_source` (union anyOf)
            Same options as `data_source` in `Metric Chart (DSL)`
          - `ignore_global_filters` (boolean · default: false)
            When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
          - `sampling` (number · min: 0 · max: 1 · default: 1)
            Sampling factor between 0 (no sampling) and 1 (full sampling).
          - `thresholds` (union anyOf[] · min items: 1 · max items: 100)
            Array of reference line thresholds
            - **Count Metric Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `empty_as_null` (boolean · default: false)
                When `true`, treats empty buckets as null instead of zero.
              - `field` (string)
                Field to be used for the metric
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `count`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Unique Count Metric Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `empty_as_null` (boolean · default: false)
                When `true`, treats empty buckets as null instead of zero.
              - `field` (string)
                Field to be used for the metric
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `unique_count`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Stats Metric Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `min`, `max`, `average`, `median`, `standard_deviation`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Sum Metric Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `empty_as_null` (boolean · default: false)
                When `true`, treats empty buckets as null instead of zero.
              - `field` (string)
                Field to be used for the metric
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `sum`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Last Value Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `multi_value` (boolean · default: false)
                Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
              - `operation` (enum)
                Values: `last_value`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_field` (string)
                Time field used to determine document recency
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Percentile Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `percentile`
              - `percentile` (number · default: 95)
                Percentile
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Percentile Ranks Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `field` (string)
                Field to be used for the metric
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `percentile_rank`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `rank` (number · default: 0)
                Percentile Rank
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
              - `time_shift` (string)
                Time shift
            - **Static Operation Definition**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `static_value`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `value` (number · default: 100)
                Static value
            - **Formula Operation**
              - `axis` (enum)
                The axis this reference line is drawn on. Values match the root axis configuration keys. If omitted, defaults to the primary Y axis.
                Values: `x`, `y`, `y2`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `fill` (enum)
                Fill direction for reference line
                Values: `above`, `below`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `formula` (string)
                Formula
              - `icon` (enum)
                Icon to display on the reference line
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label for the operation
              - `operation` (enum)
                Values: `formula`
              - `position` (enum)
                Position of the icon and label relative to the reference line
                Values: `auto`, `left`, `right`
              - `reduced_time_range` (string)
                Reduced time range
              - `stroke_dash` (enum)
                Line style
                Values: `solid`, `dashed`, `dotted`
              - `stroke_width` (number · min: 1 · max: 10)
                Line width in pixels
              - `text` (object)
                Reference line text label configuration
                - `visible` (boolean)
                  Show text label on the reference line
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
          - `type` (enum)
            Values: `reference_lines`
        - **Annotation Layer (DSL)**
          Layer containing annotations (query-based, points, and ranges)
          - `data_source` (union anyOf)
            Same options as `data_source` in `Metric Chart (DSL)`
          - `events` (union anyOf[] · min items: 1 · max items: 100)
            Array of annotation configurations
            - **xyAnnotationQuery**
              Annotation from query results matching a filter
              - `type` (enum)
                Values: `query`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `extra_fields` (string[] · max items: 100)
                Additional fields for annotation tooltip
              - `icon` (enum)
                Icon to display at the annotation point
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label text for the annotation
              - `line` (object)
                Vertical line configuration for point annotation
                - `stroke_dash` (enum)
                  Vertical line style
                  Values: `solid`, `dashed`, `dotted`
                - `stroke_width` (number · min: 1 · max: 10)
                  Vertical line width in pixels
              - `query` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `text` (object)
                Annotation text label configuration
                - `field` (string)
                  Field name for text label source
                - `visible` (boolean)
                  Show text label on the annotation
              - `time_field` (string)
                Field containing the timestamp
              - `visible` (boolean)
                Show the annotation
            - **xyAnnotationManualEvent**
              Manual point annotation at specific timestamp
              - `type` (enum)
                Values: `point`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `icon` (enum)
                Icon to display at the annotation point
                Values: `asterisk`, `alert`, `bell`, `bolt`, `bug`, `circle`, `editor_comment`, `flag`, `heart`, `map_marker`, `pin_filled`, `star_empty`, `star_filled`, `tag`, `triangle`
              - `label` (string)
                Label text for the annotation
              - `line` (object)
                Vertical line configuration for point annotation
                - `stroke_dash` (enum)
                  Vertical line style
                  Values: `solid`, `dashed`, `dotted`
                - `stroke_width` (number · min: 1 · max: 10)
                  Vertical line width in pixels
              - `text` (object)
                Annotation text label visibility
                - `visible` (boolean)
                  Show text label on the annotation
              - `timestamp` (union number | string)
              - `visible` (boolean)
                Show the annotation
            - **xyAnnotationManualRange**
              Manual range annotation spanning time interval
              - `type` (enum)
                Values: `range`
              - `color` (union anyOf)
                - **Static Color**
                  Fixed color for all values in the dimension.
                  - `type` (enum)
                    Values: `static`
                  - `color` (string)
                    The static color to be used for all values.
                - **Auto Color**
                  Coloring determined at runtime based on chart defaults
                  - `type` (enum)
                    Values: `auto`
              - `fill` (enum)
                Fill direction for range
                Values: `inside`, `outside`
              - `interval` (object)
                Time range for annotation
                - `from` (union number | string)
                - `to` (union number | string)
              - `label` (string)
                Label text for the annotation
              - `visible` (boolean)
                Show the annotation
          - `ignore_global_filters` (boolean · default: false)
            When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
          - `type` (enum)
            Values: `annotations`
        - **Annotation Layer (By Reference)**
          Reference to a library annotation group
          - `group_id` (string)
            ID of the linked annotation group from the library
          - `type` (enum)
            Values: `annotation_group`
      - `legend` (union anyOf)
        Legend configuration for XY chart
        - **Outside horizontal**
          Outside legend positioned horizontal (top/bottom) of the chart
          - `layout` (union anyOf)
            - **type: grid**
              - `type` (enum)
                Values: `grid`
              - `truncate` (object)
                - `enabled` (boolean)
                  Enable truncation of legend items
                - `max_lines` (number · min: 1 · max: 10)
                  Number of lines before legend items are truncated.
            - **type: list**
              - `type` (enum)
                Values: `list`
          - `placement` (enum)
            Values: `outside`
          - `position` (enum)
            Values: `top`, `bottom`
          - `series_header` (object)
            Legend table series header configuration.
            - `text` (string)
              Legend table series header text.
            - `visible` (boolean)
              When true, shows the legend table series header.
          - `statistics` (enum[] · max items: 17)
            Statistics to display in legend
            Values: `min`, `max`, `avg`, `median`, `range`, `last_value`, `last_non_null_value`, `first_value`, `first_non_null_value`, `difference`, `difference_percentage`, `count`, `total`, `standard_deviation`, `variance`, `distinct_count`, `current_and_last_value`
          - `visibility` (enum)
            Legend visibility.
            Values: `auto`, `visible`, `hidden`
        - **Outside vertical**
          Outside legend positioned vertical (left/right) of the chart
          - `layout` (object)
            - `truncate` (object)
              - `enabled` (boolean)
                Enable truncation of legend items
              - `max_lines` (number · min: 1 · max: 10)
                Number of lines before legend items are truncated.
            - `type` (enum)
              Values: `grid`
          - `placement` (enum)
            Values: `outside`
          - `position` (enum)
            Values: `left`, `right`
          - `series_header` (object)
            Legend table series header configuration.
            - `text` (string)
              Legend table series header text.
            - `visible` (boolean)
              When true, shows the legend table series header.
          - `size` (enum)
            Legend size.
            Values: `auto`, `s`, `m`, `l`, `xl`
          - `statistics` (enum[] · max items: 17)
            Statistics to display in legend
            Values: `min`, `max`, `avg`, `median`, `range`, `last_value`, `last_non_null_value`, `first_value`, `first_non_null_value`, `difference`, `difference_percentage`, `count`, `total`, `standard_deviation`, `variance`, `distinct_count`, `current_and_last_value`
          - `visibility` (enum)
            Legend visibility.
            Values: `auto`, `visible`, `hidden`
        - **Inside**
          Inside legend
          - `columns` (number · min: 1 · max: 5)
            Number of legend columns
          - `layout` (object)
            - `truncate` (object)
              - `enabled` (boolean)
                Enable truncation of legend items
              - `max_lines` (number · min: 1 · max: 10)
                Number of lines before legend items are truncated.
            - `type` (enum)
              Values: `grid`
          - `placement` (enum)
            Values: `inside`
          - `position` (enum)
            Legend position inside the chart
            Values: `top_left`, `top_right`, `bottom_left`, `bottom_right`
          - `series_header` (object)
            Legend table series header configuration.
            - `text` (string)
              Legend table series header text.
            - `visible` (boolean)
              When true, shows the legend table series header.
          - `statistics` (enum[] · max items: 17)
            Statistics to display in legend
            Values: `min`, `max`, `avg`, `median`, `range`, `last_value`, `last_non_null_value`, `first_value`, `first_non_null_value`, `difference`, `difference_percentage`, `count`, `total`, `standard_deviation`, `variance`, `distinct_count`, `current_and_last_value`
          - `visibility` (enum)
            Legend visibility.
            Values: `auto`, `visible`, `hidden`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `styling` (object)
        Visual styling options for the chart
        - `areas` (object)
          Area-specific rendering settings
          - `fill_opacity` (number · min: 0 · max: 2)
            Area fill opacity (0-1 typical, max 2 for legacy)
        - `bars` (object)
          Bar-specific rendering settings
          - `data_labels` (object)
            Data label configuration for bar series
            - `visible` (boolean · default: false)
              Display value labels on bar data points
          - `minimum_height` (number · min: 0)
            Minimum bar height in pixels
        - `fitting` (object)
          Missing data interpolation configuration for line and area series
          - `emphasize` (boolean)
            Visually distinguish fitted segments with a dashed line style and reduced area opacity
          - `extend` (enum)
            How to render line and area edges when data does not cover the full X domain
            Values: `none`, `zero`, `nearest`
          - `type` (enum)
            Fitting function type for missing data
            Values: `none`, `zero`, `linear`, `carry`, `lookahead`, `average`, `nearest`
        - `interpolation` (enum)
          Curve interpolation method for line and area series
          Values: `linear`, `smooth`, `stepped`
        - `overlays` (object)
          Visual overlays drawn on top of the chart canvas
          - `current_time_marker` (object)
            Current time marker configuration
            - `visible` (boolean · default: false)
              Show current time marker line
          - `partial_buckets` (object)
            Partial (incomplete) bucket indicator configuration
            - `visible` (boolean · default: false)
              Show partial bucket indicators at time range edges
        - `points` (object)
          Data point marker settings for line and area series
          - `visibility` (enum)
            Data point marker visibility on line and area series
            Values: `auto`, `visible`, `hidden`
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Gauge Chart (DSL)**
      Gauge configuration using a data view.
      - `type` (enum)
        Values: `gauge`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `metric` (union anyOf)
        - **Count Metric Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            - **Color By Value**
              Dynamic color mapping by numeric range, with support for absolute and percentage-based ranges and for named palettes.
              Any of:
              - **Color By Value (Absolute)**
                Color by absolute value configuration
                - `range` (enum)
                  Values: `absolute`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Percentage)**
                Color by percentage value configuration
                - `range` (enum)
                  Values: `percentage`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Palette)**
                Color by value using a palette, with colors distributed across the range of values.
                - `palette` (enum)
                  The name of the palette to apply across the value range.
                  Values: `status`, `temperature`, `complementary`, `negative`, `positive`, `cool`, `warm`, `gray`
                - `type` (enum)
                  Values: `distributed_palette`
              - **Legacy color by value**
                Legacy color by value configuration
                - `palette` (string)
                  The legacy palette name.
                - `range` (enum)
                  Determines whether the range is interpreted as absolute or as a percentage of the data.
                  Values: `absolute`, `percentage`
                - `shift` (boolean)
                  When `true`, shifts the palette colors so they start from a different offset. Defaults to `false`.
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `legacy_dynamic`
            - **No Color**
              Explicitly disables coloring
              - `type` (enum)
                Values: `none`
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            - **Field Metric Operations**
              Any of:
              - **Count Metric Operation**
                - `empty_as_null` (boolean · default: false)
                  When `true`, treats empty buckets as null instead of zero.
                - `field` (string)
                  Field to be used for the metric
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `format` (union anyOf)
                  Number display format for the dimension value.
                  Same options as `format` in `Terms Operation`
                - `label` (string)
                  Label for the operation
                - `operation` (enum)
                  Values: `count`
                - `reduced_time_range` (string)
                  Reduced time range
                - `time_scale` (enum)
                  Time scale
                  Values: `s`, `m`, `h`, `d`
                - `time_shift` (string)
                  Time shift
              - **Unique Count Metric Operation**
                - `empty_as_null` (boolean · default: false)
                  When `true`, treats empty buckets as null instead of zero.
                - `field` (string)
                  Field to be used for the metric
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `format` (union anyOf)
                  Number display format for the dimension value.
                  Same options as `format` in `Terms Operation`
                - `label` (string)
                  Label for the operation
                - `operation` (enum)
                  Values: `unique_count`
                - `reduced_time_range` (string)
                  Reduced time range
                - `time_scale` (enum)
                  Time scale
                  Values: `s`, `m`, `h`, `d`
                - `time_shift` (string)
                  Time shift
              - **Stats Metric Operation**
                - `field` (string)
                  Field to be used for the metric
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `format` (union anyOf)
                  Number display format for the dimension value.
                  Same options as `format` in `Terms Operation`
                - `label` (string)
                  Label for the operation
                - `operation` (enum)
                  Values: `min`, `max`, `average`, `median`, `standard_deviation`
                - `reduced_time_range` (string)
                  Reduced time range
                - `time_scale` (enum)
                  Time scale
                  Values: `s`, `m`, `h`, `d`
                - `time_shift` (string)
                  Time shift
              - **Sum Metric Operation**
                - `empty_as_null` (boolean · default: false)
                  When `true`, treats empty buckets as null instead of zero.
                - `field` (string)
                  Field to be used for the metric
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `format` (union anyOf)
                  Number display format for the dimension value.
                  Same options as `format` in `Terms Operation`
                - `label` (string)
                  Label for the operation
                - `operation` (enum)
                  Values: `sum`
                - `reduced_time_range` (string)
                  Reduced time range
                - `time_scale` (enum)
                  Time scale
                  Values: `s`, `m`, `h`, `d`
                - `time_shift` (string)
                  Time shift
              - **Last Value Operation**
                - `field` (string)
                  Field to be used for the metric
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `format` (union anyOf)
                  Number display format for the dimension value.
                  Same options as `format` in `Terms Operation`
                - `label` (string)
                  Label for the operation
                - `multi_value` (boolean · default: false)
                  Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
                - `operation` (enum)
                  Values: `last_value`
                - `reduced_time_range` (string)
                  Reduced time range
                - `time_field` (string)
                  Time field used to determine document recency
                - `time_scale` (enum)
                  Time scale
                  Values: `s`, `m`, `h`, `d`
                - `time_shift` (string)
                  Time shift
              - **Percentile Operation**
                - `field` (string)
                  Field to be used for the metric
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `format` (union anyOf)
                  Number display format for the dimension value.
                  Same options as `format` in `Terms Operation`
                - `label` (string)
                  Label for the operation
                - `operation` (enum)
                  Values: `percentile`
                - `percentile` (number · default: 95)
                  Percentile
                - `reduced_time_range` (string)
                  Reduced time range
                - `time_scale` (enum)
                  Time scale
                  Values: `s`, `m`, `h`, `d`
                - `time_shift` (string)
                  Time shift
              - **Percentile Ranks Operation**
                - `field` (string)
                  Field to be used for the metric
                - `filter` (object)
                  A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                  - `expression` (string)
                    A query expression in KQL or Lucene syntax
                  - `language` (enum · default: kql)
                    Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                    Values: `kql`, `lucene`
                - `format` (union anyOf)
                  Number display format for the dimension value.
                  Same options as `format` in `Terms Operation`
                - `label` (string)
                  Label for the operation
                - `operation` (enum)
                  Values: `percentile_rank`
                - `rank` (number · default: 0)
                  Percentile Rank
                - `reduced_time_range` (string)
                  Reduced time range
                - `time_scale` (enum)
                  Time scale
                  Values: `s`, `m`, `h`, `d`
                - `time_shift` (string)
                  Time shift
            - **Static Operation Definition**
              - `operation` (enum)
                Values: `static_value`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `label` (string)
                Label for the operation
              - `value` (number · default: 100)
                Static value
            - **Formula Operation**
              - `operation` (enum)
                Values: `formula`
              - `filter` (object)
                A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
                - `expression` (string)
                  A query expression in KQL or Lucene syntax
                - `language` (enum · default: kql)
                  Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                  Values: `kql`, `lucene`
              - `format` (union anyOf)
                Number display format for the dimension value.
                Same options as `format` in `Terms Operation`
              - `formula` (string)
                Formula
              - `label` (string)
                Label for the operation
              - `reduced_time_range` (string)
                Reduced time range
              - `time_scale` (enum)
                Time scale
                Values: `s`, `m`, `h`, `d`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - **Unique Count Metric Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - **Stats Metric Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - **Sum Metric Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - **Last Value Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - **Percentile Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - **Percentile Ranks Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - **Formula Operation**
          - `color` (union anyOf)
            Color configuration for the gauge fill.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `goal` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `label` (string)
            Label for the operation
          - `max` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `min` (union anyOf)
            Metric dimension using a field-based aggregation, a static value, or a mathematical formula.
            Same options as `goal` in `Count Metric Operation`
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `subtitle` (string)
            Subtitle below the gauge value.
          - `ticks` (object)
            Ticks configuration
            - `mode` (enum)
              Tick placement mode. Defaults to `bands`. Ignored when the ticks are not visible.
              Values: `auto`, `bands`
            - `visible` (boolean)
              When `true`, displays tick marks on the gauge.
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `title` (object)
            Title configuration
            - `text` (string)
              Title text.
            - `visible` (boolean)
              When `true`, displays the title.
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `shape` (union anyOf)
          - **Shape (Bullet)**
            Bullet gauge shape.
            - `orientation` (enum · default: horizontal)
              Orientation
              Values: `horizontal`, `vertical`
            - `type` (enum)
              Values: `bullet`
          - **Shape (Circular)**
            Circular gauge shape.
            - `type` (enum)
              Values: `circle`, `semi_circle`, `arc`
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Heatmap Chart (DSL)**
      Heatmap configuration using a data view.
      - `type` (enum)
        Values: `heatmap`
      - `axis` (object)
        Axis configuration for X and Y axes
        - `x` (object)
          X axis configuration
          - `labels` (object)
            - `orientation` (enum)
              Orientation of the tagcloud.
              Values: `horizontal`, `vertical`, `angled`
            - `visible` (boolean)
              Show axis labels
          - `scale` (enum)
            X-axis scale type. Use 'temporal' for timestamp/date fields (for example, @timestamp or DATE_TRUNC results). Use 'ordinal' for categorical/text fields. Use 'linear' for numeric fields.
            Values: `ordinal`, `temporal`, `linear`
          - `sort` (enum)
            Axis sort order; omit or use undefined for no sorting
            Values: `asc`, `desc`
          - `title` (object)
            - `text` (string)
              Axis title text.
            - `visible` (boolean)
              When `true`, displays the title.
        - `y` (object)
          Y axis configuration
          - `labels` (object)
            - `visible` (boolean)
              Show axis labels
          - `sort` (enum)
            Axis sort order; omit or use undefined for no sorting
            Values: `asc`, `desc`
          - `title` (object)
            - `text` (string)
              Axis title text.
            - `visible` (boolean)
              When `true`, displays the title.
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `legend` (object)
        Legend configuration
        - `position` (enum)
          Values: `top`, `bottom`, `left`, `right`
        - `size` (enum)
          Legend size.
          Values: `auto`, `s`, `m`, `l`, `xl`
        - `truncate_after_lines` (number · min: 1 · max: 10)
          Number of lines before legend items are truncated.
        - `visibility` (enum)
          Legend visibility.
          Values: `visible`, `hidden`
      - `metric` (union anyOf)
        - **Count Metric Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            - **Color By Value**
              Dynamic color mapping by numeric range, with support for absolute and percentage-based ranges and for named palettes.
              Any of:
              - **Color By Value (Absolute)**
                Color by absolute value configuration
                - `range` (enum)
                  Values: `absolute`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Percentage)**
                Color by percentage value configuration
                - `range` (enum)
                  Values: `percentage`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Palette)**
                Color by value using a palette, with colors distributed across the range of values.
                - `palette` (enum)
                  The name of the palette to apply across the value range.
                  Values: `status`, `temperature`, `complementary`, `negative`, `positive`, `cool`, `warm`, `gray`
                - `type` (enum)
                  Values: `distributed_palette`
              - **Legacy color by value**
                Legacy color by value configuration
                - `palette` (string)
                  The legacy palette name.
                - `range` (enum)
                  Determines whether the range is interpreted as absolute or as a percentage of the data.
                  Values: `absolute`, `percentage`
                - `shift` (boolean)
                  When `true`, shifts the palette colors so they start from a different offset. Defaults to `false`.
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `legacy_dynamic`
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Unique Count Metric Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Stats Metric Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Sum Metric Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Last Value Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Ranks Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Differences Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Moving Average Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Counter Rate Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Formula Operation**
          - `color` (union anyOf)
            Color scale configuration for the heatmap cells.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `cells` (object)
          Cells configuration
          - `labels` (object)
            - `visible` (boolean)
              Show cell labels
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
      - `x` (union anyOf)
        Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters.
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `y` (union anyOf)
        Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters.
        Same options as `x` in `Heatmap Chart (DSL)`
    - **Tag Cloud Chart (DSL)**
      Tag Cloud configuration using a data view.
      - `type` (enum)
        Values: `tag_cloud`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `metric` (union anyOf)
        - **Count Metric Operation**
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Unique Count Metric Operation**
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Stats Metric Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Sum Metric Operation**
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Last Value Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Ranks Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Differences Operation**
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Moving Average Operation**
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Counter Rate Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Formula Operation**
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `caption` (object)
          Caption configuration representing the metric and the tag_by operations labels
          - `visible` (boolean · default: true)
            When `true`, displays the caption.
        - `font_size` (object)
          Font size range for tags.
          - `max` (number · max: 120 · default: 72)
            Maximum font size.
          - `min` (number · min: 1 · default: 18)
            Minimum font size.
        - `orientation` (enum)
          Orientation of the tagcloud.
          Values: `horizontal`, `vertical`, `angled`
      - `tag_by` (union anyOf)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Region Map (DSL)**
      Region Map configuration using a data view, mapping metric values to geographic regions by color.
      - `type` (enum)
        Values: `region_map`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `metric` (union anyOf)
        Metric dimension using a field-based aggregation or a mathematical formula.
        - **Field Metric Operations**
          Any of:
          - **Count Metric Operation**
            - `empty_as_null` (boolean · default: false)
              When `true`, treats empty buckets as null instead of zero.
            - `field` (string)
              Field to be used for the metric
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `format` (union anyOf)
              Number display format for the dimension value.
              Same options as `format` in `Terms Operation`
            - `label` (string)
              Label for the operation
            - `operation` (enum)
              Values: `count`
            - `reduced_time_range` (string)
              Reduced time range
            - `time_scale` (enum)
              Time scale
              Values: `s`, `m`, `h`, `d`
            - `time_shift` (string)
              Time shift
          - **Unique Count Metric Operation**
            - `empty_as_null` (boolean · default: false)
              When `true`, treats empty buckets as null instead of zero.
            - `field` (string)
              Field to be used for the metric
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `format` (union anyOf)
              Number display format for the dimension value.
              Same options as `format` in `Terms Operation`
            - `label` (string)
              Label for the operation
            - `operation` (enum)
              Values: `unique_count`
            - `reduced_time_range` (string)
              Reduced time range
            - `time_scale` (enum)
              Time scale
              Values: `s`, `m`, `h`, `d`
            - `time_shift` (string)
              Time shift
          - **Stats Metric Operation**
            - `field` (string)
              Field to be used for the metric
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `format` (union anyOf)
              Number display format for the dimension value.
              Same options as `format` in `Terms Operation`
            - `label` (string)
              Label for the operation
            - `operation` (enum)
              Values: `min`, `max`, `average`, `median`, `standard_deviation`
            - `reduced_time_range` (string)
              Reduced time range
            - `time_scale` (enum)
              Time scale
              Values: `s`, `m`, `h`, `d`
            - `time_shift` (string)
              Time shift
          - **Sum Metric Operation**
            - `empty_as_null` (boolean · default: false)
              When `true`, treats empty buckets as null instead of zero.
            - `field` (string)
              Field to be used for the metric
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `format` (union anyOf)
              Number display format for the dimension value.
              Same options as `format` in `Terms Operation`
            - `label` (string)
              Label for the operation
            - `operation` (enum)
              Values: `sum`
            - `reduced_time_range` (string)
              Reduced time range
            - `time_scale` (enum)
              Time scale
              Values: `s`, `m`, `h`, `d`
            - `time_shift` (string)
              Time shift
          - **Last Value Operation**
            - `field` (string)
              Field to be used for the metric
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `format` (union anyOf)
              Number display format for the dimension value.
              Same options as `format` in `Terms Operation`
            - `label` (string)
              Label for the operation
            - `multi_value` (boolean · default: false)
              Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
            - `operation` (enum)
              Values: `last_value`
            - `reduced_time_range` (string)
              Reduced time range
            - `time_field` (string)
              Time field used to determine document recency
            - `time_scale` (enum)
              Time scale
              Values: `s`, `m`, `h`, `d`
            - `time_shift` (string)
              Time shift
          - **Percentile Operation**
            - `field` (string)
              Field to be used for the metric
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `format` (union anyOf)
              Number display format for the dimension value.
              Same options as `format` in `Terms Operation`
            - `label` (string)
              Label for the operation
            - `operation` (enum)
              Values: `percentile`
            - `percentile` (number · default: 95)
              Percentile
            - `reduced_time_range` (string)
              Reduced time range
            - `time_scale` (enum)
              Time scale
              Values: `s`, `m`, `h`, `d`
            - `time_shift` (string)
              Time shift
          - **Percentile Ranks Operation**
            - `field` (string)
              Field to be used for the metric
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `format` (union anyOf)
              Number display format for the dimension value.
              Same options as `format` in `Terms Operation`
            - `label` (string)
              Label for the operation
            - `operation` (enum)
              Values: `percentile_rank`
            - `rank` (number · default: 0)
              Percentile Rank
            - `reduced_time_range` (string)
              Reduced time range
            - `time_scale` (enum)
              Time scale
              Values: `s`, `m`, `h`, `d`
            - `time_shift` (string)
              Time shift
        - **Formula Operation**
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `region` (union anyOf)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `ems` (object)
            - `boundaries` (string)
              EMS boundaries
            - `join` (string)
              EMS join field
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `ems` (object)
            - `boundaries` (string)
              EMS boundaries
            - `join` (string)
              EMS join field
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `ems` (object)
            - `boundaries` (string)
              EMS boundaries
            - `join` (string)
              EMS join field
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `ems` (object)
            - `boundaries` (string)
              EMS boundaries
            - `join` (string)
              EMS join field
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `ems` (object)
            - `boundaries` (string)
              EMS boundaries
            - `join` (string)
              EMS join field
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Datatable (DSL)**
      Datatable state configuration for standard queries
      - `type` (enum)
        Values: `data_table`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `metrics` (union anyOf[] · min items: 1 · max items: 1000)
        Array of metrics to display as columns in the datatable
        - **Count Metric Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            - **Color By Value**
              Dynamic color mapping by numeric range, with support for absolute and percentage-based ranges and for named palettes.
              Any of:
              - **Color By Value (Absolute)**
                Color by absolute value configuration
                - `range` (enum)
                  Values: `absolute`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Percentage)**
                Color by percentage value configuration
                - `range` (enum)
                  Values: `percentage`
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `dynamic`
              - **Color By Value (Palette)**
                Color by value using a palette, with colors distributed across the range of values.
                - `palette` (enum)
                  The name of the palette to apply across the value range.
                  Values: `status`, `temperature`, `complementary`, `negative`, `positive`, `cool`, `warm`, `gray`
                - `type` (enum)
                  Values: `distributed_palette`
              - **Legacy color by value**
                Legacy color by value configuration
                - `palette` (string)
                  The legacy palette name.
                - `range` (enum)
                  Determines whether the range is interpreted as absolute or as a percentage of the data.
                  Values: `absolute`, `percentage`
                - `shift` (boolean)
                  When `true`, shifts the palette colors so they start from a different offset. Defaults to `false`.
                - `steps` (object[] · min items: 1 · max items: 100)
                  Array of ordered color steps defining the range each color is applied.
                  - `color` (string)
                    The color to use for this step.
                  - `gte` (number) — nullable
                    The lower bound of range from which this color applies (inclusive).
                  - `lt` (number) — nullable
                    The upper bound of range to which this color applies (exclusive).
                  - `lte` (number) — nullable
                    The upper bound of range to which this color applies (inclusive).
                - `type` (enum)
                  Values: `legacy_dynamic`
            - **Color Mapping**
              Color mapping for dimension values, either categorical (for specific values) or as a gradient.
              Any of:
              - **Categorical Color Mapping**
                Palette color assignment for specific categorical values. Unmapped values receive the unassigned color.
                - `mode` (enum)
                  Values: `categorical`
                - `mapping` (object[] · max items: 1000)
                  - `color` (union anyOf)
                    - **Color From Palette**
                      Color at a fixed index position in a named palette.
                      - `type` (enum)
                        Values: `from_palette`
                      - `index` (number)
                        The index of the color in the palette.
                      - `palette` (string)
                        Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                    - **Color Code**
                      A color specified as a hex or CSS color code string.
                      - `type` (enum)
                        Values: `color_code`
                      - `value` (string)
                        The static color value to use.
                  - `values` (union anyOf[] · max items: 1000)
                    - **string**
                    - **number**
                    - **boolean**
                    - **Multi Value Cell**
                      Values of a multi-value cell.
                    - **Range Key**
                      Identifies a range bucket. Omit either bound for an open end.
                      - `type` (enum)
                        Values: `range_key`
                      - `from` (number | string)
                      - `ranges` (object[] · max items: 100)
                        - `from` (number | string)
                        - `label` (string)
                        - `to` (number | string)
                      - `to` (number | string)
                    - **Multi Field Key**
                      Composite key from a multi-terms bucket.
                      - `type` (enum)
                        Values: `multi_field_key`
                      - `keys` (string[] · max items: 100)
                - `palette` (string)
                  Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                - `unassigned` (union anyOf)
                  The color to use for unassigned values.
                  - **Color From Palette**
                    Color at a fixed index position in a named palette.
                    - `type` (enum)
                      Values: `from_palette`
                    - `index` (number)
                      The index of the color in the palette.
                    - `palette` (string)
                      Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - **Color Code**
                    A color specified as a hex or CSS color code string.
                    - `type` (enum)
                      Values: `color_code`
                    - `value` (string)
                      The static color value to use.
              - **Gradient Color Mapping**
                Gradient color mapping across categorical values.
                - `mode` (enum)
                  Values: `gradient`
                - `gradient` (union anyOf[] · max items: 3)
                  - **Color From Palette**
                    Color at a fixed index position in a named palette.
                    - `type` (enum)
                      Values: `from_palette`
                    - `index` (number)
                      The index of the color in the palette.
                    - `palette` (string)
                      Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - **Color Code**
                    A color specified as a hex or CSS color code string.
                    - `type` (enum)
                      Values: `color_code`
                    - `value` (string)
                      The static color value to use.
                - `mapping` (object[] · max items: 100)
                  - `values` (union anyOf[] · max items: 100)
                    - **string**
                    - **number**
                    - **boolean**
                    - **Multi Value Cell**
                      Values of a multi-value cell.
                    - **Range Key**
                      Identifies a range bucket. Omit either bound for an open end.
                      - `type` (enum)
                        Values: `range_key`
                      - `from` (number | string)
                      - `ranges` (object[] · max items: 100)
                        - `from` (number | string)
                        - `label` (string)
                        - `to` (number | string)
                      - `to` (number | string)
                    - **Multi Field Key**
                      Composite key from a multi-terms bucket.
                      - `type` (enum)
                        Values: `multi_field_key`
                      - `keys` (string[] · max items: 100)
                - `palette` (string)
                  Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                - `sort` (enum)
                  Sort direction
                  Values: `asc`, `desc`
                - `unassigned` (union anyOf)
                  The color to use for unassigned values.
                  - **Color From Palette**
                    Color at a fixed index position in a named palette.
                    - `type` (enum)
                      Values: `from_palette`
                    - `index` (number)
                      The index of the color in the palette.
                    - `palette` (string)
                      Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - **Color Code**
                    A color specified as a hex or CSS color code string.
                    - `type` (enum)
                      Values: `color_code`
                    - `value` (string)
                      The static color value to use.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Unique Count Metric Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Stats Metric Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Sum Metric Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Last Value Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Percentile Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Percentile Ranks Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Differences Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Moving Average Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Counter Rate Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Formula Operation**
          - `alignment` (enum)
            Alignment of the columns.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `color` (union anyOf)
            Color configuration for datatable metrics. Use dynamic coloring for numeric data and categorical/gradient mode for categorical data. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Count Metric Operation`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `summary` (object)
            Summary row configuration
            - `label` (string)
              Summary row label.
            - `type` (enum)
              Type of summary function to apply to the column.
              Values: `sum`, `avg`, `count`, `min`, `max`
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `rows` (union anyOf[] · min items: 1 · max items: 50)
        Array of operations to split the datatable rows by
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `alignment` (enum)
            Alignment of the rows.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `click_filter` (boolean)
            When `true`, enables one-click filtering on cell values.
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color configuration for datatable rows. Defaults to `auto`. Ignored without `apply_color_to`.
            - **Color Mapping**
              Color mapping for dimension values, either categorical (for specific values) or as a gradient.
              Any of:
              - **Categorical Color Mapping**
                Palette color assignment for specific categorical values. Unmapped values receive the unassigned color.
                - `mode` (enum)
                  Values: `categorical`
                - `mapping` (object[] · max items: 1000)
                  - `color` (union anyOf)
                    - **Color From Palette**
                      Color at a fixed index position in a named palette.
                      - `type` (enum)
                        Values: `from_palette`
                      - `index` (number)
                        The index of the color in the palette.
                      - `palette` (string)
                        Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                    - **Color Code**
                      A color specified as a hex or CSS color code string.
                      - `type` (enum)
                        Values: `color_code`
                      - `value` (string)
                        The static color value to use.
                  - `values` (union anyOf[] · max items: 1000)
                    - **string**
                    - **number**
                    - **boolean**
                    - **Multi Value Cell**
                      Values of a multi-value cell.
                    - **Range Key**
                      Identifies a range bucket. Omit either bound for an open end.
                      - `type` (enum)
                        Values: `range_key`
                      - `from` (number | string)
                      - `ranges` (object[] · max items: 100)
                        - `from` (number | string)
                        - `label` (string)
                        - `to` (number | string)
                      - `to` (number | string)
                    - **Multi Field Key**
                      Composite key from a multi-terms bucket.
                      - `type` (enum)
                        Values: `multi_field_key`
                      - `keys` (string[] · max items: 100)
                - `palette` (string)
                  Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                - `unassigned` (union anyOf)
                  The color to use for unassigned values.
                  - **Color From Palette**
                    Color at a fixed index position in a named palette.
                    - `type` (enum)
                      Values: `from_palette`
                    - `index` (number)
                      The index of the color in the palette.
                    - `palette` (string)
                      Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - **Color Code**
                    A color specified as a hex or CSS color code string.
                    - `type` (enum)
                      Values: `color_code`
                    - `value` (string)
                      The static color value to use.
              - **Gradient Color Mapping**
                Gradient color mapping across categorical values.
                - `mode` (enum)
                  Values: `gradient`
                - `gradient` (union anyOf[] · max items: 3)
                  - **Color From Palette**
                    Color at a fixed index position in a named palette.
                    - `type` (enum)
                      Values: `from_palette`
                    - `index` (number)
                      The index of the color in the palette.
                    - `palette` (string)
                      Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - **Color Code**
                    A color specified as a hex or CSS color code string.
                    - `type` (enum)
                      Values: `color_code`
                    - `value` (string)
                      The static color value to use.
                - `mapping` (object[] · max items: 100)
                  - `values` (union anyOf[] · max items: 100)
                    - **string**
                    - **number**
                    - **boolean**
                    - **Multi Value Cell**
                      Values of a multi-value cell.
                    - **Range Key**
                      Identifies a range bucket. Omit either bound for an open end.
                      - `type` (enum)
                        Values: `range_key`
                      - `from` (number | string)
                      - `ranges` (object[] · max items: 100)
                        - `from` (number | string)
                        - `label` (string)
                        - `to` (number | string)
                      - `to` (number | string)
                    - **Multi Field Key**
                      Composite key from a multi-terms bucket.
                      - `type` (enum)
                        Values: `multi_field_key`
                      - `keys` (string[] · max items: 100)
                - `palette` (string)
                  Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                - `sort` (enum)
                  Sort direction
                  Values: `asc`, `desc`
                - `unassigned` (union anyOf)
                  The color to use for unassigned values.
                  - **Color From Palette**
                    Color at a fixed index position in a named palette.
                    - `type` (enum)
                      Values: `from_palette`
                    - `index` (number)
                      The index of the color in the palette.
                    - `palette` (string)
                      Color palette name. Accepted values: 'default', 'elastic_line_optimized', 'severity', 'eui_amsterdam', 'kibana_v7_legacy', 'elastic_brand_2023'. Defaults to `default`.
                  - **Color Code**
                    A color specified as a hex or CSS color code string.
                    - `type` (enum)
                      Values: `color_code`
                    - `value` (string)
                      The static color value to use.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `alignment` (enum)
            Alignment of the rows.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `click_filter` (boolean)
            When `true`, enables one-click filtering on cell values.
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color configuration for datatable rows. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Date Histogram Operation`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `alignment` (enum)
            Alignment of the rows.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `click_filter` (boolean)
            When `true`, enables one-click filtering on cell values.
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color configuration for datatable rows. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `alignment` (enum)
            Alignment of the rows.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `click_filter` (boolean)
            When `true`, enables one-click filtering on cell values.
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color configuration for datatable rows. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `alignment` (enum)
            Alignment of the rows.
            Values: `left`, `center`, `right`
          - `apply_color_to` (enum)
            Column color target: `value` for cell text, `background` for cell background, or `badge` for a badge overlay.
            Values: `value`, `background`, `badge`
          - `click_filter` (boolean)
            When `true`, enables one-click filtering on cell values.
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color configuration for datatable rows. Defaults to `auto`. Ignored without `apply_color_to`.
            Same options as `color` in `Date Histogram Operation`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
          - `visible` (boolean)
            When `false`, hides the column from the datatable.
          - `width` (number · min: 0)
            Column width in pixels.
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `split_metrics_by` (union anyOf[] · min items: 1 · max items: 20)
        Array of operations to split the metric columns by
        Same options as `x` in `Heatmap Chart (DSL)`
      - `styling` (object)
        Visual chart styling options
        - `density` (object)
          Density configuration for the datatable.
          - `height` (object)
            - `header` (union anyOf)
              Number of lines before the header is truncated.
              - **type: auto**
                - `type` (enum)
                  Values: `auto`
              - **type: custom**
                - `type` (enum)
                  Values: `custom`
                - `max_lines` (number · min: 1 · max: 5 · default: 3)
            - `value` (union anyOf)
              Number of lines to display per table body cell.
              - **type: auto**
                - `type` (enum)
                  Values: `auto`
              - **type: custom**
                - `type` (enum)
                  Values: `custom`
                - `lines` (number · min: 1 · max: 20 · default: 1)
          - `mode` (enum)
            Display density mode.
            Values: `compact`, `default`, `expanded`
        - `paging` (enum)
          Rows per page. When set, pagination is enabled with the specified number of rows.
          Values: `10`, `20`, `30`, `50`, `100`
        - `row_numbers` (object)
          Configuration for row numbers
          - `visible` (boolean)
            When `true`, displays row numbers.
        - `sort_by` (union anyOf)
          Sorting configuration. Only one column can be sorted at a time. Use "column_type" to specify the column type.
          - **object**
            Sort by a metric or row column
            - `column_type` (enum)
              Type of column to sort by.
              Values: `metric`, `row`
            - `direction` (enum)
              Sort direction.
              Values: `asc`, `desc`
            - `index` (number · min: 0)
              Index of the column or row to sort by (0-based).
          - **column_type: pivoted_metric**
            Sort by a pivoted metric column (created when metrics are pivoted by split_metrics_by)
            - `column_type` (enum)
              Values: `pivoted_metric`
            - `direction` (enum)
              Sort direction.
              Values: `asc`, `desc`
            - `index` (number · min: 0)
              0-based index into the "metrics" array for the metric to sort; use "values" to identify the pivoted column
            - `values` (string[] · min items: 1 · max items: 20)
              Array of pivot values, one for each split_metrics_by column in order
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Pie Chart (DSL)**
      Pie chart configuration for standard queries
      - `type` (enum)
        Values: `pie`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `group_by` (union anyOf[] · min items: 1 · max items: 100)
        Array of breakdown dimensions (minimum 1)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `legend` (object)
        Legend configuration for pie chart
        - `nested` (boolean)
          Show nested legend with hierarchical breakdown levels
        - `position` (enum)
          Legend Position.
          Values: `top`, `bottom`, `left`, `right`
        - `size` (enum)
          Legend size.
          Values: `auto`, `s`, `m`, `l`, `xl`
        - `truncate_after_lines` (number · min: 1 · max: 10)
          Number of lines before legend items are truncated.
        - `visibility` (enum)
          Legend visibility.
          Values: `auto`, `visible`, `hidden`
      - `metrics` (union anyOf[] · min items: 1 · max items: 100)
        Array of metric configurations (minimum 1)
        - **Count Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Unique Count Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Stats Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Sum Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Last Value Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Ranks Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Differences Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Moving Average Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Counter Rate Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Formula Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `donut_hole` (enum)
          Donut hole size. Accepted values: `none` (full pie), `s`, `m`, `l`.
          Values: `none`, `s`, `m`, `l`
        - `labels` (object)
          Label configuration for pie chart slice labels inside or outside the pie
          - `position` (enum)
            Slice label position: `inside` or `outside`.
            Values: `inside`, `outside`
          - `visible` (boolean)
            When `true`, displays slice labels.
        - `values` (object)
          Configure the visibility and the format of the values rendered on each chart partition section
          - `mode` (enum)
            How to format values when visible.
            Values: `absolute`, `percentage`
          - `percent_decimals` (number · min: 0 · max: 10)
            Decimal places for percentage display (0-10)
          - `visible` (boolean)
            Show metric values on the chart
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Mosaic Chart (DSL)**
      Mosaic chart configuration schema for data source queries (non-ES|QL mode), defining metrics and breakdown dimensions
      - `type` (enum)
        Values: `mosaic`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `group_breakdown_by` (union anyOf[] · min items: 1 · max items: 100)
        Array of group breakdown dimensions (minimum 1)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `group_by` (union anyOf[] · min items: 1 · max items: 100)
        Array of breakdown dimensions (minimum 1)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `legend` (object)
        Legend configuration for mosaic chart appearance and behavior
        - `nested` (boolean)
          Show nested legend with hierarchical breakdown levels
        - `position` (enum)
          Legend Position.
          Values: `top`, `bottom`, `left`, `right`
        - `size` (enum)
          Legend size.
          Values: `auto`, `s`, `m`, `l`, `xl`
        - `truncate_after_lines` (number · min: 1 · max: 10)
          Number of lines before legend items are truncated.
        - `visibility` (enum)
          Legend visibility.
          Values: `auto`, `visible`, `hidden`
      - `metric` (union anyOf)
        - **Count Metric Operation**
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Unique Count Metric Operation**
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Stats Metric Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Sum Metric Operation**
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Last Value Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Ranks Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Differences Operation**
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Moving Average Operation**
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Counter Rate Operation**
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Formula Operation**
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `values` (object)
          Configure the visibility and the format of the values rendered on each chart partition section
          - `mode` (enum)
            How to format values when visible.
            Values: `absolute`, `percentage`
          - `percent_decimals` (number · min: 0 · max: 10)
            Decimal places for percentage display (0-10)
          - `visible` (boolean)
            Show metric values on the chart
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Treemap Chart (DSL)**
      Treemap chart configuration schema for data source queries (non-ES|QL mode), defining metrics and breakdown dimensions
      - `type` (enum)
        Values: `treemap`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `group_by` (union anyOf[] · min items: 1 · max items: 100)
        Array of breakdown dimensions (minimum 1)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `legend` (object)
        Configuration for the treemap chart legend appearance and behavior
        - `nested` (boolean)
          Show nested legend with hierarchical breakdown levels
        - `position` (enum)
          Legend Position.
          Values: `top`, `bottom`, `left`, `right`
        - `size` (enum)
          Legend size.
          Values: `auto`, `s`, `m`, `l`, `xl`
        - `truncate_after_lines` (number · min: 1 · max: 10)
          Number of lines before legend items are truncated.
        - `visibility` (enum)
          Legend visibility.
          Values: `auto`, `visible`, `hidden`
      - `metrics` (union anyOf[] · min items: 1 · max items: 100)
        Array of metric configurations (minimum 1)
        - **Count Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Unique Count Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Stats Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Sum Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Last Value Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Ranks Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Differences Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Moving Average Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Counter Rate Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Formula Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `labels` (object)
          Labels configuration
          - `visible` (boolean)
            Show category labels
        - `values` (object)
          Configure the visibility and the format of the values rendered on each chart partition section
          - `mode` (enum)
            How to format values when visible.
            Values: `absolute`, `percentage`
          - `percent_decimals` (number · min: 0 · max: 10)
            Decimal places for percentage display (0-10)
          - `visible` (boolean)
            Show metric values on the chart
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
    - **Waffle Chart (DSL)**
      Waffle chart configuration for standard queries
      - `type` (enum)
        Values: `waffle`
      - `data_source` (union anyOf)
        Same options as `data_source` in `Metric Chart (DSL)`
      - `description` (string)
      - `drilldowns` (union anyOf[] · max items: 100)
        Same options as `drilldowns` in `Metric Chart (DSL)`
      - `filters` (union anyOf[] · max items: 100)
        Filters applied to the panel
        Same options as `filters` in `Metric Chart (DSL)`
      - `group_by` (union anyOf[] · min items: 1 · max items: 100)
        Array of breakdown dimensions (minimum 1)
        - **Date Histogram Operation**
          - `operation` (enum)
            Values: `date_histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `drop_partial_intervals` (boolean)
            When `true`, drops partial intervals from the results.
          - `field` (string)
            Field to be used for the date histogram.
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
          - `suggested_interval` (string · default: auto)
            Suggested time interval.
          - `use_original_time_range` (boolean · default: false)
            When `true`, uses the original time range instead of the current query time range.
        - **Terms Operation**
          - `operation` (enum)
            Values: `terms`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `excludes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to exclude.
          - `fields` (string[] · min items: 1 · max items: 4)
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `includes` (object)
            - `as_regex` (boolean)
              When `true`, treats the values as regular expressions.
            - `values` (union string[] | number[])
              Values to include.
          - `increase_accuracy` (boolean)
            When `true`, increases accuracy at the cost of performance.
          - `label` (string)
            Label for the operation
          - `limit` (number · default: 5)
            Number of terms to return.
          - `other_bucket` (object)
            - `include_documents_without_field` (boolean)
              When `true`, includes documents that do not have the specified field.
          - `rank_by` (union anyOf)
            Same options as `rank_by` in `Terms Operation`
        - **Histogram Operation**
          - `operation` (enum)
            Values: `histogram`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the histogram.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `granularity` (union number | enum · default: auto)
            Values: `auto`
          - `include_empty_rows` (boolean · default: true)
            When `true`, includes empty rows in the results.
          - `label` (string)
            Label for the operation
        - **Ranges Operation**
          - `operation` (enum)
            Values: `range`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `field` (string)
            Field to be used for the range.
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `ranges` (object[] · max items: 100)
            - `gt` (number)
              Greater than.
            - `label` (string)
              Label.
            - `lte` (number)
              Less than or equal to.
        - **Filters Operation**
          - `operation` (enum)
            Values: `filters`
          - `collapse_by` (enum)
            Aggregation function used to collapse a breakdown dimension into a single value.
            Values: `avg`, `sum`, `max`, `min`
          - `color` (union anyOf)
            Color mapping for dimension values, either categorical (for specific values) or as a gradient.
            Same options as `color` in `Date Histogram Operation`
          - `filters` (object[] · max items: 100)
            - `filter` (object)
              A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
              - `expression` (string)
                A query expression in KQL or Lucene syntax
              - `language` (enum · default: kql)
                Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
                Values: `kql`, `lucene`
            - `label` (string)
              Label for the filter
          - `label` (string)
            Label for the operation
      - `hide_border` (boolean)
      - `hide_title` (boolean)
      - `ignore_global_filters` (boolean · default: false)
        When `true`, ignores global filters when fetching data for this layer. Defaults to `false`.
      - `legend` (object)
        Legend configuration for waffle chart
        - `position` (enum)
          Legend Position.
          Values: `top`, `bottom`, `left`, `right`
        - `size` (enum)
          Legend size.
          Values: `auto`, `s`, `m`, `l`, `xl`
        - `truncate_after_lines` (number · min: 1 · max: 10)
          Number of lines before legend items are truncated.
        - `values` (enum[] · min items: 1 · max items: 1)
          Values: `absolute`
        - `visibility` (enum)
          Legend visibility.
          Values: `auto`, `visible`, `hidden`
      - `metrics` (union anyOf[] · min items: 1 · max items: 100)
        Array of metric configurations (minimum 1)
        - **Count Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Unique Count Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `unique_count`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Stats Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `min`, `max`, `average`, `median`, `standard_deviation`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Sum Metric Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `empty_as_null` (boolean · default: false)
            When `true`, treats empty buckets as null instead of zero.
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Last Value Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `multi_value` (boolean · default: false)
            Whether to return all values for multi-value fields. Only affects data table and metric charts; other charts use the last value from the array.
          - `operation` (enum)
            Values: `last_value`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_field` (string)
            Time field used to determine document recency
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile`
          - `percentile` (number · default: 95)
            Percentile
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Percentile Ranks Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `percentile_rank`
          - `rank` (number · default: 0)
            Percentile Rank
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Differences Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `differences`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Moving Average Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `of` (union anyOf)
            Same options as `of` in `Differences Operation`
          - `operation` (enum)
            Values: `moving_average`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
          - `window` (number · default: 5)
            Window
        - **Cumulative Sum Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to cumulatively sum. When omitted, cumulative sum is applied to the count of records.
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `cumulative_sum`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Counter Rate Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `field` (string)
            Field to be used for the metric
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `counter_rate`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
          - `time_shift` (string)
            Time shift
        - **Formula Operation**
          - `color` (union anyOf)
            Static color of the metric. Defaults to `auto`. Ignored with a non-collapsed `group_by` dimension.
            - **Static Color**
              Fixed color for all values in the dimension.
              - `type` (enum)
                Values: `static`
              - `color` (string)
                The static color to be used for all values.
            - **Auto Color**
              Coloring determined at runtime based on chart defaults
              - `type` (enum)
                Values: `auto`
          - `filter` (object)
            A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
            - `expression` (string)
              A query expression in KQL or Lucene syntax
            - `language` (enum · default: kql)
              Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
              Values: `kql`, `lucene`
          - `format` (union anyOf)
            Number display format for the dimension value.
            Same options as `format` in `Terms Operation`
          - `formula` (string)
            Formula
          - `label` (string)
            Label for the operation
          - `operation` (enum)
            Values: `formula`
          - `reduced_time_range` (string)
            Reduced time range
          - `time_scale` (enum)
            Time scale
            Values: `s`, `m`, `h`, `d`
      - `query` (object)
        A KQL or Lucene query that filters panel data. Applied on top of any dashboard-level filters.
        - `expression` (string)
          A query expression in KQL or Lucene syntax
        - `language` (enum · default: kql)
          Query language: `kql` (Kibana Query Language) or `lucene`. Defaults to `kql`.
          Values: `kql`, `lucene`
      - `references` (object[] · max items: 10000)
        - `id` (string)
        - `name` (string)
        - `type` (string)
      - `sampling` (number · min: 0 · max: 1 · default: 1)
        Sampling factor between 0 (no sampling) and 1 (full sampling).
      - `styling` (object)
        Visual chart styling options
        - `values` (object)
          Configure the visibility and the format of the values rendered on each chart partition section
          - `mode` (enum)
            How to format values when visible.
            Values: `absolute`, `percentage`
          - `percent_decimals` (number · min: 0 · max: 10)
            Decimal places for percentage display (0-10)
          - `visible` (boolean)
            Show metric values on the chart
      - `time_range` (object)
        Specifies the time range for a query.
        - `from` (string)
          The start of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now-7d`) or ISO 8601 timestamps.
        - `mode` (enum)
          The time range mode. Use `absolute` for fixed start and end timestamps. Use `relative` for [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions that are re-evaluated at query time (for example, `now-7d`).
          Values: `absolute`, `relative`
        - `to` (string)
          The end of the time range. Accepts Elasticsearch [date math](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#date-math) expressions (for example, `now`) or ISO 8601 timestamps.
      - `title` (string)
  - `id` (string)
  - `meta` (object)
    - `created_at` (string)
      Timestamp when the object was created (ISO 8601).
    - `created_by` (string)
      User profile ID of the user who created the object.
    - `managed` (boolean)
      When `true`, the object is managed by Kibana and cannot be edited by users.
    - `owner` (string)
      Identifier of the plugin or team that owns this object.
    - `updated_at` (string)
      Timestamp when the object was last updated (ISO 8601).
    - `updated_by` (string)
      User profile ID of the user who last updated the object.
    - `version` (string)
      Internal version identifier for optimistic concurrency control.
- `meta` (object)
  - `page` (number · min: 1 · default: 1)
    The returned page of results.
  - `per_page` (number · min: 1 · max: 1000 · default: 20)
    The number of results returned per page.
  - `total` (number)
    The total number of results matching the query.
#### `400`

Malformed request

#### `401`

Unauthorized

#### `403`

Forbidden

#### `500`

Internal Server Error

## Code examples

#### Console

```console
GET kbn:/api/visualizations?query=requests&per_page=10
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/visualizations?query=requests&per_page=10" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Search visualizations response

`application/json`

Paginated list of visualizations matching the query. Each item includes the ID, full chart configuration, and metadata. Use the GET endpoint to retrieve a single visualization by ID.

```json
{
  "data": [
    {
      "data": {
        "data_source": {
          "index_pattern": "kibana_sample_data_logs",
          "time_field": "timestamp",
          "type": "data_view_spec"
        },
        "ignore_global_filters": false,
        "metrics": [
          {
            "empty_as_null": false,
            "operation": "count",
            "type": "primary"
          }
        ],
        "sampling": 1,
        "styling": {
          "primary": {
            "labels": {
              "alignment": "left"
            },
            "position": "bottom",
            "value": {
              "alignment": "right",
              "sizing": "auto"
            }
          }
        },
        "title": "Total requests",
        "type": "metric"
      },
      "id": "1e4f0a30-b3c5-11ef-bd7a-2b6b1a8c0f3d",
      "meta": {
        "created_at": "2026-04-13T10:00:00.000Z",
        "managed": false,
        "updated_at": "2026-04-13T10:00:00.000Z",
        "version": "WzU5LDFd"
      }
    },
    {
      "data": {
        "axis": {
          "x": {
            "domain": {
              "rounding": false,
              "type": "fit"
            },
            "grid": {
              "visible": true
            },
            "labels": {
              "orientation": "horizontal"
            },
            "ticks": {
              "visible": true
            },
            "title": {
              "visible": true
            }
          },
          "y": {
            "domain": {
              "rounding": true,
              "type": "full"
            },
            "grid": {
              "visible": true
            },
            "labels": {
              "orientation": "horizontal"
            },
            "scale": "linear",
            "ticks": {
              "visible": true
            },
            "title": {
              "visible": true
            }
          }
        },
        "layers": [
          {
            "data_source": {
              "index_pattern": "kibana_sample_data_logs",
              "time_field": "timestamp",
              "type": "data_view_spec"
            },
            "ignore_global_filters": false,
            "sampling": 1,
            "type": "line",
            "x": {
              "drop_partial_intervals": false,
              "field": "timestamp",
              "include_empty_rows": true,
              "operation": "date_histogram",
              "suggested_interval": "auto",
              "use_original_time_range": false
            },
            "y": [
              {
                "axis": "y",
                "empty_as_null": false,
                "operation": "count"
              }
            ]
          }
        ],
        "legend": {
          "layout": {
            "truncate": {
              "max_lines": 1
            },
            "type": "grid"
          },
          "placement": "outside",
          "position": "right",
          "visibility": "hidden"
        },
        "styling": {
          "interpolation": "linear",
          "overlays": {
            "current_time_marker": {
              "visible": false
            },
            "partial_buckets": {
              "visible": false
            }
          },
          "points": {
            "visibility": "auto"
          }
        },
        "title": "Log entries over time",
        "type": "xy"
      },
      "id": "3a7c2e10-b3c5-11ef-bd7a-2b6b1a8c0f3d",
      "meta": {
        "created_at": "2026-04-13T10:05:00.000Z",
        "managed": false,
        "updated_at": "2026-04-13T10:05:00.000Z",
        "version": "WzYwLDFd"
      }
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 20,
    "total": 2
  }
}
```

