-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Uptime] NP Config / Index Pattern option #53341
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
Conversation
|
Pinging @elastic/uptime (Team:uptime) |
💔 Build FailedHistory
To update your PR or re-run it, just comment with: |
pgayvallet
left a comment
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.
Follow up of our slack conversation
| export const config = { | ||
| schema: schema.object({ | ||
| enabled: schema.maybe(schema.boolean()), | ||
| indexPattern: schema.maybe(schema.string()), |
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.
schema.string({ defaultValue: 'alt-heartbeat-*' }) and remove from config
| console.log("X") | ||
| console.log("SET IT UP") | ||
| console.log("X") |
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.
(remove and) Use PluginInitializerContext.logger if you need to log from NP
| return Joi.object({ | ||
| enabled: Joi.boolean().default(true), | ||
| }) |
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 will need to add the indexPattern property in the legacy configuration for now, as both plugins share the same NS
|
Closing in favor of #53550 |
Summary
Use NP for config and add the new
xpack.uptime.indexPatternoption.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers