Reference documentation and code samples for the Google Cloud Chronicle Client class ResourceUsage.
The ResourceUsage extension captures details about what is using a resource.
Generated from protobuf message google.backstory.ResourceUsage
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ used_entity |
string
The name of the entity (e.g., process, user) that is using the resource. |
↳ used_entity_id |
string
A numerical identifier for the entity using the resource (e.g., PID, UID). |
getUsedEntity
The name of the entity (e.g., process, user) that is using the resource.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUsedEntity
The name of the entity (e.g., process, user) that is using the resource.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsedEntityId
A numerical identifier for the entity using the resource (e.g., PID, UID).
| Returns | |
|---|---|
| Type | Description |
string |
|
setUsedEntityId
A numerical identifier for the entity using the resource (e.g., PID, UID).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|