| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="contactcenterinsights_v1.html">Contact Center AI Insights API</a> . <a href="contactcenterinsights_v1.projects.html">projects</a> . <a href="contactcenterinsights_v1.projects.locations.html">locations</a> . <a href="contactcenterinsights_v1.projects.locations.authorizedViewSet.html">authorizedViewSet</a> . <a href="contactcenterinsights_v1.projects.locations.authorizedViewSet.authorizedView.html">authorizedView</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#calculateStats">calculateStats(location, filter=None, x__xgafv=None)</a></code></p> |
| 79 |
<p class="firstline">Gets conversation statistics.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#close">close()</a></code></p> |
| 82 |
<p class="firstline">Close httplib2 connections.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#queryMetrics">queryMetrics(location, body=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Query metrics.</p> |
| 86 |
<h3>Method Details</h3> |
| 87 |
<div class="method"> |
| 88 |
<code class="details" id="calculateStats">calculateStats(location, filter=None, x__xgafv=None)</code> |
| 89 |
<pre>Gets conversation statistics. |
| 90 |
|
| 91 |
Args: |
| 92 |
location: string, Required. The location of the conversations. (required) |
| 93 |
filter: string, A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties. |
| 94 |
x__xgafv: string, V1 error format. |
| 95 |
Allowed values |
| 96 |
1 - v1 error format |
| 97 |
2 - v2 error format |
| 98 |
|
| 99 |
Returns: |
| 100 |
An object of the form: |
| 101 |
|
| 102 |
{ # The response for calculating conversation statistics. |
| 103 |
"averageDuration": "A String", # The average duration of all conversations. The average is calculated using only conversations that have a time duration. |
| 104 |
"averageTurnCount": 42, # The average number of turns per conversation. |
| 105 |
"conversationCount": 42, # The total number of conversations. |
| 106 |
"conversationCountTimeSeries": { # A time series representing conversations over time. # A time series representing the count of conversations created over time that match that requested filter criteria. |
| 107 |
"intervalDuration": "A String", # The duration of each interval. |
| 108 |
"points": [ # An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window. |
| 109 |
{ # A single interval in a time series. |
| 110 |
"conversationCount": 42, # The number of conversations created in this interval. |
| 111 |
"startTime": "A String", # The start time of this interval. |
| 112 |
}, |
| 113 |
], |
| 114 |
}, |
| 115 |
"customHighlighterMatches": { # A map associating each custom highlighter resource name with its respective number of matches in the set of conversations. |
| 116 |
"a_key": 42, |
| 117 |
}, |
| 118 |
"issueMatches": { # A map associating each issue resource name with its respective number of matches in the set of conversations. Key has the format: `projects//locations//issueModels//issues/` Deprecated, use `issue_matches_stats` field instead. |
| 119 |
"a_key": 42, |
| 120 |
}, |
| 121 |
"issueMatchesStats": { # A map associating each issue resource name with its respective number of matches in the set of conversations. Key has the format: `projects//locations//issueModels//issues/` |
| 122 |
"a_key": { # Aggregated statistics about an issue. |
| 123 |
"displayName": "A String", # Display name of the issue. |
| 124 |
"issue": "A String", # Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} |
| 125 |
"labeledConversationsCount": "A String", # Number of conversations attached to the issue at this point in time. |
| 126 |
}, |
| 127 |
}, |
| 128 |
"smartHighlighterMatches": { # A map associating each smart highlighter display name with its respective number of matches in the set of conversations. |
| 129 |
"a_key": 42, |
| 130 |
}, |
| 131 |
}</pre> |
| 132 |
</div> |
| 133 |
|
| 134 |
<div class="method"> |
| 135 |
<code class="details" id="close">close()</code> |
| 136 |
<pre>Close httplib2 connections.</pre> |
| 137 |
</div> |
| 138 |
|
| 139 |
<div class="method"> |
| 140 |
<code class="details" id="queryMetrics">queryMetrics(location, body=None, x__xgafv=None)</code> |
| 141 |
<pre>Query metrics. |
| 142 |
|
| 143 |
Args: |
| 144 |
location: string, Required. The location of the data. "projects/{project}/locations/{location}" (required) |
| 145 |
body: object, The request body. |
| 146 |
The object takes the form of: |
| 147 |
|
| 148 |
{ # The request for querying metrics. |
| 149 |
"dimensions": [ # The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now. |
| 150 |
{ # A dimension determines the grouping key for the query. In SQL terms, these would be part of both the "SELECT" and "GROUP BY" clauses. |
| 151 |
"agentDimensionMetadata": { # Metadata about the agent dimension. # Output only. Metadata about the agent dimension. |
| 152 |
"agentDisplayName": "A String", # Optional. The agent's name |
| 153 |
"agentId": "A String", # Optional. A user-specified string representing the agent. |
| 154 |
"agentTeam": "A String", # Optional. A user-specified string representing the agent's team. |
| 155 |
}, |
| 156 |
"dimensionKey": "A String", # The key of the dimension. |
| 157 |
"issueDimensionMetadata": { # Metadata about the issue dimension. # Output only. Metadata about the issue dimension. |
| 158 |
"issueDisplayName": "A String", # The issue display name. |
| 159 |
"issueId": "A String", # The issue ID. |
| 160 |
"issueModelId": "A String", # The parent issue model ID. |
| 161 |
}, |
| 162 |
"qaQuestionAnswerDimensionMetadata": { # Metadata about the QA question-answer dimension. This is useful for showing the answer distribution for questions for a given scorecard. # Output only. Metadata about the QA question-answer dimension. |
| 163 |
"answerValue": "A String", # Optional. The full body of the question. |
| 164 |
"qaQuestionId": "A String", # Optional. The QA question ID. |
| 165 |
"qaScorecardId": "A String", # Optional. The QA scorecard ID. |
| 166 |
"questionBody": "A String", # Optional. The full body of the question. |
| 167 |
}, |
| 168 |
"qaQuestionDimensionMetadata": { # Metadata about the QA question dimension. # Output only. Metadata about the QA question dimension. |
| 169 |
"qaQuestionId": "A String", # Optional. The QA question ID. |
| 170 |
"qaScorecardId": "A String", # Optional. The QA scorecard ID. |
| 171 |
"questionBody": "A String", # Optional. The full body of the question. |
| 172 |
}, |
| 173 |
}, |
| 174 |
], |
| 175 |
"filter": "A String", # Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)). |
| 176 |
"measureMask": "A String", # Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count". |
| 177 |
"timeGranularity": "A String", # The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified. |
| 178 |
} |
| 179 |
|
| 180 |
x__xgafv: string, V1 error format. |
| 181 |
Allowed values |
| 182 |
1 - v1 error format |
| 183 |
2 - v2 error format |
| 184 |
|
| 185 |
Returns: |
| 186 |
An object of the form: |
| 187 |
|
| 188 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 189 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 190 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 191 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 192 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 193 |
{ |
| 194 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 195 |
}, |
| 196 |
], |
| 197 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 198 |
}, |
| 199 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 200 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 201 |
}, |
| 202 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 203 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 204 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 205 |
}, |
| 206 |
}</pre> |
| 207 |
</div> |
| 208 |
|
| 209 |
</body></html> |