Skip to content

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, lforst and mydea 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
Contributor

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
Contributor

@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