@@ -20,17 +20,6 @@ const (
2020 QueryTypeThreshold QueryType = "threshold"
2121)
2222
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-
3423// Defines values for ThresholdOperator.
3524const (
3625 ThresholdOperatorEmpty ThresholdOperator = "<"
@@ -61,8 +50,8 @@ type DashboardRef struct {
6150
6251// DestinationDatasource defines model for DestinationDatasource.
6352type 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"`
6655}
6756
6857// FreeformQuery defines model for FreeformQuery.
@@ -86,8 +75,8 @@ type Label struct {
8675
8776// MetricDef defines model for MetricDef.
8877type MetricDef struct {
89- PrometheusMetric string `json:"prometheusMetric"`
90- Type * string `json:"type,omitempty"`
78+ PrometheusMetric string `json:"prometheusMetric"`
79+ Type string `json:"type,omitempty"`
9180}
9281
9382// Objective defines model for Objective.
@@ -118,7 +107,7 @@ type RatioQuery struct {
118107// ReadOnly defines model for ReadOnly.
119108type ReadOnly struct {
120109 DrillDownDashboardRef * DashboardRef `json:"drillDownDashboardRef,omitempty"`
121- Provenance * string `json:"provenance,omitempty"`
110+ Provenance string `json:"provenance,omitempty"`
122111 Status * Status `json:"status,omitempty"`
123112}
124113
@@ -137,13 +126,10 @@ type Slo struct {
137126
138127// Status defines model for Status.
139128type Status struct {
140- Message * string `json:"message,omitempty"`
141- Type StatusType `json:"type"`
129+ Message string `json:"message,omitempty"`
130+ Type string `json:"type"`
142131}
143132
144- // StatusType defines model for Status.Type.
145- type StatusType string
146-
147133// Threshold defines model for Threshold.
148134type Threshold struct {
149135 Operator ThresholdOperator `json:"operator"`
0 commit comments