@@ -20,17 +20,6 @@ const (
20
20
QueryTypeThreshold QueryType = "threshold"
21
21
)
22
22
23
- // Defines values for StatusType.
24
- const (
25
- StatusTypeCreated StatusType = "created"
26
- StatusTypeCreating StatusType = "creating"
27
- StatusTypeDeleting StatusType = "deleting"
28
- StatusTypeError StatusType = "error"
29
- StatusTypeUnknown StatusType = "unknown"
30
- StatusTypeUpdated StatusType = "updated"
31
- StatusTypeUpdating StatusType = "updating"
32
- )
33
-
34
23
// Defines values for ThresholdOperator.
35
24
const (
36
25
ThresholdOperatorEmpty ThresholdOperator = "<"
@@ -61,8 +50,8 @@ type DashboardRef struct {
61
50
62
51
// DestinationDatasource defines model for DestinationDatasource.
63
52
type DestinationDatasource struct {
64
- Type * string `json:"type,omitempty"`
65
- UID * string `json:"uid,omitempty"`
53
+ Type string `json:"type,omitempty"`
54
+ UID string `json:"uid,omitempty"`
66
55
}
67
56
68
57
// FreeformQuery defines model for FreeformQuery.
@@ -86,8 +75,8 @@ type Label struct {
86
75
87
76
// MetricDef defines model for MetricDef.
88
77
type MetricDef struct {
89
- PrometheusMetric string `json:"prometheusMetric"`
90
- Type * string `json:"type,omitempty"`
78
+ PrometheusMetric string `json:"prometheusMetric"`
79
+ Type string `json:"type,omitempty"`
91
80
}
92
81
93
82
// Objective defines model for Objective.
@@ -118,7 +107,7 @@ type RatioQuery struct {
118
107
// ReadOnly defines model for ReadOnly.
119
108
type ReadOnly struct {
120
109
DrillDownDashboardRef * DashboardRef `json:"drillDownDashboardRef,omitempty"`
121
- Provenance * string `json:"provenance,omitempty"`
110
+ Provenance string `json:"provenance,omitempty"`
122
111
Status * Status `json:"status,omitempty"`
123
112
}
124
113
@@ -137,13 +126,10 @@ type Slo struct {
137
126
138
127
// Status defines model for Status.
139
128
type Status struct {
140
- Message * string `json:"message,omitempty"`
141
- Type StatusType `json:"type"`
129
+ Message string `json:"message,omitempty"`
130
+ Type string `json:"type"`
142
131
}
143
132
144
- // StatusType defines model for Status.Type.
145
- type StatusType string
146
-
147
133
// Threshold defines model for Threshold.
148
134
type Threshold struct {
149
135
Operator ThresholdOperator `json:"operator"`
0 commit comments