Skip to content

Commit

Permalink
[sbom] Add generation duration
Browse files Browse the repository at this point in the history
  • Loading branch information
L3n41c committed Jan 16, 2023
1 parent dc2a721 commit 3403ac0
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 31 deletions.
12 changes: 7 additions & 5 deletions proto/sbom/sbom.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option go_package = "github.com/DataDog/agent-payload/v5/sbom";

package datadog.sbom;

import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "proto/deps/github.com/CycloneDX/specification/schema/bom-1.4.proto";

Expand All @@ -16,11 +17,12 @@ message SBOMPayload {
}

message SBOMEntity {
SBOMSourceType type = 1;
string id = 2; // Unique identifier to be able to correlated and "deduplicate" SBOM
optional google.protobuf.Timestamp generatedAt = 3; // the datetime of the SBOM generation
repeated string tags = 4; // datadog tags that will be added by the agent depending of the SBOMSourceType
bool inUse = 5; // Whether the SBOM concerns a running entity (running container) or an inert entity (image not used by any container)
SBOMSourceType type = 1;
string id = 2; // Unique identifier to be able to correlated and "deduplicate" SBOM
optional google.protobuf.Timestamp generatedAt = 3; // the datetime of the SBOM generation
repeated string tags = 4; // datadog tags that will be added by the agent depending of the SBOMSourceType
bool inUse = 5; // Whether the SBOM concerns a running entity (running container) or an inert entity (image not used by any container)
optional google.protobuf.Duration generationDuration = 6; // SBOM generation duration (how long it took to generate the SBOM report)
oneof sbom {
cyclonedx.v1_4.Bom cyclonedx = 10; // only cyclonedx will be supported initially but putting it optional will allow us to move to another format later
// spdx.SBOM spdx = 11; // SPDX can be added later as any other format.
Expand Down
71 changes: 45 additions & 26 deletions sbom/sbom.pb.go

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

0 comments on commit 3403ac0

Please sign in to comment.