Skip to content

Commit

Permalink
Add create and update time to Measurement (#216)
Browse files Browse the repository at this point in the history
Make it easier to filter Measurements for prober
  • Loading branch information
roaminggypsy authored Sep 26, 2024
1 parent 32543d9 commit 2abe35e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/proto/wfa/measurement/api/v2alpha/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ proto_library(
"@com_google_googleapis//google/api:resource_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

Expand Down
9 changes: 9 additions & 0 deletions src/main/proto/wfa/measurement/api/v2alpha/measurement.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "wfa/measurement/api/v2alpha/crypto.proto";
import "wfa/measurement/api/v2alpha/direct_computation.proto";
import "wfa/measurement/api/v2alpha/multi_party_computation.proto";
Expand Down Expand Up @@ -356,4 +357,12 @@ message Measurement {
// Information about the failure of this `Measurement`. Set when the `state`
// is set to `FAILED`.
Failure failure = 10 [(google.api.field_behavior) = OUTPUT_ONLY];

// When the `Measurement` was created.
google.protobuf.Timestamp create_time = 11
[(google.api.field_behavior) = OUTPUT_ONLY];

// When the 'Measurement' was last updated.
google.protobuf.Timestamp update_time = 12
[(google.api.field_behavior) = OUTPUT_ONLY];
}

0 comments on commit 2abe35e

Please sign in to comment.