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.



10190
10191
10192
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10190

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



10172
10173
10174
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10172

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)


10178
10179
10180
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10178

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



10183
10184
10185
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10183

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)


10188
10189
10190
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10188

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10195
10196
10197
10198
10199
10200
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10195

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