public class Statistics extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Statistics.UpstreamCause
Upstream cause.
|
Constructor and Description |
---|
Statistics(String projectName,
int buildNumber,
Date startingTime,
long duration,
List<String> triggerCauses,
String nodeName,
String master,
int timeZoneOffset,
String result,
List<FailureCauseStatistics> failureCauseStatistics)
Deprecated.
|
Statistics(String projectName,
int buildNumber,
String displayName,
Date startingTime,
long duration,
List<String> triggerCauses,
String nodeName,
String master,
int timeZoneOffset,
String result,
Statistics.UpstreamCause upstreamCause,
List<FailureCauseStatistics> failureCauseStatistics)
Standard/JSON constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBuildNumber()
Getter for the build number.
|
String |
getDisplayName()
Getter for the build display name.
|
long |
getDuration()
Getter for the duration.
|
List<FailureCauseStatistics> |
getFailureCauseStatisticsList()
Getter for the List of statistics for FailureCauses.
|
String |
getMaster()
Getter for the Jenkins master.
|
String |
getProjectName()
Getter for the project name.
|
String |
getResult()
Getter for the result of the build.
|
String |
getSlaveHostName()
Getter for the host name of the slave.
|
Date |
getStartingTime()
Getter for the starting time.
|
int |
getTimeZoneOffset()
Getter for the time zone offset in milliseconds.
|
List<String> |
getTriggerCauses()
Getter for the build cause that triggered the build.
|
Statistics.UpstreamCause |
getUpstreamCause()
Getter for the upstream cause description.
|
public Statistics(String projectName, int buildNumber, String displayName, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, Statistics.UpstreamCause upstreamCause, List<FailureCauseStatistics> failureCauseStatistics)
projectName
- the project name.buildNumber
- the build number.displayName
- the build display name.startingTime
- the starting time.duration
- the duration.triggerCauses
- the causes that triggered this build.nodeName
- the name of the node this build ran on.master
- the master this build ran on.timeZoneOffset
- the time zone offset.result
- the result of the build.upstreamCause
- the upstream cause of the current build, if any.failureCauseStatistics
- the statistics for the FailureCauses.@Deprecated public Statistics(String projectName, int buildNumber, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, List<FailureCauseStatistics> failureCauseStatistics)
projectName
- the project name.buildNumber
- the build number.startingTime
- the starting time.duration
- the duration.triggerCauses
- the causes that triggered this build.nodeName
- the name of the node this build ran on.master
- the master this build ran on.timeZoneOffset
- the time zone offset.result
- the result of the build.failureCauseStatistics
- the statistics for the FailureCauses.public String getProjectName()
public int getBuildNumber()
public String getDisplayName()
public Date getStartingTime()
public long getDuration()
public List<String> getTriggerCauses()
public String getSlaveHostName()
public String getMaster()
public int getTimeZoneOffset()
public String getResult()
public Statistics.UpstreamCause getUpstreamCause()
public List<FailureCauseStatistics> getFailureCauseStatisticsList()
Copyright © 2016–2020. All rights reserved.