Package jenkins.model
Class Uptime
java.lang.Object
jenkins.model.Uptime
Keeps track of the uptime of Jenkins.
- Since:
- 1.538
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Timestamp in which Jenkins became fully up and running.long
Duration in milliseconds since Jenkins became availablevoid
init()
-
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
-