Reference documentation and code samples for the Google Cloud Observability V1 Client class CreateTraceScopeRequest.
Request for creating a TraceScope.
Generated from protobuf message google.cloud.observability.v1.CreateTraceScopeRequest
Namespace
Google \ Cloud \ Observability \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
↳ trace_scope_id |
string
Required. A client-assigned identifier for the trace scope. |
↳ trace_scope |
TraceScope
Required. The new trace scope. |
getParent
Required. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTraceScopeId
Required. A client-assigned identifier for the trace scope.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTraceScopeId
Required. A client-assigned identifier for the trace scope.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTraceScope
Required. The new trace scope.
| Returns | |
|---|---|
| Type | Description |
TraceScope|null |
|
hasTraceScope
clearTraceScope
setTraceScope
Required. The new trace scope.
| Parameter | |
|---|---|
| Name | Description |
var |
TraceScope
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global Please see ObservabilityClient::locationName() for help formatting this field. |
traceScope |
TraceScope
Required. The new trace scope. |
traceScopeId |
string
Required. A client-assigned identifier for the trace scope. |
| Returns | |
|---|---|
| Type | Description |
CreateTraceScopeRequest |
|