Request service health events relevant to your Google Cloud project.
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
ServiceHealthClient(ServiceHealthClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ServiceHealthClient const &
|
ServiceHealthClient(ServiceHealthClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ServiceHealthClient &&
|
ServiceHealthClient(std::shared_ptr< ServiceHealthConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< ServiceHealthConnection >
|
opts |
Options
|
Operators
operator=(ServiceHealthClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ServiceHealthClient const &
|
Returns | |
---|---|
Type | Description |
ServiceHealthClient & |
operator=(ServiceHealthClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ServiceHealthClient &&
|
Returns | |
---|---|
Type | Description |
ServiceHealthClient & |
Functions
ListEvents(std::string const &, Options)
Lists events under a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Parent value using the form |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::servicehealth::v1::Event > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListEvents(google::cloud::servicehealth::v1::ListEventsRequest, Options)
Lists events under a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::servicehealth::v1::ListEventsRequest
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::servicehealth::v1::Event > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetEvent(std::string const &, Options)
Retrieves a resource containing information about an event.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Unique name of the event in this scope including project and location using the form |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::servicehealth::v1::Event > | the result of the RPC. The response message type (google.cloud.servicehealth.v1.Event) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetEvent(google::cloud::servicehealth::v1::GetEventRequest const &, Options)
Retrieves a resource containing information about an event.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::servicehealth::v1::GetEventRequest 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::servicehealth::v1::Event > | the result of the RPC. The response message type (google.cloud.servicehealth.v1.Event) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListOrganizationEvents(std::string const &, Options)
Lists organization events under a given organization and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Parent value using the form |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::servicehealth::v1::OrganizationEvent > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOrganizationEvents(google::cloud::servicehealth::v1::ListOrganizationEventsRequest, Options)
Lists organization events under a given organization and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::servicehealth::v1::ListOrganizationEventsRequest
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::servicehealth::v1::OrganizationEvent > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetOrganizationEvent(std::string const &, Options)
Retrieves a resource containing information about an event affecting an organization .
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Unique name of the event in this scope including organization and event ID using the form |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::servicehealth::v1::OrganizationEvent > | the result of the RPC. The response message type (google.cloud.servicehealth.v1.OrganizationEvent) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOrganizationEvent(google::cloud::servicehealth::v1::GetOrganizationEventRequest const &, Options)
Retrieves a resource containing information about an event affecting an organization .
Parameters | |
---|---|
Name | Description |
request |
google::cloud::servicehealth::v1::GetOrganizationEventRequest 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::servicehealth::v1::OrganizationEvent > | the result of the RPC. The response message type (google.cloud.servicehealth.v1.OrganizationEvent) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListOrganizationImpacts(std::string const &, Options)
Lists assets impacted by organization events under a given organization and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Parent value using the form |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::servicehealth::v1::OrganizationImpact > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOrganizationImpacts(google::cloud::servicehealth::v1::ListOrganizationImpactsRequest, Options)
Lists assets impacted by organization events under a given organization and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::servicehealth::v1::ListOrganizationImpactsRequest
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::servicehealth::v1::OrganizationImpact > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetOrganizationImpact(std::string const &, Options)
Retrieves a resource containing information about impact to an asset under an organization affected by a service health event.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the resource using the form |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::servicehealth::v1::OrganizationImpact > | the result of the RPC. The response message type (google.cloud.servicehealth.v1.OrganizationImpact) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOrganizationImpact(google::cloud::servicehealth::v1::GetOrganizationImpactRequest const &, Options)
Retrieves a resource containing information about impact to an asset under an organization affected by a service health event.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::servicehealth::v1::GetOrganizationImpactRequest 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::servicehealth::v1::OrganizationImpact > | the result of the RPC. The response message type (google.cloud.servicehealth.v1.OrganizationImpact) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |