[
https://issues.apache.org/jira/browse/GRIFFIN-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616351#comment-16616351
]
Lionel Liu commented on GRIFFIN-191:
------------------------------------
Hi [~chemikadze], how did you submit that request? Through UI or API?
Seems like through API directly. Actually the field "data.segments" is required
like this:
[https://github.com/apache/incubator-griffin/blob/master/griffin-doc/service/api-guide.md#add-job]
Because for accuracy, there're two data sources, we need to choose one of them
as the baseline of timestamp, to decide which the calculated metric timestamp
should be align with.
> Attempt to create job for 0-day partitioned accuracy measure fails
> ------------------------------------------------------------------
>
> Key: GRIFFIN-191
> URL: https://issues.apache.org/jira/browse/GRIFFIN-191
> Project: Griffin (Incubating)
> Issue Type: Bug
> Reporter: Nikolay Sokolov
> Priority: Trivial
>
> If accuracy measure is created through UI with partition size of 0 days,
> attempt to create job for such measure from UI fails with error "Missing
> 'as.baseline' config in 'data.segments'".
> Request:
> {code:none}
> {"job.name":"my-accuracy-job-0","job.type":"batch","measure.id":404,"cron.expression":"0
> * * * * ?","cron.time.zone":"GMT7:00","data.segments":[]}
> {code}
> Response:
> {code:none}
> {"timestamp":1536989880993,"status":400,"error":"Bad
> Request","code":"40005","message":"Missing 'as.baseline' config in
> 'data.segments'","path":"/api/v1/jobs"}
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)