jasonyanwenl commented on a change in pull request #5866: URL: https://github.com/apache/incubator-pinot/pull/5866#discussion_r470827343
########## 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: Thanks Harley! Yeah, the formatting for the ad-hoc data will be explained in the API doc. I am currently writing that. I will share it when I finished it. ---------------------------------------------------------------- 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