Package io.sentry
Class MonitorSchedule
java.lang.Object
io.sentry.MonitorSchedule
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
@Experimental
public final class MonitorSchedule
extends Object
implements JsonUnknown, JsonSerializable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionMonitorSchedule
(@NotNull String type, @NotNull String value, @Nullable String unit) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MonitorSchedule
@NotNull String
getType()
@Nullable String
getUnit()
@NotNull String
getValue()
static @NotNull MonitorSchedule
interval
(@NotNull Integer value, @NotNull MonitorScheduleUnit unit) void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
setUnit
(@Nullable MonitorScheduleUnit unit) void
void
setUnknown
(@Nullable Map<String, Object> unknown) void
void
-
Constructor Details
-
MonitorSchedule
-
-
Method Details
-
crontab
-
interval
@NotNull public static @NotNull MonitorSchedule interval(@NotNull @NotNull Integer value, @NotNull @NotNull MonitorScheduleUnit unit) -
getType
-
setType
-
getValue
-
setValue
-
setValue
-
getUnit
-
setUnit
-
setUnit
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-