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(node): Add monitor upsert types #7914

Merged
merged 1 commit into from
Apr 20, 2023
Merged

feat(node): Add monitor upsert types #7914

merged 1 commit into from
Apr 20, 2023

Conversation

AbhiPrasad
Copy link
Member

See: https://develop.sentry.dev/sdk/check-ins/#schedule-configuration

ref: getsentry/sentry#43661, #7777

Add types for monitor upsert, and adjust tests accordingly.

Again we're not exposing these APIs, just having the types around so we can add it whenever.

@AbhiPrasad AbhiPrasad requested review from a team, mydea and lforst and removed request for a team April 20, 2023 08:22
}

type MonitorSchedule = CrontabSchedule | IntervalSchedule;

// https://develop.sentry.dev/sdk/check-ins/
export interface CheckIn {
Copy link
Member

Choose a reason for hiding this comment

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

wondering why we have snake case in this type. I guess it saves us logic and size not having to map.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah I don't want to write a toJSON to similar, but we might end up adopting it if needed (we do have Session vs. SerializedSession type for ex.)

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

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

looks correct

@AbhiPrasad AbhiPrasad merged commit db013df into develop Apr 20, 2023
@AbhiPrasad AbhiPrasad deleted the abhi-checkin branch April 20, 2023 09:13
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.

2 participants