Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/prometheus/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ type RuleGroup struct {
// default:
// fmt.Printf("unknown rule type %s", v)
// }
type Rules []interface{}
type Rules []any

// AlertingRule models a alerting rule.
type AlertingRule struct {
Expand Down Expand Up @@ -672,7 +672,7 @@ type Metadata struct {
// queryResult contains result data for a query.
type queryResult struct {
Type model.ValueType `json:"resultType"`
Result interface{} `json:"result"`
Result any `json:"result"`

// The decoded value.
v model.Value
Expand Down
Loading
Loading