-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdora-metrics.schema.ts
More file actions
105 lines (77 loc) · 2.37 KB
/
dora-metrics.schema.ts
File metadata and controls
105 lines (77 loc) · 2.37 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
export default /* GraphQL */ `
type Metrics {
dora: DoraMetrics!
}
type DoraMetrics {
leadTime(input: WorkspaceMetricInput!): LeadTimeMetric!
changeFailureRate(input: WorkspaceMetricInput!): ChangeFailureRateMetric!
deploymentFrequency(
input: WorkspaceMetricInput!
): DeploymentFrequencyMetric!
meanTimeToRecover(input: WorkspaceMetricInput!): MeanTimeToRecoverMetric!
}
input WorkspaceMetricInput {
"The date range."
dateRange: DateTimeRange!
"The period to group by."
period: Period!
"The team ids to filter by."
teamIds: [SweetID!]
"The application ids to filter by."
applicationIds: [SweetID!]
"The environment ids to filter by."
environmentIds: [SweetID!]
"The repository ids to filter by."
repositoryIds: [SweetID!]
}
type LeadTimeMetric {
"The lead time for the current period"
currentAmount: Int!
"The lead time before the current period"
previousAmount: Int!
"The change in lead time"
change: Float!
"The columns for the chart"
columns: [DateTime!]!
"The amounts over time for the chart"
data: [BigInt!]!
}
type ChangeFailureRateMetric {
"The change failure rate for the current period"
currentAmount: Float!
"The change failure rate before the current period"
previousAmount: Float!
"The change in change failure rate"
change: Float!
"The columns for the chart"
columns: [DateTime!]!
"The amounts over time for the chart"
data: [BigInt!]!
}
type DeploymentFrequencyMetric {
"The amount of deployments for the current period"
currentAmount: Int!
"The average number of deployments per day"
avg: Float!
"The number of deployments before the current period"
previousAmount: Int!
"The change in the number of deployments"
change: Float!
"The columns for the chart"
columns: [DateTime!]!
"The amounts over time for the chart"
data: [BigInt!]!
}
type MeanTimeToRecoverMetric {
"The mean time to recover in milliseconds for the current period"
currentAmount: Int!
"The mean time to recover in milliseconds before the current period"
previousAmount: Int!
"The change in mean time to recover"
change: Float!
"The columns for the chart"
columns: [DateTime!]!
"The amounts over time for the chart"
data: [BigInt!]!
}
`;