Class FreshnessCronSchedule
- java.lang.Object
-
- io.datahubproject.openapi.generated.FreshnessCronSchedule
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class FreshnessCronSchedule extends java.lang.ObjectAttributes defining a CRON-formatted schedule used for defining a freshness assertion.
-
-
Constructor Summary
Constructors Constructor Description FreshnessCronSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FreshnessCronSchedulecron(java.lang.String cron)booleanequals(java.lang.Object o)@NotNull java.lang.StringgetCron()A cron-formatted execution interval, as a cron string, e.g.@NotNull java.lang.StringgetTimezone()Timezone in which the cron interval applies, e.g.@Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetWindowStartOffsetMs()An optional offset in milliseconds to SUBTRACT from the timestamp generated by the cron schedule to generate the lower bounds of the \"freshness window\", or the window of time in which an event must have occurred in order for the Freshness check to be considering passing.inthashCode()voidsetCron(java.lang.String cron)voidsetTimezone(java.lang.String timezone)voidsetWindowStartOffsetMs(java.lang.Long windowStartOffsetMs)FreshnessCronScheduletimezone(java.lang.String timezone)java.lang.StringtoString()FreshnessCronSchedulewindowStartOffsetMs(java.lang.Long windowStartOffsetMs)
-
-
-
Method Detail
-
cron
public FreshnessCronSchedule cron(java.lang.String cron)
-
getCron
@NotNull public @NotNull java.lang.String getCron()
A cron-formatted execution interval, as a cron string, e.g. 1 * * * *- Returns:
- cron
-
setCron
public void setCron(java.lang.String cron)
-
timezone
public FreshnessCronSchedule timezone(java.lang.String timezone)
-
getTimezone
@NotNull public @NotNull java.lang.String getTimezone()
Timezone in which the cron interval applies, e.g. America/Los Angeles- Returns:
- timezone
-
setTimezone
public void setTimezone(java.lang.String timezone)
-
windowStartOffsetMs
public FreshnessCronSchedule windowStartOffsetMs(java.lang.Long windowStartOffsetMs)
-
getWindowStartOffsetMs
@Min(-9223372036854775808L) @Max(9223372036854775807L) public @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getWindowStartOffsetMs()
An optional offset in milliseconds to SUBTRACT from the timestamp generated by the cron schedule to generate the lower bounds of the \"freshness window\", or the window of time in which an event must have occurred in order for the Freshness check to be considering passing. If left empty, the start of the SLA window will be the _end_ of the previously evaluated Freshness window. minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- windowStartOffsetMs
-
setWindowStartOffsetMs
public void setWindowStartOffsetMs(java.lang.Long windowStartOffsetMs)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-