Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse

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

The response for querying metrics.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse.



9262
9263
9264
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 9262

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

Instance Attribute Details

#locationString

Required. The location of the data. "projects/project/locations/location" Corresponds to the JSON property location

Returns:

  • (String)


9237
9238
9239
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 9237

def location
  @location
end

#macro_average_sliceGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice

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] Corresponds to the JSON property macroAverageSlice



9248
9249
9250
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 9248

def macro_average_slice
  @macro_average_slice
end

#slicesArray<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice>

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. Corresponds to the JSON property slices



9255
9256
9257
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 9255

def slices
  @slices
end

#update_timeString

The metrics last update time. Corresponds to the JSON property updateTime

Returns:

  • (String)


9260
9261
9262
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 9260

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9267
9268
9269
9270
9271
9272
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 9267

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @macro_average_slice = args[:macro_average_slice] if args.key?(:macro_average_slice)
  @slices = args[:slices] if args.key?(:slices)
  @update_time = args[:update_time] if args.key?(:update_time)
end