Skip to content

Commit

Permalink
api: timeSeries proto (#1665)
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero committed Aug 17, 2021
1 parent 1f12961 commit 66f6ce3
Show file tree
Hide file tree
Showing 5 changed files with 1,032 additions and 0 deletions.
26 changes: 26 additions & 0 deletions api/timeseries/v1/timeseries.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax = "proto3";

package clutch.timeseries.v1;

option go_package = "github.com/lyft/clutch/backend/api/timeseries/v1;timeseriesv1";

import "google/protobuf/any.proto";
import "validate/validate.proto";

message TimeRange {
int64 start_millis = 1 [ (validate.rules).int64.gt = 0 ];
int64 end_millis = 2 [ (validate.rules).int64.gt = 0 ];
}

// A timeseries Point message is useful for organizing events
// to be displayed in a timeline view. Users can transform data
// into a timeseries format and be able to organize them.
message Point {
oneof timestamp {
option (validate.required) = true;
TimeRange range = 1;
int64 millis = 2;
}
google.protobuf.Any pb = 3;
string description = 4;
}
294 changes: 294 additions & 0 deletions backend/api/timeseries/v1/timeseries.pb.go

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

Loading

0 comments on commit 66f6ce3

Please sign in to comment.