Skip to content

Commit

Permalink
feat: Add ReportMetadta to MeasurementSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfucraig committed Dec 19, 2024
1 parent 1988184 commit 596e217
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/main/proto/wfa/measurement/api/v2alpha/measurement_spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,29 @@ message MeasurementSpec {
(google.api.resource_reference).type = "halo.wfanet.org/ModelLine",
(google.api.field_behavior) = IMMUTABLE
];

// Provides the report and metric for which this Measurement was created
message ReportMetadata {
// The Report
string report = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE,
(google.api.resource_reference) = { type: "halo.wfanet.org/Report" }
];
// The Metric
string metric = 2 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE,
(google.api.resource_reference) = { type: "halo.wfanet.org/Metric" }
];
}
// Provides additional information about the artifacts upstream of this
// Measurement.
//
// When present the report_metadata can be used by EDPs to group Measurements
// into logical units to help optimize fulfilment processes.
ReportMetadata report_metadata = 1 [
(google.api.field_behavior) = OPTIONAL,
(google.api.field_behavior) = IMMUTABLE
];
}

0 comments on commit 596e217

Please sign in to comment.