Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Widget

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb

Overview

Represents a dashboard element, could be a nested Container or Chart.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1Widget

Returns a new instance of GoogleCloudContactcenterinsightsV1Widget.



10813
10814
10815
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10813

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#chartGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Chart

Configurable dashboard's widget that displays data as a chart. Corresponds to the JSON property chart



10795
10796
10797
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10795

def chart
  @chart
end

#chart_referenceString

A reference to a chart widget. Format: projects/project/locations/location/ dashboards/dashboard/charts/chart Corresponds to the JSON property chartReference

Returns:

  • (String)


10801
10802
10803
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10801

def chart_reference
  @chart_reference
end

#containerGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Container

Configurable dashboard's container. Container can contain multiple widgets. Corresponds to the JSON property container



10806
10807
10808
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10806

def container
  @container
end

#filterString

Filter applied to all charts in the container. Should support scope later. Corresponds to the JSON property filter

Returns:

  • (String)


10811
10812
10813
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10811

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10818
10819
10820
10821
10822
10823
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10818

def update!(**args)
  @chart = args[:chart] if args.key?(:chart)
  @chart_reference = args[:chart_reference] if args.key?(:chart_reference)
  @container = args[:container] if args.key?(:container)
  @filter = args[:filter] if args.key?(:filter)
end