Google Cloud Observability V1 Client - Class TraceScope (0.1.0)

Reference documentation and code samples for the Google Cloud Observability V1 Client class TraceScope.

A trace scope is a collection of resources whose traces are queried together.

Generated from protobuf message google.cloud.observability.v1.TraceScope

Namespace

Google \ Cloud \ Observability \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The resource name of the trace scope. For example: projects/my-project/locations/global/traceScopes/my-trace-scope

↳ resource_names string[]

Required. Names of the projects that are included in this trace scope. * * projects/[PROJECT_ID] A trace scope can include a maximum of 20 projects.

↳ description string

Optional. Describes this trace scope. The maximum length of the description is 8000 characters.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation timestamp of the trace scope.

↳ update_time Google\Protobuf\Timestamp

Output only. The last update timestamp of the trace scope.

getName

Identifier. The resource name of the trace scope.

For example: projects/my-project/locations/global/traceScopes/my-trace-scope

Returns
Type Description
string

setName

Identifier. The resource name of the trace scope.

For example: projects/my-project/locations/global/traceScopes/my-trace-scope

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceNames

Required. Names of the projects that are included in this trace scope.

  • projects/[PROJECT_ID] A trace scope can include a maximum of 20 projects.
Returns
Type Description
Google\Protobuf\RepeatedField<string>

setResourceNames

Required. Names of the projects that are included in this trace scope.

  • projects/[PROJECT_ID] A trace scope can include a maximum of 20 projects.
Parameter
Name Description
var string[]
Returns
Type Description
$this

getDescription

Optional. Describes this trace scope.

The maximum length of the description is 8000 characters.

Returns
Type Description
string

setDescription

Optional. Describes this trace scope.

The maximum length of the description is 8000 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The creation timestamp of the trace scope.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation timestamp of the trace scope.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. The last update timestamp of the trace scope.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last update timestamp of the trace scope.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this