Package com.circleci.client.v2.model
Class InlineResponse200Metrics
- java.lang.Object
-
- com.circleci.client.v2.model.InlineResponse200Metrics
-
public class InlineResponse200Metrics extends Object
Metrics relating to a workflow's runs.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DURATION_METRICSstatic StringJSON_PROPERTY_FAILED_RUNSstatic StringJSON_PROPERTY_MTTRstatic StringJSON_PROPERTY_SUCCESS_RATEstatic StringJSON_PROPERTY_SUCCESSFUL_RUNSstatic StringJSON_PROPERTY_THROUGHPUTstatic StringJSON_PROPERTY_TOTAL_CREDITS_USEDstatic StringJSON_PROPERTY_TOTAL_RUNS
-
Constructor Summary
Constructors Constructor Description InlineResponse200Metrics()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_SUCCESS_RATE
public static final String JSON_PROPERTY_SUCCESS_RATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_RUNS
public static final String JSON_PROPERTY_TOTAL_RUNS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FAILED_RUNS
public static final String JSON_PROPERTY_FAILED_RUNS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUCCESSFUL_RUNS
public static final String JSON_PROPERTY_SUCCESSFUL_RUNS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_THROUGHPUT
public static final String JSON_PROPERTY_THROUGHPUT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MTTR
public static final String JSON_PROPERTY_MTTR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_CREDITS_USED
public static final String JSON_PROPERTY_TOTAL_CREDITS_USED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DURATION_METRICS
public static final String JSON_PROPERTY_DURATION_METRICS
- See Also:
- Constant Field Values
-
-
Method Detail
-
successRate
public InlineResponse200Metrics successRate(Float successRate)
-
getSuccessRate
public Float getSuccessRate()
The ratio of successful runs / total runs.- Returns:
- successRate
-
setSuccessRate
public void setSuccessRate(Float successRate)
-
totalRuns
public InlineResponse200Metrics totalRuns(Long totalRuns)
-
getTotalRuns
public Long getTotalRuns()
The total number of runs. minimum: 0- Returns:
- totalRuns
-
setTotalRuns
public void setTotalRuns(Long totalRuns)
-
failedRuns
public InlineResponse200Metrics failedRuns(Long failedRuns)
-
getFailedRuns
public Long getFailedRuns()
The number of failed runs. minimum: 0- Returns:
- failedRuns
-
setFailedRuns
public void setFailedRuns(Long failedRuns)
-
successfulRuns
public InlineResponse200Metrics successfulRuns(Long successfulRuns)
-
getSuccessfulRuns
public Long getSuccessfulRuns()
The number of successful runs. minimum: 0- Returns:
- successfulRuns
-
setSuccessfulRuns
public void setSuccessfulRuns(Long successfulRuns)
-
throughput
public InlineResponse200Metrics throughput(Float throughput)
-
getThroughput
public Float getThroughput()
The average number of workflow runs per day.- Returns:
- throughput
-
setThroughput
public void setThroughput(Float throughput)
-
mttr
public InlineResponse200Metrics mttr(Long mttr)
-
getMttr
public Long getMttr()
The mean time to recovery (mean time between failures and their next success) in seconds. minimum: 0- Returns:
- mttr
-
setMttr
public void setMttr(Long mttr)
-
totalCreditsUsed
public InlineResponse200Metrics totalCreditsUsed(Long totalCreditsUsed)
-
getTotalCreditsUsed
public Long getTotalCreditsUsed()
The total credits consumed by the workflow in the aggregation window. minimum: 0- Returns:
- totalCreditsUsed
-
setTotalCreditsUsed
public void setTotalCreditsUsed(Long totalCreditsUsed)
-
durationMetrics
public InlineResponse200Metrics durationMetrics(InlineResponse200MetricsDurationMetrics durationMetrics)
-
getDurationMetrics
public InlineResponse200MetricsDurationMetrics getDurationMetrics()
Get durationMetrics- Returns:
- durationMetrics
-
setDurationMetrics
public void setDurationMetrics(InlineResponse200MetricsDurationMetrics durationMetrics)
-
-