Class ProjectGenerationStatPublisher
java.lang.Object
io.spring.initializr.actuate.stat.ProjectGenerationStatPublisher
Publish stats for each project generated to an Elastic index.
- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorsConstructorDescriptionProjectGenerationStatPublisher
(ProjectRequestDocumentFactory documentFactory, StatsProperties statsProperties, RestTemplateBuilder restTemplateBuilder, org.springframework.retry.support.RetryTemplate retryTemplate) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.client.RestTemplate
void
handleEvent
(ProjectRequestEvent event) protected void
updateRequestUrl
(URI requestUrl)
-
Constructor Details
-
ProjectGenerationStatPublisher
public ProjectGenerationStatPublisher(ProjectRequestDocumentFactory documentFactory, StatsProperties statsProperties, RestTemplateBuilder restTemplateBuilder, org.springframework.retry.support.RetryTemplate retryTemplate)
-
-
Method Details
-
handleEvent
-
getRestTemplate
protected org.springframework.web.client.RestTemplate getRestTemplate() -
updateRequestUrl
-