chore(deps): Bump github.com/google/cel-go from 0.23.0 to 0.24.1 (#16687)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Maya Strandboge <mstrandboge@influxdata.com>
This commit is contained in:
parent
bfe0b5f610
commit
9d20624068
2
go.mod
2
go.mod
|
|
@ -97,7 +97,7 @@ require (
|
|||
github.com/golang-jwt/jwt/v5 v5.2.2
|
||||
github.com/golang/geo v0.0.0-20190916061304-5b978397cfec
|
||||
github.com/golang/snappy v1.0.0
|
||||
github.com/google/cel-go v0.23.0
|
||||
github.com/google/cel-go v0.24.1
|
||||
github.com/google/gnxi v0.0.0-20231026134436-d82d9936af15
|
||||
github.com/google/go-cmp v0.7.0
|
||||
github.com/google/go-github/v32 v32.1.0
|
||||
|
|
|
|||
4
go.sum
4
go.sum
|
|
@ -1368,8 +1368,8 @@ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Z
|
|||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4=
|
||||
github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
|
||||
github.com/google/cel-go v0.23.0 h1:knsnzeUOcREUFo0ZFJqZI8Rk6uEVyobAlir7GEbf5v0=
|
||||
github.com/google/cel-go v0.23.0/go.mod h1:52Pb6QsDbC5kvgxvZhiL9QX1oZEkcUF/ZqaPx1J5Wwo=
|
||||
github.com/google/cel-go v0.24.1 h1:jsBCtxG8mM5wiUJDSGUqU0K7Mtr3w7Eyv00rw4DiZxI=
|
||||
github.com/google/cel-go v0.24.1/go.mod h1:Hdf9TqOaTNSFQA1ybQaRqATVoK7m/zcf7IMhGXP5zI8=
|
||||
github.com/google/flatbuffers v1.12.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||
github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||
github.com/google/flatbuffers v24.12.23+incompatible h1:ubBKR94NR4pXUCY/MUsRVzd9umNW7ht7EG9hHfS9FX8=
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/google/cel-go/cel"
|
||||
"github.com/google/cel-go/checker/decls"
|
||||
"github.com/google/cel-go/common/decls"
|
||||
"github.com/google/cel-go/common/types"
|
||||
"github.com/google/cel-go/common/types/ref"
|
||||
"github.com/google/cel-go/ext"
|
||||
|
|
@ -247,11 +247,11 @@ func (f *Filter) compileMetricFilter() error {
|
|||
|
||||
// Declare the computation environment for the filter including custom functions
|
||||
env, err := cel.NewEnv(
|
||||
cel.Declarations(
|
||||
decls.NewVar("name", decls.String),
|
||||
decls.NewVar("tags", decls.NewMapType(decls.String, decls.String)),
|
||||
decls.NewVar("fields", decls.NewMapType(decls.String, decls.Dyn)),
|
||||
decls.NewVar("time", decls.Timestamp),
|
||||
cel.VariableDecls(
|
||||
decls.NewVariable("name", types.StringType),
|
||||
decls.NewVariable("tags", types.NewMapType(types.StringType, types.StringType)),
|
||||
decls.NewVariable("fields", types.NewMapType(types.StringType, types.DynType)),
|
||||
decls.NewVariable("time", types.TimestampType),
|
||||
),
|
||||
cel.Function(
|
||||
"now",
|
||||
|
|
|
|||
Loading…
Reference in New Issue