Google Cloud Observability V1 Client - Class GetTraceScopeRequest (0.1.0)

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

Request for getting a TraceScope.

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

Namespace

Google \ Cloud \ Observability \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope

getName

Required. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope

Returns
Type Description
string

setName

Required. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameter
Name Description
name string

Required. The resource name of the trace scope:

projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID]

For example:

projects/my-project/locations/global/traceScopes/my-trace-scope Please see ObservabilityClient::traceScopeName() for help formatting this field.

Returns
Type Description
GetTraceScopeRequest