Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::DashboardChartService::Client.
Client for the DashboardChartService service.
A service providing functionality for managing dashboards' charts.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the DashboardChartService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all DashboardChartService clients ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.configure do |config| config.timeout = 10.0 end
#batch_get_dashboard_charts
def batch_get_dashboard_charts(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponse
def batch_get_dashboard_charts(parent: nil, names: nil) -> ::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponseGet dashboard charts in batches.
def batch_get_dashboard_charts(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponsebatch_get_dashboard_charts via a request object, either of type
BatchGetDashboardChartsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsRequest, ::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 batch_get_dashboard_charts(parent: nil, names: nil) -> ::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponsebatch_get_dashboard_charts 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 parent resource shared by all dashboard charts being
retrieved. Format:
projects/{project}/locations/{location}/instances/{instance} If this is
set, the parent of all of the dashboard charts specified in
namesmust match this field. - names (::Array<::String>) — Required. The names of the dashboard charts to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::DashboardChartService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::BatchGetDashboardChartsRequest.new # Call the batch_get_dashboard_charts method. result = client.batch_get_dashboard_charts request # The returned object is of type Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponse. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the DashboardChartService 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)
#get_dashboard_chart
def get_dashboard_chart(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DashboardChart
def get_dashboard_chart(name: nil) -> ::Google::Cloud::Chronicle::V1::DashboardChartGet a dashboard chart.
def get_dashboard_chart(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DashboardChartget_dashboard_chart via a request object, either of type
GetDashboardChartRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetDashboardChartRequest, ::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_chart(name: nil) -> ::Google::Cloud::Chronicle::V1::DashboardChartget_dashboard_chart 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 name of the dashboardChart to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::DashboardChart)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::DashboardChartService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetDashboardChartRequest.new # Call the get_dashboard_chart method. result = client.get_dashboard_chart request # The returned object is of type Google::Cloud::Chronicle::V1::DashboardChart. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new DashboardChartService client object.
- (config) — Configure the DashboardChartService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.new do |config| config.timeout = 10.0 end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)