Reference documentation and code samples for the Google Cloud Observability V1 Client class Scope.
Message describing Scope object
Generated from protobuf message google.cloud.observability.v1.Scope
Namespace
Google \ Cloud \ Observability \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The |
↳ update_time |
Google\Protobuf\Timestamp
Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset. |
↳ log_scope |
string
Required. The full resource name of the |
↳ trace_scope |
string
Required. The unqualified resource name of the |
getName
Identifier. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must
be set to _Default.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must
be set to _Default.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. Update timestamp.
Note: The Update timestamp for the default scope is initially unset.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update timestamp.
Note: The Update timestamp for the default scope is initially unset.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLogScope
Required. The full resource name of the logging.googleapis.com/LogScope.
For example: //logging.googleapis.com/projects/myproject/locations/global/logScopes/my-log-scope
| Returns | |
|---|---|
| Type | Description |
string |
|
setLogScope
Required. The full resource name of the logging.googleapis.com/LogScope.
For example: //logging.googleapis.com/projects/myproject/locations/global/logScopes/my-log-scope
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTraceScope
Required. The unqualified resource name of the
cloudtrace.googleapis.com/TraceScope. For example:
projects/myproject/locations/global/traceScopes/my-trace-scope
| Returns | |
|---|---|
| Type | Description |
string |
|
setTraceScope
Required. The unqualified resource name of the
cloudtrace.googleapis.com/TraceScope. For example:
projects/myproject/locations/global/traceScopes/my-trace-scope
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|