Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependency packages #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/*
bin
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ CODEGENFILE="set_aggregation_opts.go"
.PHONY: codegen
codegen:
$(BINDIR)/codegen -output ./tsplot/$(CODEGENFILE)
go fmt ./tsplot/$(CODEGENFILE)

.PHONY: codegendiff
codegendiff:
diff ./tsplot/$(CODEGENFILE) <($(BINDIR)/codegen -stdout)
diff ./tsplot/$(CODEGENFILE) <($(BINDIR)/codegen -stdout | gofmt)
48 changes: 40 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,45 @@
module github.com/bitly/tsplot

go 1.14
go 1.19

require (
cloud.google.com/go v0.80.0
github.com/spf13/cobra v1.1.3
golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb
gonum.org/v1/plot v0.9.0
google.golang.org/api v0.43.0
google.golang.org/genproto v0.0.0-20210401141331-865547bb08e2
google.golang.org/protobuf v1.26.0
cloud.google.com/go/monitoring v1.15.1
github.com/spf13/cobra v1.7.0
golang.org/x/image v0.12.0
gonum.org/v1/plot v0.14.0
google.golang.org/api v0.143.0
google.golang.org/genproto v0.0.0-20230913181813-007df8e322eb
google.golang.org/protobuf v1.31.0
)

require (
cloud.google.com/go/compute v1.23.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
git.sr.ht/~sbinet/gg v0.5.0 // indirect
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b // indirect
github.com/campoy/embedmd v1.0.0 // indirect
github.com/go-fonts/liberation v0.3.1 // indirect
github.com/go-latex/latex v0.0.0-20230307184459-12ec69307ad9 // indirect
github.com/go-pdf/fpdf v0.9.0 // indirect
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.1 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/net v0.15.0 // indirect
golang.org/x/oauth2 v0.12.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect
google.golang.org/grpc v1.57.0 // indirect
)
646 changes: 99 additions & 547 deletions go.sum

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions scripts/codegen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package main

/*
codegen.go creates Set_* API methods for Google Cloud Monitoring aggregation alignment and reduction options.
Leverages the exported variables in the Google monitoring/v3 package (common.pb.go) to ensure that all
Expand Down
8 changes: 4 additions & 4 deletions tsplot/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ type MetricQuery struct {
// NewMetricQuery creates a new MetricQuery type with the aggregation opts initialized.
func NewMetricQuery(project, metric string, startTime, endTime *time.Time) *MetricQuery {
return &MetricQuery{
Project: project,
Project: project,
MetricDescriptor: metric,
StartTime: startTime,
EndTime: endTime,
aggregation: &[]aggregationOption{},
StartTime: startTime,
EndTime: endTime,
aggregation: &[]aggregationOption{},
}
}

Expand Down
2 changes: 1 addition & 1 deletion tsplot/set_aggregation_opts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package tsplot

/*
DO NOT EDIT
Generated by codegen.go
Expand Down Expand Up @@ -136,4 +137,3 @@ func (mq *MetricQuery) Set_REDUCE_STDDEV() {
func (mq *MetricQuery) Set_REDUCE_SUM() {
*mq.aggregation = append(*mq.aggregation, withCrossSeriesReducer(4))
}

Loading