Reference documentation and code samples for the Cloud Monitoring Dashboards V1 API class Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.
REST client for the DashboardsService service.
Manages Stackdriver dashboards. A dashboard is an arrangement of data display widgets in a specific layout.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the DashboardsService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all DashboardsService clients ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the DashboardsService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_dashboard
def create_dashboard(request, options = nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
def create_dashboard(parent: nil, dashboard: nil, validate_only: nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
Creates a new custom dashboard. For examples on how you can use this API to
create dashboards, see Managing dashboards by
API. This
method requires the monitoring.dashboards.create
permission on the
specified project. For more information about permissions, see Cloud
Identity and Access Management.
def create_dashboard(request, options = nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
create_dashboard
via a request object, either of type
CreateDashboardRequest or an equivalent Hash.
- request (::Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_dashboard(parent: nil, dashboard: nil, validate_only: nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
create_dashboard
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The project on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
The
[PROJECT_ID_OR_NUMBER]
must match the dashboard resource name. - dashboard (::Google::Cloud::Monitoring::Dashboard::V1::Dashboard, ::Hash) — Required. The initial dashboard specification.
- validate_only (::Boolean) — If set, validate the request and preview the review, but do not actually save it.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Monitoring::Dashboard::V1::Dashboard)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#delete_dashboard
def delete_dashboard(request, options = nil) -> ::Google::Protobuf::Empty
def delete_dashboard(name: nil) -> ::Google::Protobuf::Empty
Deletes an existing custom dashboard.
This method requires the monitoring.dashboards.delete
permission
on the specified dashboard. For more information, see
Cloud Identity and Access Management.
def delete_dashboard(request, options = nil) -> ::Google::Protobuf::Empty
delete_dashboard
via a request object, either of type
Google::Cloud::Monitoring::Dashboard::V1::DeleteDashboardRequest or an equivalent Hash.
- request (::Google::Cloud::Monitoring::Dashboard::V1::DeleteDashboardRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_dashboard(name: nil) -> ::Google::Protobuf::Empty
delete_dashboard
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The resource name of the Dashboard. The format is:
projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_dashboard
def get_dashboard(request, options = nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
def get_dashboard(name: nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
Fetches a specific dashboard.
This method requires the monitoring.dashboards.get
permission
on the specified dashboard. For more information, see
Cloud Identity and Access Management.
def get_dashboard(request, options = nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
get_dashboard
via a request object, either of type
GetDashboardRequest or an equivalent Hash.
- request (::Google::Cloud::Monitoring::Dashboard::V1::GetDashboardRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_dashboard(name: nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
get_dashboard
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The resource name of the Dashboard. The format is one of:
-
dashboards/[DASHBOARD_ID]
(for system dashboards) -
projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
(for custom dashboards).
-
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Monitoring::Dashboard::V1::Dashboard)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#initialize
def initialize() { |config| ... } -> Client
Create a new DashboardsService REST client object.
- (config) — Configure the DashboardsService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_dashboards
def list_dashboards(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>
def list_dashboards(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>
Lists the existing dashboards.
This method requires the monitoring.dashboards.list
permission
on the specified project. For more information, see
Cloud Identity and Access Management.
def list_dashboards(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>
list_dashboards
via a request object, either of type
ListDashboardsRequest or an equivalent Hash.
- request (::Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_dashboards(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>
list_dashboards
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. The scope of the dashboards to list. The format is:
projects/[PROJECT_ID_OR_NUMBER]
- page_size (::Integer) — A positive number that is the maximum number of results to return. If unspecified, a default of 1000 is used.
-
page_token (::String) — If this field is not empty then it must contain the
nextPageToken
value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_dashboard
def update_dashboard(request, options = nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
def update_dashboard(dashboard: nil, validate_only: nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
Replaces an existing custom dashboard with a new definition.
This method requires the monitoring.dashboards.update
permission
on the specified dashboard. For more information, see
Cloud Identity and Access Management.
def update_dashboard(request, options = nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
update_dashboard
via a request object, either of type
UpdateDashboardRequest or an equivalent Hash.
- request (::Google::Cloud::Monitoring::Dashboard::V1::UpdateDashboardRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_dashboard(dashboard: nil, validate_only: nil) -> ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
update_dashboard
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- dashboard (::Google::Cloud::Monitoring::Dashboard::V1::Dashboard, ::Hash) — Required. The dashboard that will replace the existing dashboard.
- validate_only (::Boolean) — If set, validate the request and preview the review, but do not actually save it.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Monitoring::Dashboard::V1::Dashboard)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.