title: Spring Boot 2 Metrics Last invocation of @Timed Scheduled Job
body: <p>Gradle dependencies</p>
  
  <pre><code>compile "org.springframework.boot:spring-boot-starter-web:2.0.1.RELEASE"
  compile "org.springframework.boot:spring-boot-starter-actuator:2.0.1.RELEASE"
  compile "org.springframework.boot:spring-boot-starter-aop:2.0.1.RELEASE"
  </code></pre>
  
  <p>My scheduled task</p>
  
  <pre><code>@Scheduled(fixedRate = 1000L * 57L)
  @Timed("importCustomers")
  open fun importCustomers() = importCustomerService.importCustomers()
  </code></pre>
  
  <p>When requesting the metrics for the job via actuator endpoint (<a href="http://xxx:yyy/actuator/metrics/importCustomers" rel="nofollow noreferrer">http://xxx:yyy/actuator/metrics/importCustomers</a>), I am able to see the number of invocations, max time and the total time.</p>
  
  <p>Is there a way to see the timestamps the function has been invoked, or at least the latest time of invocation?</p>
  
  <p>Like, last run at 2018-04-17T17:00:00.000Z.</p>