Package jenkins.model

Class Uptime

java.lang.Object
jenkins.model.Uptime

@Extension public class Uptime extends Object
Keeps track of the uptime of Jenkins.
Since:
1.538
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • Uptime

      public Uptime()
  • Method Details

    • getStartTime

      public long getStartTime()
      Timestamp in which Jenkins became fully up and running.
    • getUptime

      public long getUptime()
      Duration in milliseconds since Jenkins became available
      Returns:
      uptime in milliseconds
    • init

      @Initializer(after=JOB_CONFIG_ADAPTED) public void init()