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

Updates metrics to use Query and to use more efficient windows #2008

Merged
merged 11 commits into from
May 23, 2024
50 changes: 37 additions & 13 deletions backend/gen/go/protos/mgmt/v1alpha1/metrics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions backend/gen/go/protos/mgmt/v1alpha1/metrics.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions backend/protos/mgmt/v1alpha1/metrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ message DayResult {
}

message GetMetricCountRequest {
// The start time
// @deprecated - use start_day
google.protobuf.Timestamp start = 1;
// The end time
// @deprecated - use end_day
google.protobuf.Timestamp end = 2;
// The metric to return
RangedMetricName metric = 3;
Expand All @@ -104,6 +104,8 @@ message GetMetricCountRequest {
// The run identifier that will be used to filter by
string run_id = 6 [(buf.validate.field).string.uuid = true];
}
Date start_day = 7;
Date end_day = 8;
}
message GetMetricCountResponse {
// The summed up count of the metric based on the input query and timerange specified
Expand Down
Loading