You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For TSDB data streams, the field type aggregate_metric_double was introduced. It seems the field is currently not supported yet as when I started to use the field I got an error message and I couldn't find it in the spec.
## Summary
Add support for fields of type `aggregate_metric_double` in EPM.
Change in package spec introduced in
elastic/package-spec#500.
Fixes#154867Closeselastic/package-spec#457
### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios.
### How to test
* Modify a package to include a field with type
`aggregate_metric_double`, for example like this:
```
- name: some_metric
type: aggregate_metric_double
metrics: [ "min", "max", "sum", "value_count" ]
default_metric: "max"
```
* Install elastic package with this branch of the package-spec included:
elastic/package-spec#500, for this, from an
elastic-package working directory:
* `go mod edit -replace
github.com/elastic/package-spec/v2=github.com/elastic/package-spec@main`
* `go mod tidy`
* `make install`
* Build the package with `elastic-package build -v`.
* Install the package with `elastic-package install -v`.
* Check that the template contains the expected field.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
For TSDB data streams, the field type aggregate_metric_double was introduced. It seems the field is currently not supported yet as when I started to use the field I got an error message and I couldn't find it in the spec.
Here is the yaml I tried out:
The text was updated successfully, but these errors were encountered: