Skip to content

Commit

Permalink
✨ Add labels to the reporter assets.
Browse files Browse the repository at this point in the history
Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev committed Jul 23, 2024
1 parent e7dec11 commit ea74086
Show file tree
Hide file tree
Showing 9 changed files with 416 additions and 376 deletions.
122 changes: 70 additions & 52 deletions cli/reporter/cnquery_report.pb.go

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

1 change: 1 addition & 0 deletions cli/reporter/cnquery_report.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ message Report {
message Asset {
string mrn = 1;
string name = 2;
map <string, string> labels = 3;
string platform_name = 20;
string trace_id = 21;
}
Expand Down
1 change: 1 addition & 0 deletions cli/reporter/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func ConvertToProto(data *explorer.ReportCollection) (*Report, error) {
Mrn: a.Mrn,
Name: a.Name,
TraceId: a.TraceId,
Labels: a.Labels,
}
protoReport.Assets[assetMrn] = pAsset
}
Expand Down
Loading

0 comments on commit ea74086

Please sign in to comment.