forked from TomTucka/go-circleci-v2
/
model_inline_response_200_metrics.go
28 lines (27 loc) · 1.34 KB
/
model_inline_response_200_metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* CircleCI API
*
* This describes the resources that make up the CircleCI API v2. API v2 is currently in Preview. Additional documentation for this API can be found in the [API Preview Docs](https://github.com/CircleCI-Public/api-preview-docs/tree/master/docs). Breaking changes to the API will be announced in the [Breaking Changes log](https://github.com/CircleCI-Public/api-preview-docs/blob/master/docs/breaking.md).
*
* API version: v2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package circleci
// Metrics relating to a workflow's runs.
type InlineResponse200Metrics struct {
// The ratio of successful runs / total runs.
SuccessRate float32 `json:"success_rate"`
// The total number of runs.
TotalRuns int64 `json:"total_runs"`
// The number of failed runs.
FailedRuns int64 `json:"failed_runs"`
// The number of successful runs.
SuccessfulRuns int64 `json:"successful_runs"`
// The average number of workflow runs per day.
Throughput float32 `json:"throughput"`
// The mean time to recovery (mean time between failures and their next success) in seconds.
Mttr int64 `json:"mttr"`
// The total credits consumed by the workflow in the aggregation window.
TotalCreditsUsed int64 `json:"total_credits_used"`
DurationMetrics *InlineResponse200MetricsDurationMetrics `json:"duration_metrics"`
}