Package io.sentry
Class CheckIn
java.lang.Object
io.sentry.CheckIn
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
A check-in for a monitor (CRON).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull SentryId@NotNull MonitorContexts@Nullable Double@Nullable String@Nullable MonitorConfig@NotNull String@Nullable String@NotNull Stringvoidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetDuration(@Nullable Double duration) voidsetEnvironment(@Nullable String environment) voidsetMonitorConfig(@Nullable MonitorConfig monitorConfig) voidsetMonitorSlug(@NotNull String monitorSlug) voidsetRelease(@Nullable String release) voidsetStatus(@NotNull CheckInStatus status) voidvoidsetUnknown(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
CheckIn
-
CheckIn
public CheckIn(@Nullable @Nullable SentryId id, @NotNull @NotNull String monitorSlug, @NotNull @NotNull CheckInStatus status) -
CheckIn
-
-
Method Details
-
getCheckInId
-
getMonitorSlug
-
setMonitorSlug
-
getStatus
-
setStatus
-
setStatus
-
getDuration
-
setDuration
-
getRelease
-
setRelease
-
getEnvironment
-
setEnvironment
-
getMonitorConfig
-
setMonitorConfig
-
getContexts
-
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-