Skip to content
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

feat(monitors): Pass environment through #2027

Merged

Conversation

evanpurkhiser
Copy link
Member

Supports specifying the checkins environment

@evanpurkhiser evanpurkhiser requested review from a team April 12, 2023 18:24
Copy link
Contributor

@rjo100 rjo100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for this!!

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-monitors-pass-environment-through branch from 74583f4 to 7b695d9 Compare April 12, 2023 19:38
Comment on lines +116 to +118
/// The environment to associate the check-in with
#[serde(default, skip_serializing_if = "Option::is_none")]
environment: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some length limits to this string, like here. Monitor slugs may contain non-ASCII characters, if this isn't the case for environment consider also adding allow_chars.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Thanks for linking this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it looks like events uses a completely separate serialization system? I'm not familiar with metastructure

Copy link
Member Author

@evanpurkhiser evanpurkhiser Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to merge this as is and revisit validation

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-monitors-pass-environment-through branch from 7b695d9 to 25c88a0 Compare April 13, 2023 18:58
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-monitors-pass-environment-through branch from 25c88a0 to 8f82ef1 Compare April 13, 2023 18:59
@evanpurkhiser evanpurkhiser merged commit 751bc4b into master Apr 13, 2023
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-monitors-pass-environment-through branch April 13, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants