Class DashboardsServiceConnection (2.23.0)

This interface defines virtual methods for each of the user-facing overload sets in DashboardsServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DashboardsServiceClient.

To create a concrete instance, see MakeDashboardsServiceConnection().

For mocking, see monitoring_dashboard_v1_mocks::MockDashboardsServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateDashboard(google::monitoring::dashboard::v1::CreateDashboardRequest const &)

Parameter
Name Description
request google::monitoring::dashboard::v1::CreateDashboardRequest const &
Returns
Type Description
StatusOr< google::monitoring::dashboard::v1::Dashboard >

virtual ListDashboards(google::monitoring::dashboard::v1::ListDashboardsRequest)

Parameter
Name Description
request google::monitoring::dashboard::v1::ListDashboardsRequest
Returns
Type Description
StreamRange< google::monitoring::dashboard::v1::Dashboard >

virtual GetDashboard(google::monitoring::dashboard::v1::GetDashboardRequest const &)

Parameter
Name Description
request google::monitoring::dashboard::v1::GetDashboardRequest const &
Returns
Type Description
StatusOr< google::monitoring::dashboard::v1::Dashboard >

virtual DeleteDashboard(google::monitoring::dashboard::v1::DeleteDashboardRequest const &)

Parameter
Name Description
request google::monitoring::dashboard::v1::DeleteDashboardRequest const &
Returns
Type Description
Status

virtual UpdateDashboard(google::monitoring::dashboard::v1::UpdateDashboardRequest const &)

Parameter
Name Description
request google::monitoring::dashboard::v1::UpdateDashboardRequest const &
Returns
Type Description
StatusOr< google::monitoring::dashboard::v1::Dashboard >