Class: Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.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]

Defined Under Namespace

Classes: DataPoint, TimeSeries

Instance Attribute Summary collapse

Instance Attribute Details

#dimensions::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>

Returns A unique combination of dimensions that this slice represents.

Returns:



1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb', line 1597

class Slice
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A data point contains the metric values mapped to an interval.
  # @!attribute [rw] conversation_measure
  #   @return [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint::ConversationMeasure]
  #     The measure related to conversations.
  # @!attribute [rw] interval
  #   @return [::Google::Type::Interval]
  #     The interval that this data point represents.
  #
  #     * If this is the total data point, the interval is
  #     [starting create time, ending create time) from the request.
  #     * If this a data point from the time series, the interval is
  #     [time, time + time granularity from the request).
  class DataPoint
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The measure related to conversations.
    # @!attribute [rw] conversation_count
    #   @return [::Integer]
    #     The conversation count.
    # @!attribute [rw] average_silence_percentage
    #   @return [::Float]
    #     The average silence percentage.
    # @!attribute [rw] average_duration
    #   @return [::Google::Protobuf::Duration]
    #     The average duration.
    # @!attribute [rw] average_turn_count
    #   @return [::Float]
    #     The average turn count.
    # @!attribute [rw] average_agent_sentiment_score
    #   @return [::Float]
    #     The average agent's sentiment score.
    # @!attribute [rw] average_client_sentiment_score
    #   @return [::Float]
    #     The average client's sentiment score.
    # @!attribute [rw] average_customer_satisfaction_rating
    #   @return [::Float]
    #     The average customer satisfaction rating.
    # @!attribute [rw] average_qa_normalized_score
    #   @return [::Float]
    #     Average QA normalized score.
    #     Will exclude 0's in average calculation.
    # @!attribute [rw] qa_tag_scores
    #   @return [::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint::ConversationMeasure::QaTagScore>]
    #     Average QA normalized score for all the tags.
    # @!attribute [rw] average_qa_question_normalized_score
    #   @return [::Float]
    #     Average QA normalized score averaged for questions averaged across
    #     all revisions of the parent scorecard.
    #     Will be only populated if the request specifies a dimension of
    #     QA_QUESTION_ID.
    class ConversationMeasure
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Average QA normalized score for the tag.
      # @!attribute [rw] tag
      #   @return [::String]
      #     Tag name.
      # @!attribute [rw] average_tag_normalized_score
      #   @return [::Float]
      #     Average tag normalized score per tag.
      class QaTagScore
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  end

  # A time series of metric values.
  # @!attribute [rw] data_points
  #   @return [::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint>]
  #     The data points that make up the time series .
  class TimeSeries
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#time_series::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::TimeSeries

Returns A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

Returns:



1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb', line 1597

class Slice
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A data point contains the metric values mapped to an interval.
  # @!attribute [rw] conversation_measure
  #   @return [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint::ConversationMeasure]
  #     The measure related to conversations.
  # @!attribute [rw] interval
  #   @return [::Google::Type::Interval]
  #     The interval that this data point represents.
  #
  #     * If this is the total data point, the interval is
  #     [starting create time, ending create time) from the request.
  #     * If this a data point from the time series, the interval is
  #     [time, time + time granularity from the request).
  class DataPoint
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The measure related to conversations.
    # @!attribute [rw] conversation_count
    #   @return [::Integer]
    #     The conversation count.
    # @!attribute [rw] average_silence_percentage
    #   @return [::Float]
    #     The average silence percentage.
    # @!attribute [rw] average_duration
    #   @return [::Google::Protobuf::Duration]
    #     The average duration.
    # @!attribute [rw] average_turn_count
    #   @return [::Float]
    #     The average turn count.
    # @!attribute [rw] average_agent_sentiment_score
    #   @return [::Float]
    #     The average agent's sentiment score.
    # @!attribute [rw] average_client_sentiment_score
    #   @return [::Float]
    #     The average client's sentiment score.
    # @!attribute [rw] average_customer_satisfaction_rating
    #   @return [::Float]
    #     The average customer satisfaction rating.
    # @!attribute [rw] average_qa_normalized_score
    #   @return [::Float]
    #     Average QA normalized score.
    #     Will exclude 0's in average calculation.
    # @!attribute [rw] qa_tag_scores
    #   @return [::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint::ConversationMeasure::QaTagScore>]
    #     Average QA normalized score for all the tags.
    # @!attribute [rw] average_qa_question_normalized_score
    #   @return [::Float]
    #     Average QA normalized score averaged for questions averaged across
    #     all revisions of the parent scorecard.
    #     Will be only populated if the request specifies a dimension of
    #     QA_QUESTION_ID.
    class ConversationMeasure
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Average QA normalized score for the tag.
      # @!attribute [rw] tag
      #   @return [::String]
      #     Tag name.
      # @!attribute [rw] average_tag_normalized_score
      #   @return [::Float]
      #     Average tag normalized score per tag.
      class QaTagScore
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  end

  # A time series of metric values.
  # @!attribute [rw] data_points
  #   @return [::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint>]
  #     The data points that make up the time series .
  class TimeSeries
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#total::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint

Returns The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

Returns:



1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb', line 1597

class Slice
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A data point contains the metric values mapped to an interval.
  # @!attribute [rw] conversation_measure
  #   @return [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint::ConversationMeasure]
  #     The measure related to conversations.
  # @!attribute [rw] interval
  #   @return [::Google::Type::Interval]
  #     The interval that this data point represents.
  #
  #     * If this is the total data point, the interval is
  #     [starting create time, ending create time) from the request.
  #     * If this a data point from the time series, the interval is
  #     [time, time + time granularity from the request).
  class DataPoint
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The measure related to conversations.
    # @!attribute [rw] conversation_count
    #   @return [::Integer]
    #     The conversation count.
    # @!attribute [rw] average_silence_percentage
    #   @return [::Float]
    #     The average silence percentage.
    # @!attribute [rw] average_duration
    #   @return [::Google::Protobuf::Duration]
    #     The average duration.
    # @!attribute [rw] average_turn_count
    #   @return [::Float]
    #     The average turn count.
    # @!attribute [rw] average_agent_sentiment_score
    #   @return [::Float]
    #     The average agent's sentiment score.
    # @!attribute [rw] average_client_sentiment_score
    #   @return [::Float]
    #     The average client's sentiment score.
    # @!attribute [rw] average_customer_satisfaction_rating
    #   @return [::Float]
    #     The average customer satisfaction rating.
    # @!attribute [rw] average_qa_normalized_score
    #   @return [::Float]
    #     Average QA normalized score.
    #     Will exclude 0's in average calculation.
    # @!attribute [rw] qa_tag_scores
    #   @return [::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint::ConversationMeasure::QaTagScore>]
    #     Average QA normalized score for all the tags.
    # @!attribute [rw] average_qa_question_normalized_score
    #   @return [::Float]
    #     Average QA normalized score averaged for questions averaged across
    #     all revisions of the parent scorecard.
    #     Will be only populated if the request specifies a dimension of
    #     QA_QUESTION_ID.
    class ConversationMeasure
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Average QA normalized score for the tag.
      # @!attribute [rw] tag
      #   @return [::String]
      #     Tag name.
      # @!attribute [rw] average_tag_normalized_score
      #   @return [::Float]
      #     Average tag normalized score per tag.
      class QaTagScore
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  end

  # A time series of metric values.
  # @!attribute [rw] data_points
  #   @return [::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint>]
  #     The data points that make up the time series .
  class TimeSeries
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end