Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice

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

A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request. For example, if the request specifies a single ISSUE dimension and it has a cardinality of 2 (i.e. the data used to compute the metrics has 2 issues in total), the response will have 2 slices: * Slice 1 -> dimensions=[Issue 1] * Slice 2 -> dimensions=[ Issue 2]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice

Returns a new instance of GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice.



4788
4789
4790
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4788

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

Instance Attribute Details

#dimensionsArray<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Dimension>

A unique combination of dimensions that this slice represents. Corresponds to the JSON property dimensions



4776
4777
4778
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4776

def dimensions
  @dimensions
end

#time_seriesGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries

A time series of metric values. Corresponds to the JSON property timeSeries



4781
4782
4783
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4781

def time_series
  @time_series
end

#totalGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint

A data point contains the metric values mapped to an interval. Corresponds to the JSON property total



4786
4787
4788
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4786

def total
  @total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4793
4794
4795
4796
4797
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4793

def update!(**args)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @time_series = args[:time_series] if args.key?(:time_series)
  @total = args[:total] if args.key?(:total)
end