-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Usage Collection] [schema] Support spreads + canvas
definition
#78481
Conversation
2f5d3f0
to
cd2cf9e
Compare
cd2cf9e
to
d570b5e
Compare
Pinging @elastic/kibana-canvas (Team:Canvas) |
Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Canvas changes look good to me! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the functionality! It will definitely improve the developer experience for cases like the Canvas data.
I have a couple of questions but those are related to the Canvas schema.
Once the merge conflict is resolved, LGTM
max: { type: 'long' }, | ||
avg: { type: 'float' }, | ||
}, | ||
functions_in_use: { type: 'keyword' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
schema
definition to the collectorcanvas
.{ ...oneSchema, ...otherSchema }
.Required
inMakeSchemaFrom<T>
to avoid plugins having to define their schemas asMakeSchemaFrom<Required<MyUsage>>>
Related to #70180.
For maintainers