harleyjj commented on a change in pull request #5866: URL: https://github.com/apache/incubator-pinot/pull/5866#discussion_r470809557
########## File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/api/detection/AnomalyDetectionResource.java ########## @@ -464,6 +420,38 @@ TaskDTO generateTaskConfig(DetectionConfigDTO detectionConfigDTO, return taskDTO; } + long saveOnlineDetectionData(JsonNode payloadNode, + DatasetConfigDTO datasetConfigDTO, MetricConfigDTO metricConfigDTO) + throws JsonProcessingException { + JsonNode dataNode = payloadNode.get(DATA_FIELD); + String timeColumnName = datasetConfigDTO.getTimeColumn(); + String datasetName = datasetConfigDTO.getDataset(); + String metricName = metricConfigDTO.getName(); + Review comment: @jasonyanwenl This code looks good. Are there docs that tell users the formatting for adhoc data, or is that future work for Thirdeye? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org