Reference documentation and code samples for the Grafeas V1 Client class DiscoveryOccurrence.
Provides information about the analysis status of a discovered resource.
Generated from protobuf message grafeas.v1.DiscoveryOccurrence
Namespace
Grafeas \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ continuous_analysis
int
Whether the resource is continuously analyzed.
↳ analysis_status
int
The status of discovery for the resource.
↳ analysis_completed
↳ analysis_error
array< Google\Rpc\Status
>
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
↳ analysis_status_error
Google\Rpc\Status
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.
↳ cpe
string
The CPE of the resource being scanned.
↳ last_scan_time
↳ archive_time
↳ sbom_status
↳ vulnerability_attestation
getContinuousAnalysis
Whether the resource is continuously analyzed.
int
setContinuousAnalysis
Whether the resource is continuously analyzed.
var
int
$this
getAnalysisStatus
The status of discovery for the resource.
int
setAnalysisStatus
The status of discovery for the resource.
var
int
$this
getAnalysisCompleted
Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;
hasAnalysisCompleted
clearAnalysisCompleted
setAnalysisCompleted
Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;
$this
getAnalysisError
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
setAnalysisError
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
$this
getAnalysisStatusError
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.
hasAnalysisStatusError
clearAnalysisStatusError
setAnalysisStatusError
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.
$this
getCpe
The CPE of the resource being scanned.
string
setCpe
The CPE of the resource being scanned.
var
string
$this
getLastScanTime
The last time this resource was scanned.
hasLastScanTime
clearLastScanTime
setLastScanTime
The last time this resource was scanned.
$this
getArchiveTime
The time occurrences related to this discovery occurrence were archived.
hasArchiveTime
clearArchiveTime
setArchiveTime
The time occurrences related to this discovery occurrence were archived.
$this
getSbomStatus
The status of an SBOM generation.
hasSbomStatus
clearSbomStatus
setSbomStatus
The status of an SBOM generation.
$this
getVulnerabilityAttestation
The status of an vulnerability attestation generation.
hasVulnerabilityAttestation
clearVulnerabilityAttestation
setVulnerabilityAttestation
The status of an vulnerability attestation generation.
$this