Reference documentation and code samples for the Google Cloud Chronicle Client class Hardware.
Hardware specification details for a resource, including both physical and virtual hardware.
Generated from protobuf message google.backstory.Hardware
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ serial_number |
string
Hardware serial number. |
↳ manufacturer |
string
Hardware manufacturer. |
↳ model |
string
Hardware model. |
↳ cpu_platform |
string
Platform of the hardware CPU (e.g. "Intel Broadwell"). |
↳ cpu_model |
string
Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5"). |
↳ cpu_clock_speed |
int|string
Clock speed of the hardware CPU in MHz. |
↳ cpu_max_clock_speed |
int|string
Maximum possible clock speed of the hardware CPU in MHz. |
↳ cpu_number_cores |
int|string
Number of CPU cores. |
↳ ram |
int|string
Amount of the hardware ramdom access memory (RAM) in Mb. |
getSerialNumber
Hardware serial number.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSerialNumber
Hardware serial number.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getManufacturer
Hardware manufacturer.
| Returns | |
|---|---|
| Type | Description |
string |
|
setManufacturer
Hardware manufacturer.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getModel
Hardware model.
| Returns | |
|---|---|
| Type | Description |
string |
|
setModel
Hardware model.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCpuPlatform
Platform of the hardware CPU (e.g. "Intel Broadwell").
| Returns | |
|---|---|
| Type | Description |
string |
|
setCpuPlatform
Platform of the hardware CPU (e.g. "Intel Broadwell").
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCpuModel
Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5").
| Returns | |
|---|---|
| Type | Description |
string |
|
setCpuModel
Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5").
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCpuClockSpeed
Clock speed of the hardware CPU in MHz.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setCpuClockSpeed
Clock speed of the hardware CPU in MHz.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCpuMaxClockSpeed
Maximum possible clock speed of the hardware CPU in MHz.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setCpuMaxClockSpeed
Maximum possible clock speed of the hardware CPU in MHz.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCpuNumberCores
Number of CPU cores.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setCpuNumberCores
Number of CPU cores.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRam
Amount of the hardware ramdom access memory (RAM) in Mb.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setRam
Amount of the hardware ramdom access memory (RAM) in Mb.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|