Skip to content

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

.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