Class DashboardsServiceConnection (2.16.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
TypeDescription
Options

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

Parameter
NameDescription
request google::monitoring::dashboard::v1::CreateDashboardRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::dashboard::v1::Dashboard >

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

Parameter
NameDescription
request google::monitoring::dashboard::v1::ListDashboardsRequest
Returns
TypeDescription
StreamRange< google::monitoring::dashboard::v1::Dashboard >

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

Parameter
NameDescription
request google::monitoring::dashboard::v1::GetDashboardRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::dashboard::v1::Dashboard >

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

Parameter
NameDescription
request google::monitoring::dashboard::v1::DeleteDashboardRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::monitoring::dashboard::v1::UpdateDashboardRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::dashboard::v1::Dashboard >