Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class SimulatedFinding.
A subset of the fields of the Security Center Finding proto. The minimum set of fields needed to represent a simulated finding from a SHA custom module.
Generated from protobuf message google.cloud.securitycentermanagement.v1.SimulatedFinding
Namespace
Google \ Cloud \ SecurityCenterManagement \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The relative resource name
of the finding. Example: organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
, folders/{folder_id}/sources/{source_id}/findings/{finding_id}
, projects/{project_id}/sources/{source_id}/findings/{finding_id}
.
↳ parent
string
The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name
This field is immutable after creation time. For example: organizations/{organization_id}/sources/{source_id}
↳ resource_name
string
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
↳ category
string
The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
↳ state
int
Output only. The state of the finding.
↳ source_properties
array| Google\Protobuf\Internal\MapField
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
↳ event_time
Google\Protobuf\Timestamp
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.
↳ severity
int
The severity of the finding. This field is managed by the source that writes the finding.
↳ finding_class
int
The class of the finding.
getName
Identifier. The relative resource
name
of the finding. Example: organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
, folders/{folder_id}/sources/{source_id}/findings/{finding_id}
, projects/{project_id}/sources/{source_id}/findings/{finding_id}
.
string
setName
Identifier. The relative resource
name
of the finding. Example: organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
, folders/{folder_id}/sources/{source_id}/findings/{finding_id}
, projects/{project_id}/sources/{source_id}/findings/{finding_id}
.
var
string
$this
getParent
The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time.
For example: organizations/{organization_id}/sources/{source_id}
string
setParent
The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time.
For example: organizations/{organization_id}/sources/{source_id}
var
string
$this
getResourceName
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
string
setResourceName
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
var
string
$this
getCategory
The additional taxonomy group within findings from a given source.
This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
string
setCategory
The additional taxonomy group within findings from a given source.
This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
var
string
$this
getState
Output only. The state of the finding.
int
setState
Output only. The state of the finding.
var
int
$this
getSourceProperties
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
setSourceProperties
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
$this
getEventTime
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.
hasEventTime
clearEventTime
setEventTime
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.
$this
getSeverity
The severity of the finding. This field is managed by the source that writes the finding.
int
setSeverity
The severity of the finding. This field is managed by the source that writes the finding.
var
int
$this
getFindingClass
The class of the finding.
int
setFindingClass
The class of the finding.
var
int
$this