---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
keyword dimension:
- requires:
    test_runner_features: "close_to"
    cluster_features:
    - "gte_v8.13.0"
    reason: "_tsid hashing introduced in 8.13"
- do:
    indices.create:
      index: "test"
      body:
        settings:
          index:
            mode: "time_series"
            routing_path:
            - "uid"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          properties:
            '@timestamp':
              type: "date"
            uid:
              type: "keyword"
              time_series_dimension: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    bulk:
      refresh: true
      index: "test"
      body:
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.2}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.6}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.1}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.3}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 3.2}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 3.6}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 3.1}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 3.3}"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "errors"
- do:
    search:
      index: "test"
      body:
        size: 0
        aggs:
          tsids:
            terms:
              field: "_tsid"
              order:
                _key: "asc"
            aggs:
              voltage:
                avg:
                  field: "voltage"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- match:
    hits.total.value: 8
- match:
    aggregations.tsids.buckets.0.key: "JNy0BQX41tKNa3KEdjReXM85ihHDIG1DaFBdVI_fYOQvJgKOvg"
- match:
    aggregations.tsids.buckets.0.doc_count: 4
- close_to:
    aggregations.tsids.buckets.0.voltage.value:
      value: 3.3
      error: 0.01
- match:
    aggregations.tsids.buckets.1.key: "JNy0BQX41tKNa3KEdjReXM912oDh9NI69d0Kk5TQ6CAdewYP5A"
- match:
    aggregations.tsids.buckets.1.doc_count: 4
- close_to:
    aggregations.tsids.buckets.1.voltage.value:
      value: 7.3
      error: 0.01
---
flattened dimension:
- requires:
    test_runner_features: "close_to"
    cluster_features:
    - "gte_v8.13.0"
    reason: "_tsid hashing introduced in 8.13"
- do:
    indices.create:
      index: "test"
      body:
        settings:
          index:
            mode: "time_series"
            routing_path:
            - "uid"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          properties:
            '@timestamp':
              type: "date"
            uid:
              type: "keyword"
              time_series_dimension: true
            deployment:
              type: "flattened"
              time_series_dimensions:
              - "build.tag"
              - "version.major"
              - "version.minor"
              - "version.patch"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    bulk:
      refresh: true
      index: "test"
      body:
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.2, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.0, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.4, \"deployment\": { \"build\": { \"tag\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.3, \"deployment\": { \"build\": { \"tag\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.6, \"deployment\": { \"build\": { \"tag\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"tag\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.8, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "errors"
- do:
    search:
      index: "test"
      body:
        size: 0
        aggs:
          tsids:
            terms:
              field: "_tsid"
              order:
                _key: "asc"
            aggs:
              voltage:
                avg:
                  field: "voltage"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- match:
    hits.total.value: 8
- length:
    aggregations.tsids.buckets: 4
- match:
    aggregations.tsids.buckets.0.key: "NCLYECP-GoaIfjk0RBfdlg0oaZ29eRDHR3kQx0fjCuTKddqA4R9ytcYdqdbcoJ8VBuvqFtQ"
- match:
    aggregations.tsids.buckets.0.doc_count: 2
- close_to:
    aggregations.tsids.buckets.0.voltage.value:
      value: 7.35
      error: 0.01
- match:
    aggregations.tsids.buckets.1.key: "NCLYECP-GoaIfjk0RBfdlg2rnf7qeRDHR3kQx0eLDvTuOYoRw4EeUIKK1KGFPmxqCWQyQJE"
- match:
    aggregations.tsids.buckets.1.doc_count: 2
- close_to:
    aggregations.tsids.buckets.1.voltage.value:
      value: 6.75
      error: 0.01
- match:
    aggregations.tsids.buckets.2.key: "NCLYECP-GoaIfjk0RBfdlg3P1l1UeRDHR3kQx0fjCuTKddqA4ai7CiSuCxA-PhBdLYOXkVY"
- match:
    aggregations.tsids.buckets.2.doc_count: 2
- close_to:
    aggregations.tsids.buckets.2.voltage.value:
      value: 7.1
      error: 0.01
- match:
    aggregations.tsids.buckets.3.key: "NCLYECP-GoaIfjk0RBfdlg3gKelzeRDHR3kQx0eLDvTuOYoRw6Wapg_P07YIhdV3NFJDjjE"
- match:
    aggregations.tsids.buckets.3.doc_count: 2
- close_to:
    aggregations.tsids.buckets.3.voltage.value:
      value: 6.65
      error: 0.01
---
flattened empty dimension:
- requires:
    test_runner_features: "close_to"
    cluster_features:
    - "gte_v8.13.0"
    reason: "_tsid hashing introduced in 8.13"
- do:
    indices.create:
      index: "test"
      body:
        settings:
          index:
            mode: "time_series"
            routing_path:
            - "uid"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          properties:
            '@timestamp':
              type: "date"
            uid:
              type: "keyword"
              time_series_dimension: true
            deployment:
              type: "flattened"
              time_series_dimensions: []
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    bulk:
      refresh: true
      index: "test"
      body:
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.2, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.0, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.4, \"deployment\": { \"build\": { \"tag\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.3, \"deployment\": { \"build\": { \"tag\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.6, \"deployment\": { \"build\": { \"tag\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"tag\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.8, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "errors"
- do:
    search:
      index: "test"
      body:
        size: 0
        aggs:
          tsids:
            terms:
              field: "_tsid"
              order:
                _key: "asc"
            aggs:
              voltage:
                avg:
                  field: "voltage"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- match:
    hits.total.value: 8
- length:
    aggregations.tsids.buckets: 2
- match:
    aggregations.tsids.buckets.0.key: "JNy0BQX41tKNa3KEdjReXM85ihHDIG1DaFBdVI_fYOQvJgKOvg"
- match:
    aggregations.tsids.buckets.0.doc_count: 4
- close_to:
    aggregations.tsids.buckets.0.voltage.value:
      value: 6.69
      error: 0.01
- match:
    aggregations.tsids.buckets.1.key: "JNy0BQX41tKNa3KEdjReXM912oDh9NI69d0Kk5TQ6CAdewYP5A"
- match:
    aggregations.tsids.buckets.1.doc_count: 4
- close_to:
    aggregations.tsids.buckets.1.voltage.value:
      value: 7.22
      error: 0.01
---
flattened field missing routing path field:
- requires:
    test_runner_features: "close_to"
    cluster_features:
    - "gte_v8.13.0"
    reason: "_tsid hashing introduced in 8.13"
- do:
    indices.create:
      index: "test"
      body:
        settings:
          index:
            mode: "time_series"
            routing_path:
            - "uid"
            - "deployment.build.tag"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          properties:
            '@timestamp':
              type: "date"
            uid:
              type: "keyword"
              time_series_dimension: true
            deployment:
              type: "flattened"
              time_series_dimensions:
              - "build.branch"
              - "build.tag"
              - "version.major"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    bulk:
      refresh: true
      index: "test"
      body:
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.2, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.0, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.4, \"deployment\": { \"build\": { \"tag\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.3, \"deployment\": { \"build\": { \"sha\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.6, \"deployment\": { \"build\": { \"tag\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"sha\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.8, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "errors"
- do:
    search:
      index: "test"
      body:
        size: 0
        aggs:
          tsids:
            terms:
              field: "_tsid"
              order:
                _key: "asc"
            aggs:
              voltage:
                avg:
                  field: "voltage"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- match:
    hits.total.value: 8
- length:
    aggregations.tsids.buckets: 6
- match:
    aggregations.tsids.buckets.0.key.: "LPBzSKpPysYDR-l1jvYA8jPxTXebeRDHRzmKEcOUW9u_kzgC7pSzoi1utVcm"
- match:
    aggregations.tsids.buckets.0.doc_count: 1
- close_to:
    aggregations.tsids.buckets.0.voltage.value:
      value: 6.7
      error: 0.01
- match:
    aggregations.tsids.buckets.1.key: "LPBzSKpPysYDR-l1jvYA8jPxTXebeRDHR3XagOEjGQJfwIB2Q5kLDL76leH4"
- match:
    aggregations.tsids.buckets.1.doc_count: 1
- close_to:
    aggregations.tsids.buckets.1.voltage.value:
      value: 7.3
      error: 0.01
- match:
    aggregations.tsids.buckets.2.key: "MF1xFkQfNVXn4EbbAW53ge_xTXebKGmdvXkQx0d12oDh16FtfvP_ObklCa7gXDcmdA"
- match:
    aggregations.tsids.buckets.2.doc_count: 1
- close_to:
    aggregations.tsids.buckets.2.voltage.value:
      value: 7.4
      error: 0.01
- match:
    aggregations.tsids.buckets.3.key: "MF1xFkQfNVXn4EbbAW53ge_xTXebq53-6nkQx0c5ihHDU3PuzTI1mM98gQqqihDoZA"
- match:
    aggregations.tsids.buckets.3.doc_count: 2
- close_to:
    aggregations.tsids.buckets.3.voltage.value:
      value: 6.75
      error: 0.01
- match:
    aggregations.tsids.buckets.4.key: "MF1xFkQfNVXn4EbbAW53ge_xTXebz9ZdVHkQx0d12oDhi1SccpVnRAhpjCrWhqFjfQ"
- match:
    aggregations.tsids.buckets.4.doc_count: 2
- close_to:
    aggregations.tsids.buckets.4.voltage.value:
      value: 7.1
      error: 0.01
- match:
    aggregations.tsids.buckets.5.key: "MF1xFkQfNVXn4EbbAW53ge_xTXeb4Cnpc3kQx0c5ihHDqaS5hHgLAm0E3XkHG7fdkQ"
- match:
    aggregations.tsids.buckets.5.doc_count: 1
- close_to:
    aggregations.tsids.buckets.5.voltage.value:
      value: 6.6
      error: 0.01
---
flattened field misspelled routing path field:
- requires:
    test_runner_features: "close_to"
    cluster_features:
    - "gte_v8.13.0"
    reason: "_tsid hashing introduced in 8.13"
- do:
    indices.create:
      index: "test"
      body:
        settings:
          index:
            mode: "time_series"
            routing_path:
            - "deployment.reigion"
            - "deployment.build.tag"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          properties:
            '@timestamp':
              type: "date"
            uid:
              type: "keyword"
            deployment:
              type: "flattened"
              time_series_dimensions:
              - "reigion"
              - "build.tag"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    bulk:
      refresh: true
      index: "test"
      body:
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.2, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.0, \"deployment\": { \"build\": { \"tag\": \"1516op6778\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.4, \"deployment\": { \"build\": { \"tag\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"947e4ced-1786-4e53-9e0c-5c447e959507\"\
        , \"voltage\": 7.3, \"deployment\": { \"build\": { \"sha\": \"1516op6885\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-1\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 0 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.6, \"deployment\": { \"build\": { \"tag\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"sha\": \"16w3xaca09\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.7, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"uid\": \"df3145b3-0563-4d3b-a0f7-897eb2876ea9\"\
        , \"voltage\": 6.8, \"deployment\": { \"build\": { \"tag\": \"16w3xacq34\"\
        , \"branch\": \"release-8.8\" }, \"region\": \"eu-west-2\", \"version\": {\
        \ \"major\": 8, \"minor\": 8, \"patch\": 1 }}}"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "errors"
- match:
    items.3.index.error.reason: "Error extracting routing: source didn't contain any\
      \ routing fields"
- match:
    items.5.index.error.reason: "Error extracting routing: source didn't contain any\
      \ routing fields"
- do:
    search:
      index: "test"
      body:
        size: 0
        aggs:
          tsids:
            terms:
              field: "_tsid"
              order:
                _key: "asc"
            aggs:
              voltage:
                avg:
                  field: "voltage"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- match:
    hits.total.value: 6
- length:
    aggregations.tsids.buckets: 4
- match:
    aggregations.tsids.buckets.0.key: "JBs0-JZ2yoAg-Lrw35Mu3ysoaZ29egRdyNeHXPSPghDVzguaRg"
- match:
    aggregations.tsids.buckets.0.doc_count: 1
- close_to:
    aggregations.tsids.buckets.0.voltage.value:
      value: 7.4
      error: 0.01
- match:
    aggregations.tsids.buckets.1.key: "JBs0-JZ2yoAg-Lrw35Mu3yurnf7qs9-VXFZ6jjZCbl_iiXSs7Q"
- match:
    aggregations.tsids.buckets.1.doc_count: 2
- close_to:
    aggregations.tsids.buckets.1.voltage.value:
      value: 6.75
      error: 0.01
- match:
    aggregations.tsids.buckets.2.key: "JBs0-JZ2yoAg-Lrw35Mu3yvP1l1UlmlXEQVNXrHpUvpn7by0jA"
- match:
    aggregations.tsids.buckets.2.doc_count: 2
- close_to:
    aggregations.tsids.buckets.2.voltage.value:
      value: 7.1
      error: 0.01
- match:
    aggregations.tsids.buckets.3.key: "JBs0-JZ2yoAg-Lrw35Mu3yvgKelz9WSJqzeYh7aza_7yxDXMZA"
- match:
    aggregations.tsids.buckets.3.doc_count: 1
- close_to:
    aggregations.tsids.buckets.3.voltage.value:
      value: 6.6
      error: 0.01
---
long dimension:
- requires:
    test_runner_features: "close_to"
    cluster_features:
    - "gte_v8.13.0"
    reason: "_tsid hashing introduced in 8.13"
- do:
    indices.create:
      index: "test"
      body:
        settings:
          index:
            mode: "time_series"
            routing_path:
            - "metricset"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          properties:
            '@timestamp':
              type: "date"
            metricset:
              type: "keyword"
              time_series_dimension: true
            id:
              type: "long"
              time_series_dimension: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    bulk:
      refresh: true
      index: "test"
      body:
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"metricset\": \"aa\", \"\
        id\": 1, \"voltage\": 7.2}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"metricset\": \"aa\", \"\
        id\": \"1\", \"voltage\": 7.6}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"metricset\": \"aa\", \"\
        id\": 1.0, \"voltage\": 7.1}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"metricset\": \"aa\", \"\
        id\": \"001\", \"voltage\": 7.3}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"metricset\": \"aa\", \"\
        id\": 2, \"voltage\": 3.2}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"metricset\": \"aa\", \"\
        id\": 2, \"voltage\": 3.6}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"metricset\": \"aa\", \"\
        id\": 2, \"voltage\": 3.1}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"metricset\": \"aa\", \"\
        id\": 2, \"voltage\": 3.3}"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    search:
      index: "test"
      body:
        size: 0
        aggs:
          tsids:
            terms:
              field: "_tsid"
              order:
                _key: "asc"
            aggs:
              voltage:
                avg:
                  field: "voltage"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- match:
    hits.total.value: 8
- match:
    aggregations.tsids.buckets.0.key: "KMaueSdBhc_WIhY4xoPE2EdDgKYd73outpXn7LJV-gQfvlrec7NyMho"
- match:
    aggregations.tsids.buckets.0.doc_count: 4
- close_to:
    aggregations.tsids.buckets.0.voltage.value:
      value: 3.3
      error: 0.01
- match:
    aggregations.tsids.buckets.1.key: "KMaueSdBhc_WIhY4xoPE2Eetm41v73outmoSTcFmfQBYjOjMaOWM5zs"
- match:
    aggregations.tsids.buckets.1.doc_count: 4
- close_to:
    aggregations.tsids.buckets.1.voltage.value:
      value: 7.3
      error: 0.01
---
ip dimension:
- requires:
    test_runner_features: "close_to"
    cluster_features:
    - "gte_v8.13.0"
    reason: "_tsid hashing introduced in 8.13"
- do:
    indices.create:
      index: "test"
      body:
        settings:
          index:
            mode: "time_series"
            routing_path:
            - "metricset"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          properties:
            '@timestamp':
              type: "date"
            metricset:
              type: "keyword"
              time_series_dimension: true
            ip:
              type: "ip"
              time_series_dimension: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    bulk:
      refresh: true
      index: "test"
      body:
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"10.10.1.1\", \"voltage\": 7.2}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"10.10.1.1\", \"voltage\": 7.6}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"10.10.1.1\", \"voltage\": 7.1}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"::ffff:10.10.1.1\", \"voltage\": 7.3}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:24.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"2001:0db8:85a3:0000:0000:8a2e:0370:7334\", \"voltage\": 3.2}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:34.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"2001:0db8:85a3:0:0:8a2e:0370:7334\", \"voltage\": 3.6}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:44.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"2001:0db8:85a3::8a2e:0370:7334\", \"voltage\": 3.1}"
      - "{\"index\": {}}"
      - "{\"@timestamp\": \"2021-04-28T18:35:54.467Z\", \"metricset\": \"aa\", \"\
        ip\": \"2001:0db8:85a3::8a2e:0370:7334\", \"voltage\": 3.3}"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    search:
      index: "test"
      body:
        size: 0
        aggs:
          tsids:
            terms:
              field: "_tsid"
              order:
                _key: "asc"
            aggs:
              voltage:
                avg:
                  field: "voltage"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- match:
    hits.total.value: 8
- match:
    aggregations.tsids.buckets.0.key: "KLVrd7E8oZLyd-tfSm0H6jDYzb-v73outosB-eDb_nzTrIVsJFVQR2c"
- match:
    aggregations.tsids.buckets.0.doc_count: 4
- close_to:
    aggregations.tsids.buckets.0.voltage.value:
      value: 3.3
      error: 0.01
- match:
    aggregations.tsids.buckets.1.key: "KLVrd7E8oZLyd-tfSm0H6jDaaOFK73outkqpG8R65Gm4VUhpyuc11zw"
- match:
    aggregations.tsids.buckets.1.doc_count: 4
- close_to:
    aggregations.tsids.buckets.1.voltage.value:
      value: 7.3
      error: 0.01
---
runtime time series dimension:
- requires:
    cluster_features:
    - "gte_v8.5.0"
    reason: "downsample introduced in 8.5.0"
- do:
    catch: "/unknown parameter \\[time_series_dimension\\] on runtime field \\[metricset\\\
      ] of type \\[keyword\\]/"
    indices.create:
      index: "test_2"
      body:
        settings:
          number_of_shards: 1
          number_of_replicas: 0
          index:
            mode: "time_series"
            routing_path:
            - "metricset"
            - "k8s.pod.uid"
            time_series:
              start_time: "2021-04-28T00:00:00Z"
              end_time: "2021-04-29T00:00:00Z"
        mappings:
          runtime:
            metricset:
              type: "keyword"
              time_series_dimension: true
              script:
                source: "emit('pod');"
          properties:
            time:
              type: "date"
            metricset:
              type: "keyword"
              time_series_dimension: true
            k8s:
              properties:
                pod:
                  properties:
                    uid:
                      type: "keyword"
                      time_series_dimension: true
                    name:
                      type: "keyword"
                    network:
                      properties:
                        tx:
                          type: "long"
                          time_series_metric: "gauge"
                        rx:
                          type: "long"
                          time_series_metric: "gauge"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
