Skip to content

Conversation

@andrewvc
Copy link
Contributor

Summary

Use NP for config and add the new xpack.uptime.indexPattern option.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@andrewvc andrewvc added Feature:New Platform enhancement New value added to drive a business result Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability labels Dec 17, 2019
@andrewvc andrewvc requested a review from a team as a code owner December 17, 2019 21:28
@andrewvc andrewvc self-assigned this Dec 17, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@elasticmachine
Copy link
Contributor

💔 Build Failed

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@pgayvallet pgayvallet left a 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()),
Copy link
Contributor

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

Comment on lines +17 to +19
console.log("X")
console.log("SET IT UP")
console.log("X")
Copy link
Contributor

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

Comment on lines +21 to +23
return Joi.object({
enabled: Joi.boolean().default(true),
})
Copy link
Contributor

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

@andrewvc
Copy link
Contributor Author

andrewvc commented Jan 2, 2020

Closing in favor of #53550

@andrewvc andrewvc closed this Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New value added to drive a business result Feature:New Platform Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants