Google Cloud Storage Insights V1 Client - Class ReportDetail (0.3.0)

Reference documentation and code samples for the Google Cloud Storage Insights V1 Client class ReportDetail.

Message describing ReportDetail object. ReportDetail represents metadata of generated reports for a ReportConfig.

Next ID: 10

Generated from protobuf message google.cloud.storageinsights.v1.ReportDetail

Namespace

Google \ Cloud \ StorageInsights \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Name of resource. It will be of form projects/

↳ snapshot_time Google\Protobuf\Timestamp

The snapshot time. All the report data is referenced at this point of time.

↳ report_path_prefix string

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id". For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

↳ shards_count int|string

Total shards generated for the report.

↳ status Google\Rpc\Status

Status of the ReportDetail.

↳ labels array|Google\Protobuf\Internal\MapField

Labels as key value pairs

↳ target_datetime Google\Type\DateTime

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

↳ report_metrics Google\Cloud\StorageInsights\V1\ReportDetail\Metrics

Metrics of the report.

getName

Name of resource. It will be of form projects/

Returns
TypeDescription
string

setName

Name of resource. It will be of form projects/

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSnapshotTime

The snapshot time.

All the report data is referenced at this point of time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasSnapshotTime

clearSnapshotTime

setSnapshotTime

The snapshot time.

All the report data is referenced at this point of time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getReportPathPrefix

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id".

For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

Returns
TypeDescription
string

setReportPathPrefix

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id".

For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getShardsCount

Total shards generated for the report.

Returns
TypeDescription
int|string

setShardsCount

Total shards generated for the report.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getStatus

Status of the ReportDetail.

Returns
TypeDescription
Google\Rpc\Status|null

hasStatus

clearStatus

setStatus

Status of the ReportDetail.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getLabels

Labels as key value pairs

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getTargetDatetime

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

Returns
TypeDescription
Google\Type\DateTime|null

hasTargetDatetime

clearTargetDatetime

setTargetDatetime

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

Parameter
NameDescription
var Google\Type\DateTime
Returns
TypeDescription
$this

getReportMetrics

Metrics of the report.

Returns
TypeDescription
Google\Cloud\StorageInsights\V1\ReportDetail\Metrics|null

hasReportMetrics

clearReportMetrics

setReportMetrics

Metrics of the report.

Parameter
NameDescription
var Google\Cloud\StorageInsights\V1\ReportDetail\Metrics
Returns
TypeDescription
$this