Skip to content

Commit

Permalink
Rename IP field
Browse files Browse the repository at this point in the history
  • Loading branch information
jeschkies committed Nov 15, 2023
1 parent 2fcca53 commit 3897f69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/logql/syntax/serialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const (
Identifier = "identifier"
Inner = "inner"
IntervalNanos = "interval_nanos"
Ip = "ip"
IPField = "ip"
Label = "label"
LabelReplace = "label_replace"
LHS = "lhs"
Expand Down Expand Up @@ -515,7 +515,7 @@ func encodeLabelFilter(s *jsoniter.Stream, filter log.LabelFilterer) {
s.WriteObjectEnd()
case *log.IPLabelFilter:
s.WriteObjectStart()
s.WriteObjectField(Ip)
s.WriteObjectField(IPField)

s.WriteObjectStart()
s.WriteObjectField(Type)
Expand Down Expand Up @@ -629,7 +629,7 @@ func decodeLabelFilter(iter *jsoniter.Iterator) log.LabelFilterer {

filter = log.NewStringLabelFilter(matcher)

case Ip:
case IPField:
var label string
var pattern string
var t log.LabelFilterType
Expand Down

0 comments on commit 3897f69

Please sign in to comment.