Skip to content

Commit d29ccac

Browse files
committed
feat(Discovery): Add constants to Fequency interface in SourceSchedule
1 parent 187e2f2 commit d29ccac

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceSchedule.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public class SourceSchedule extends GenericModel {
2323
/**
2424
* The crawl schedule in the specified **time_zone**.
2525
*
26+
* - `five_minutes`: Runs every five minutes.
27+
* - `hourly`: Runs every hour.
2628
* - `daily`: Runs every day between 00:00 and 06:00.
2729
* - `weekly`: Runs every week on Sunday between 00:00 and 06:00.
2830
* - `monthly`: Runs the on the first Sunday of every month between 00:00 and 06:00.
@@ -34,6 +36,10 @@ public interface Frequency {
3436
String WEEKLY = "weekly";
3537
/** monthly. */
3638
String MONTHLY = "monthly";
39+
/** five_minutes. */
40+
String FIVE_MINUTES = "five_minutes";
41+
/** hourly. */
42+
String HOURLY = "hourly";
3743
}
3844

3945
private Boolean enabled;
@@ -70,6 +76,8 @@ public String getTimeZone() {
7076
*
7177
* The crawl schedule in the specified **time_zone**.
7278
*
79+
* - `five_minutes`: Runs every five minutes.
80+
* - `hourly`: Runs every hour.
7381
* - `daily`: Runs every day between 00:00 and 06:00.
7482
* - `weekly`: Runs every week on Sunday between 00:00 and 06:00.
7583
* - `monthly`: Runs the on the first Sunday of every month between 00:00 and 06:00.

0 commit comments

Comments
 (0)