Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] add duration statistics to forecast stats #31812

Closed

Conversation

hendrikmuhs
Copy link

This change is an extension to #31647 adding duration to the statistics.

Notes:

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@@ -1135,6 +1137,9 @@ public void getForecastStats(String jobId, Consumer<ForecastStats> handler, Cons
.field(ForecastRequestStats.PROCESSED_RECORD_COUNT.getPreferredName()));
sourceBuilder.aggregation(
AggregationBuilders.stats(ForecastStats.Fields.RUNTIME).field(ForecastRequestStats.PROCESSING_TIME_MS.getPreferredName()));
Script durationScript = new Script("doc['" + ForecastRequestStats.END_TIME + "'].value.getMillis() - doc['"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have test coverage of this. There is a JobProviderIT class could you index some forecast stats in that and assert this method.

@hendrikmuhs
Copy link
Author

As scripting can be turned off it's not a good idea to rely on scripting for this feature.

Closing this PR for now. I will follow up off-line regarding alternatives.

@hendrikmuhs hendrikmuhs closed this Jul 5, 2018
@hendrikmuhs hendrikmuhs deleted the forecaststats-duration2 branch October 18, 2018 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :ml Machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants