Service describing handlers for resources.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
ObservabilityClient(ObservabilityClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ObservabilityClient const &
|
ObservabilityClient(ObservabilityClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ObservabilityClient &&
|
ObservabilityClient(std::shared_ptr< ObservabilityConnection >, Options)
| Parameters | |
|---|---|
| Name | Description |
connection |
std::shared_ptr< ObservabilityConnection >
|
opts |
Options
|
Operators
operator=(ObservabilityClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ObservabilityClient const &
|
| Returns | |
|---|---|
| Type | Description |
ObservabilityClient & |
|
operator=(ObservabilityClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ObservabilityClient &&
|
| Returns | |
|---|---|
| Type | Description |
ObservabilityClient & |
|
Functions
GetScope(std::string const &, Options)
Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the resource. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Scope > |
the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetScope(google::cloud::observability::v1::GetScopeRequest const &, Options)
Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::GetScopeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Scope > |
the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateScope(google::cloud::observability::v1::Scope const &, google::protobuf::FieldMask const &, Options)
Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
scope |
google::cloud::observability::v1::Scope const &
Required. The resource being updated. |
update_mask |
google::protobuf::FieldMask const &
Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Scope > |
the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateScope(google::cloud::observability::v1::UpdateScopeRequest const &, Options)
Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::UpdateScopeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Scope > |
the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetBucket(std::string const &, Options)
Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the bucket to retrieve. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Bucket > |
the result of the RPC. The response message type (google.cloud.observability.v1.Bucket) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetBucket(google::cloud::observability::v1::GetBucketRequest const &, Options)
Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::GetBucketRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Bucket > |
the result of the RPC. The response message type (google.cloud.observability.v1.Bucket) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListBuckets(std::string const &, Options)
List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent, which owns this collection of buckets. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::Bucket > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListBuckets(google::cloud::observability::v1::ListBucketsRequest, Options)
List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::ListBucketsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::Bucket > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateBucket(std::string const &, google::cloud::observability::v1::Bucket const &, std::string const &, Options)
Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Name of the project and location for the bucket. The format is: |
bucket |
google::cloud::observability::v1::Bucket const &
Required. Bucket to create. |
bucket_id |
std::string const &
Required. Id of the bucket to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Bucket > > |
A |
CreateBucket(NoAwaitTag, std::string const &, google::cloud::observability::v1::Bucket const &, std::string const &, Options)
Create a new bucket.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
bucket |
google::cloud::observability::v1::Bucket const &
|
bucket_id |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateBucket(google::cloud::observability::v1::CreateBucketRequest const &, Options)
Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::CreateBucketRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Bucket > > |
A |
CreateBucket(NoAwaitTag, google::cloud::observability::v1::CreateBucketRequest const &, Options)
Create a new bucket.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::observability::v1::CreateBucketRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateBucket(google::longrunning::Operation const &, Options)
Create a new bucket.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Bucket > > |
|
UpdateBucket(google::cloud::observability::v1::Bucket const &, google::protobuf::FieldMask const &, Options)
Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
bucket |
google::cloud::observability::v1::Bucket const &
Required. The bucket to update. |
update_mask |
google::protobuf::FieldMask const &
Optional. The list of fields to update. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Bucket > > |
A |
UpdateBucket(NoAwaitTag, google::cloud::observability::v1::Bucket const &, google::protobuf::FieldMask const &, Options)
Update a bucket.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
bucket |
google::cloud::observability::v1::Bucket const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateBucket(google::cloud::observability::v1::UpdateBucketRequest const &, Options)
Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::UpdateBucketRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Bucket > > |
A |
UpdateBucket(NoAwaitTag, google::cloud::observability::v1::UpdateBucketRequest const &, Options)
Update a bucket.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::observability::v1::UpdateBucketRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateBucket(google::longrunning::Operation const &, Options)
Update a bucket.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Bucket > > |
|
GetDataset(std::string const &, Options)
Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the dataset to retrieve. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Dataset > |
the result of the RPC. The response message type (google.cloud.observability.v1.Dataset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetDataset(google::cloud::observability::v1::GetDatasetRequest const &, Options)
Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::GetDatasetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Dataset > |
the result of the RPC. The response message type (google.cloud.observability.v1.Dataset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListDatasets(std::string const &, Options)
List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent bucket that owns this collection of datasets. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::Dataset > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListDatasets(google::cloud::observability::v1::ListDatasetsRequest, Options)
List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::ListDatasetsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::Dataset > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetView(std::string const &, Options)
Get a view.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the view to retrieve. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::View > |
the result of the RPC. The response message type (google.cloud.observability.v1.View) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetView(google::cloud::observability::v1::GetViewRequest const &, Options)
Get a view.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::GetViewRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::View > |
the result of the RPC. The response message type (google.cloud.observability.v1.View) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListViews(std::string const &, Options)
List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Dataset whose views are to be listed. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::View > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListViews(google::cloud::observability::v1::ListViewsRequest, Options)
List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::ListViewsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::View > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetLink(std::string const &, Options)
Get a link.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the link to retrieve. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Link > |
the result of the RPC. The response message type (google.cloud.observability.v1.Link) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetLink(google::cloud::observability::v1::GetLinkRequest const &, Options)
Get a link.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::GetLinkRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Link > |
the result of the RPC. The response message type (google.cloud.observability.v1.Link) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListLinks(std::string const &, Options)
List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent dataset that owns this collection of links. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::Link > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListLinks(google::cloud::observability::v1::ListLinksRequest, Options)
List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::ListLinksRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::Link > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateLink(std::string const &, google::cloud::observability::v1::Link const &, std::string const &, Options)
Create a new link.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Name of the containing dataset for this link. The format is: |
link |
google::cloud::observability::v1::Link const &
Required. Link to create. |
link_id |
std::string const &
Required. Id of the link to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Link > > |
A |
CreateLink(NoAwaitTag, std::string const &, google::cloud::observability::v1::Link const &, std::string const &, Options)
Create a new link.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
link |
google::cloud::observability::v1::Link const &
|
link_id |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateLink(google::cloud::observability::v1::CreateLinkRequest const &, Options)
Create a new link.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::CreateLinkRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Link > > |
A |
CreateLink(NoAwaitTag, google::cloud::observability::v1::CreateLinkRequest const &, Options)
Create a new link.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::observability::v1::CreateLinkRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateLink(google::longrunning::Operation const &, Options)
Create a new link.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Link > > |
|
UpdateLink(google::cloud::observability::v1::Link const &, google::protobuf::FieldMask const &, Options)
Update a link.
| Parameters | |
|---|---|
| Name | Description |
link |
google::cloud::observability::v1::Link const &
Required. Link to update. |
update_mask |
google::protobuf::FieldMask const &
Optional. The list of fields to update. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Link > > |
A |
UpdateLink(NoAwaitTag, google::cloud::observability::v1::Link const &, google::protobuf::FieldMask const &, Options)
Update a link.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
link |
google::cloud::observability::v1::Link const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateLink(google::cloud::observability::v1::UpdateLinkRequest const &, Options)
Update a link.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::UpdateLinkRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Link > > |
A |
UpdateLink(NoAwaitTag, google::cloud::observability::v1::UpdateLinkRequest const &, Options)
Update a link.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::observability::v1::UpdateLinkRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateLink(google::longrunning::Operation const &, Options)
Update a link.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Link > > |
|
DeleteLink(std::string const &, Options)
Delete a link.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the link to delete. The format is: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::OperationMetadata > > |
A |
DeleteLink(NoAwaitTag, std::string const &, Options)
Delete a link.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteLink(google::cloud::observability::v1::DeleteLinkRequest const &, Options)
Delete a link.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::DeleteLinkRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::OperationMetadata > > |
A |
DeleteLink(NoAwaitTag, google::cloud::observability::v1::DeleteLinkRequest const &, Options)
Delete a link.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::observability::v1::DeleteLinkRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteLink(google::longrunning::Operation const &, Options)
Delete a link.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::OperationMetadata > > |
|
GetTraceScope(std::string const &, Options)
Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The resource name of the trace scope: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::TraceScope > |
the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTraceScope(google::cloud::observability::v1::GetTraceScopeRequest const &, Options)
Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::GetTraceScopeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::TraceScope > |
the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListTraceScopes(std::string const &, Options)
List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The full resource name of the location to look for trace scopes: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::TraceScope > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListTraceScopes(google::cloud::observability::v1::ListTraceScopesRequest, Options)
List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::ListTraceScopesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::observability::v1::TraceScope > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateTraceScope(std::string const &, google::cloud::observability::v1::TraceScope const &, std::string const &, Options)
Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The full resource name of the location where the trace scope should be created |
trace_scope |
google::cloud::observability::v1::TraceScope const &
Required. The new trace scope. |
trace_scope_id |
std::string const &
Required. A client-assigned identifier for the trace scope. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::TraceScope > |
the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateTraceScope(google::cloud::observability::v1::CreateTraceScopeRequest const &, Options)
Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::CreateTraceScopeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::TraceScope > |
the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateTraceScope(google::cloud::observability::v1::TraceScope const &, google::protobuf::FieldMask const &, Options)
Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
trace_scope |
google::cloud::observability::v1::TraceScope const &
Required. The updated trace scope. |
update_mask |
google::protobuf::FieldMask const &
Optional. The list of fields to update. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::TraceScope > |
the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateTraceScope(google::cloud::observability::v1::UpdateTraceScopeRequest const &, Options)
Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::UpdateTraceScopeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::TraceScope > |
the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteTraceScope(std::string const &, Options)
Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The full resource name of the trace scope to delete: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteTraceScope(google::cloud::observability::v1::DeleteTraceScopeRequest const &, Options)
Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::DeleteTraceScopeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
GetSettings(std::string const &, Options)
Get Settings.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the settings to retrieve. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Settings > |
the result of the RPC. The response message type (google.cloud.observability.v1.Settings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSettings(google::cloud::observability::v1::GetSettingsRequest const &, Options)
Get Settings.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::GetSettingsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::observability::v1::Settings > |
the result of the RPC. The response message type (google.cloud.observability.v1.Settings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateSettings(google::cloud::observability::v1::Settings const &, google::protobuf::FieldMask const &, Options)
Update Settings.
| Parameters | |
|---|---|
| Name | Description |
settings |
google::cloud::observability::v1::Settings const &
Required. The settings to update. |
update_mask |
google::protobuf::FieldMask const &
Optional. The field mask specifying which fields of the settings are to be updated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Settings > > |
A |
UpdateSettings(NoAwaitTag, google::cloud::observability::v1::Settings const &, google::protobuf::FieldMask const &, Options)
Update Settings.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
settings |
google::cloud::observability::v1::Settings const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateSettings(google::cloud::observability::v1::UpdateSettingsRequest const &, Options)
Update Settings.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::observability::v1::UpdateSettingsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Settings > > |
A |
UpdateSettings(NoAwaitTag, google::cloud::observability::v1::UpdateSettingsRequest const &, Options)
Update Settings.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::observability::v1::UpdateSettingsRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateSettings(google::longrunning::Operation const &, Options)
Update Settings.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::observability::v1::Settings > > |
|
ListLocations(google::cloud::location::ListLocationsRequest, Options)
Lists information about the supported locations for this service.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::ListLocationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::location::Location > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetLocation(google::cloud::location::GetLocationRequest const &, Options)
Gets information about a location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::GetLocationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::location::Location > |
the result of the RPC. The response message type (google.cloud.location.Location) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListOperations(std::string const &, std::string const &, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation's parent resource. |
filter |
std::string const &
The standard list filter. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOperations(google::longrunning::ListOperationsRequest, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::ListOperationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetOperation(std::string const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOperation(google::longrunning::GetOperationRequest const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::GetOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteOperation(std::string const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be deleted. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::DeleteOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
CancelOperation(std::string const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be cancelled. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::CancelOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |