Skip to content

Commit 3133dd3

Browse files
authored
rest-api-spec: fix usage of date type in ML APIs (#137682) (#137804)
1 parent 2e883ca commit 3133dd3

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/ml.flush_job.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@
3636
"description": "Calculates interim results for the most recent bucket or all buckets within the latency period"
3737
},
3838
"start": {
39-
"type": "string",
39+
"type": "date",
4040
"description": "When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results"
4141
},
4242
"end": {
43-
"type": "string",
43+
"type": "date",
4444
"description": "When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results"
4545
},
4646
"advance_time": {
47-
"type": "string",
47+
"type": "date",
4848
"description": "Advances time to the given value generating results and updating the model for the advanced interval"
4949
},
5050
"skip_time": {
51-
"type": "string",
51+
"type": "date",
5252
"description": "Skips time to the given value without generating results or updating the model for the skipped interval"
5353
}
5454
},

rest-api-spec/src/main/resources/rest-api-spec/api/ml.get_buckets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@
7070
"description": "specifies a max number of buckets to get"
7171
},
7272
"start": {
73-
"type": "string",
73+
"type": "date",
7474
"default": "-1",
7575
"description": "Start time filter for buckets"
7676
},
7777
"end": {
78-
"type": "string",
78+
"type": "date",
7979
"default": "-1",
8080
"description": "End time filter for buckets"
8181
},

rest-api-spec/src/main/resources/rest-api-spec/api/ml.get_calendar_events.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"description": "Get events for the job. When this option is used calendar_id must be '_all'"
3434
},
3535
"start": {
36-
"type": "string",
36+
"type": "date",
3737
"description": "Get events after this time"
3838
},
3939
"end": {

rest-api-spec/src/main/resources/rest-api-spec/api/ml.get_influencers.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
"description": "specifies a max number of influencers to get"
4949
},
5050
"start": {
51-
"type": "string",
51+
"type": "date",
5252
"default": "-1",
5353
"description": "start timestamp for the requested influencers"
5454
},
5555
"end": {
56-
"type": "string",
56+
"type": "date",
5757
"default": "-1",
5858
"description": "end timestamp for the requested influencers"
5959
},

rest-api-spec/src/main/resources/rest-api-spec/api/ml.get_overall_buckets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
"description": "If true overall buckets that include interim buckets will be excluded"
5252
},
5353
"start": {
54-
"type": "string",
54+
"type": "date",
5555
"description": "Returns overall buckets with timestamps after this time"
5656
},
5757
"end": {
58-
"type": "string",
58+
"type": "date",
5959
"description": "Returns overall buckets with timestamps earlier than this time"
6060
},
6161
"allow_no_match": {

rest-api-spec/src/main/resources/rest-api-spec/api/ml.get_records.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
"description": "specifies a max number of records to get"
4949
},
5050
"start": {
51-
"type": "string",
51+
"type": "date",
5252
"default": "-1",
5353
"description": "Start time filter for records"
5454
},
5555
"end": {
56-
"type": "string",
56+
"type": "date",
5757
"default": "-1",
5858
"description": "End time filter for records"
5959
},

rest-api-spec/src/main/resources/rest-api-spec/api/ml.post_data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
},
3434
"params": {
3535
"reset_start": {
36-
"type": "string",
36+
"type": "date",
3737
"description": "Optional parameter to specify the start of the bucket resetting range"
3838
},
3939
"reset_end": {
40-
"type": "string",
40+
"type": "date",
4141
"description": "Optional parameter to specify the end of the bucket resetting range"
4242
}
4343
},

rest-api-spec/src/main/resources/rest-api-spec/api/ml.preview_datafeed.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
},
4141
"params": {
4242
"start": {
43-
"type": "string",
43+
"type": "date",
4444
"description": "The start time from where the datafeed preview should begin"
4545
},
4646
"end": {
47-
"type": "string",
47+
"type": "date",
4848
"description": "The end time when the datafeed preview should stop"
4949
}
5050
},

rest-api-spec/src/main/resources/rest-api-spec/api/ml.start_datafeed.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
},
3333
"params": {
3434
"start": {
35-
"type": "string",
35+
"type": "date",
3636
"description": "The start time from where the datafeed should begin"
3737
},
3838
"end": {
39-
"type": "string",
39+
"type": "date",
4040
"description": "The end time when the datafeed should stop. When not set, the datafeed continues in real time"
4141
},
4242
"timeout": {

0 commit comments

Comments
 (0)