[Usage Collection] [schema] Support spreads + canvas definition#78481
[Usage Collection] [schema] Support spreads + canvas definition#78481afharo merged 4 commits intoelastic:masterfrom
canvas definition#78481Conversation
2f5d3f0 to
cd2cf9e
Compare
cd2cf9e to
d570b5e
Compare
|
Pinging @elastic/kibana-canvas (Team:Canvas) |
|
Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry) |
poffdeluxe
left a comment
There was a problem hiding this comment.
Canvas changes look good to me! Thanks!
| max: { type: 'long' }, | ||
| avg: { type: 'float' }, | ||
| }, | ||
| functions_in_use: { type: 'keyword' }, |
There was a problem hiding this comment.
should this not be an Array type? The CustomElementTelemetry interface types functions_in_use as string[] and summarizeCustomElement also returns functions_in_use as an array.
There was a problem hiding this comment.
You are totally right! I created this PR before the array support was merged. I'll update this and the other comments accordingly! Thank you for catching that up :)
| }, | ||
| functions: { | ||
| total: { type: 'long' }, | ||
| in_use: { type: 'keyword' }, |
There was a problem hiding this comment.
Why is in_use not defined as an array type in the schema when it is defined as an array in the WorkpadTelemetry interface?
| isReady: () => true, | ||
| fetch() { | ||
| const testString = '123'; | ||
| // query ES and get some data |
There was a problem hiding this comment.
These comments aren't necessary. (They probably came along with the copy-paste from the usage_collection README 😉 )
There was a problem hiding this comment.
Hawk's eyes! I've simplified this example (no comments, nor try-catch) so it's clear we are testing the spreads, not the fetch implementation.
Thank you for catching that up!
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
…-to-timeline * 'master' of github.com:elastic/kibana: (22 commits) update apm index pattern (elastic#78732) 78024: move transform out of dataset (elastic#78216) [QA][Code Coverage] Upload the coverage static site before ingestion (elastic#78695) [Discover] Make _source field not clickable (elastic#78698) [Fleet] Rename Ingest Manager => Fleet, Fleet => Agents in the UI (elastic#78685) [APM] Review feedback from distribution + transaction metrics (elastic#78752) [Ingest pipelines] Add ability to stop pipeline simulation (elastic#78183) [CSM] Fix core vital legend background (elastic#78273) [Usage Collection] [schema] Support spreads + `canvas` definition (elastic#78481) fix lodash imports (elastic#78456) [Maps] Add layer type preview icons (elastic#78650) [APM] Use transaction metrics for distribution charts (elastic#78484) [Uptime] Ml anomaly alert edit (elastic#76909) [ML] Limit exposing shared static code through ml/public/index.ts. (elastic#77745) making expression debug info serializable (elastic#78727) fix lodahs imports in app-arch code (elastic#78582) Make Field a React.lazy export (elastic#78483) [Security Solution] Improves detections tests (elastic#77295) [TSVB] Different field format on different series is ignored (elastic#78138) RFC: Improve saved object migrations (elastic#66056) ...
|
Pinging @elastic/kibana-core (Team:Core) |
Summary
schemadefinition to the collectorcanvas.{ ...oneSchema, ...otherSchema }.RequiredinMakeSchemaFrom<T>to avoid plugins having to define their schemas asMakeSchemaFrom<Required<MyUsage>>>Related to #70180.
For maintainers