Reference documentation and code samples for the Google Cloud Dataproc V1 Client class UsageSnapshot.
The usage snapshot represents the resources consumed by a workload at a specified time.
Generated from protobuf message google.cloud.dataproc.v1.UsageSnapshot
Namespace
Google \ Cloud \ Dataproc \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ milli_dcu |
int|string
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc Serverless pricing). |
↳ shuffle_storage_gb |
int|string
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing) |
↳ milli_dcu_premium |
int|string
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see Dataproc Serverless pricing). |
↳ shuffle_storage_gb_premium |
int|string
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless pricing) |
↳ milli_accelerator |
int|string
Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing) |
↳ accelerator_type |
string
Optional. Accelerator type being used, if any |
↳ snapshot_time |
Google\Protobuf\Timestamp
Optional. The timestamp of the usage snapshot. |
getMilliDcu
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc Serverless pricing).
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setMilliDcu
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc Serverless pricing).
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getShuffleStorageGb
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing)
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setShuffleStorageGb
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing)
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMilliDcuPremium
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see Dataproc Serverless pricing).
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setMilliDcuPremium
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see Dataproc Serverless pricing).
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getShuffleStorageGbPremium
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless pricing)
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setShuffleStorageGbPremium
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless pricing)
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMilliAccelerator
Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing)
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setMilliAccelerator
Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing)
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAcceleratorType
Optional. Accelerator type being used, if any
| Returns | |
|---|---|
| Type | Description |
string |
|
setAcceleratorType
Optional. Accelerator type being used, if any
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSnapshotTime
Optional. The timestamp of the usage snapshot.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasSnapshotTime
clearSnapshotTime
setSnapshotTime
Optional. The timestamp of the usage snapshot.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|