-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat(monitors): Pass environment through #2027
Conversation
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.
thank you for this!!
74583f4
to
7b695d9
Compare
/// The environment to associate the check-in with | ||
#[serde(default, skip_serializing_if = "Option::is_none")] | ||
environment: Option<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.
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
.
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.
Sounds good. Thanks for linking this
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.
Actually, it looks like events uses a completely separate serialization system? I'm not familiar with metastructure
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.
Going to merge this as is and revisit validation
7b695d9
to
25c88a0
Compare
25c88a0
to
8f82ef1
Compare
Supports specifying the checkins environment