-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson.go
More file actions
29 lines (25 loc) · 728 Bytes
/
Copy pathjson.go
File metadata and controls
29 lines (25 loc) · 728 Bytes
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
package main
type SonarqubeQualityGateCondition struct {
ErrorThreshold string `json:"errorThreshold"`
Metric string `json:"metric"`
Status string `json:"status"`
Operator string `json:"operator"`
Value string `json:"value"`
}
type SonarqubeQualityGate struct {
Status string `json:"status"`
Conditions []SonarqubeQualityGateCondition
}
type SonarqubeProject struct {
Key string `json:"key"`
Name string `json:"name"`
Url string `json:"url"`
}
type SonarqubeMessage struct {
ServerUrl string `json:"serverUrl"`
TaskId string `json:"taskId"`
Status string `json:"status"`
AnalyzeDate string `json:"analysedAt"`
Project SonarqubeProject `json:"project"`
QualityGade SonarqubeQualityGate `json:"qualityGate"`
}