| 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.diagnostics.html">diagnostics</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Deletes a diagnostic.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Gets a diagnostic.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Lists diagnostics.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#list_next">list_next()</a></code></p> |
| 91 |
<p class="firstline">Retrieves the next page of results.</p> |
| 92 |
<h3>Method Details</h3> |
| 93 |
<div class="method"> |
| 94 |
<code class="details" id="close">close()</code> |
| 95 |
<pre>Close httplib2 connections.</pre> |
| 96 |
</div> |
| 97 |
|
| 98 |
<div class="method"> |
| 99 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 100 |
<pre>Deletes a diagnostic. |
| 101 |
|
| 102 |
Args: |
| 103 |
name: string, Required. The name of the diagnostic to delete. (required) |
| 104 |
x__xgafv: string, V1 error format. |
| 105 |
Allowed values |
| 106 |
1 - v1 error format |
| 107 |
2 - v2 error format |
| 108 |
|
| 109 |
Returns: |
| 110 |
An object of the form: |
| 111 |
|
| 112 |
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
| 113 |
}</pre> |
| 114 |
</div> |
| 115 |
|
| 116 |
<div class="method"> |
| 117 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 118 |
<pre>Gets a diagnostic. |
| 119 |
|
| 120 |
Args: |
| 121 |
name: string, Required. The name of the diagnostic to retrieve. (required) |
| 122 |
x__xgafv: string, V1 error format. |
| 123 |
Allowed values |
| 124 |
1 - v1 error format |
| 125 |
2 - v2 error format |
| 126 |
|
| 127 |
Returns: |
| 128 |
An object of the form: |
| 129 |
|
| 130 |
{ # The diagnostic resource. |
| 131 |
"analysisSummary": "A String", # Output only. The complete sequence of thoughts and actions taken by the agent. |
| 132 |
"conversationFilter": "A String", # Output only. The filter used to select the conversations that were included in the diagnostic. |
| 133 |
"createTime": "A String", # Output only. The time at which the diagnostic was created. |
| 134 |
"name": "A String", # Immutable. Identifier. The resource name of the diagnostic. |
| 135 |
"report": { # A diagnostic report containing aggregate metrics and intent breakdowns. # Output only. The report containing the findings of the diagnostic. |
| 136 |
"conversationSlices": { # Output only. A map of conversation slices used in the report. |
| 137 |
"a_key": { # Output only. A map of conversation slices used in the report. |
| 138 |
"conversationIds": [ # The list of conversation IDs that match this slice. |
| 139 |
"A String", |
| 140 |
], |
| 141 |
}, |
| 142 |
}, |
| 143 |
"intentStats": [ # Output only. Deprecated: Intent breakdowns are no longer used. |
| 144 |
{ # A breakdown of metrics grouped by intent. |
| 145 |
"conversationCount": 42, # Output only. The number of conversations associated with this intent. |
| 146 |
"intentDisplayName": "A String", # Output only. The display name of the intent. |
| 147 |
"intentId": "A String", # Output only. The unique identifier for the intent (from Discovery Engine). |
| 148 |
"lossPatterns": [ # Output only. A list of loss patterns identified for this intent. |
| 149 |
{ # A loss pattern of a virtual agent and suggested fixes. |
| 150 |
"conversationIds": [ # Output only. A list of conversation IDs that match this loss pattern. |
| 151 |
"A String", |
| 152 |
], |
| 153 |
"description": "A String", # Output only. A markdown description of the loss pattern. |
| 154 |
"displayName": "A String", # Output only. The display name of the loss pattern. |
| 155 |
"examples": "A String", # Output only. A markdown of loss pattern examples. |
| 156 |
"id": "A String", # Output only. The unique identifier for the loss pattern. |
| 157 |
"links": [ # Output only. A list of links to conversations or bot instructions. |
| 158 |
{ # A link to a conversation or bot instruction. |
| 159 |
"botInstructionLink": { # A link to a bot instruction. # A link to a bot instruction. |
| 160 |
"endLine": 42, # The exclusive end line number of the instructions. |
| 161 |
"startLine": 42, # The inclusive start line number of the instructions. |
| 162 |
"subagent": "A String", # The name of the subagent. |
| 163 |
}, |
| 164 |
"conversationLink": { # A link to a conversation. # A link to a conversation. |
| 165 |
"conversationId": "A String", # The conversation ID. |
| 166 |
}, |
| 167 |
"endByteIndex": 42, # The end byte index of the highlighted text (exclusive). |
| 168 |
"highlightedText": "A String", # The text that is highlighted. (populated for debugging purposes) |
| 169 |
"locationType": "A String", # The location type. |
| 170 |
"startByteIndex": 42, # The start byte index of the highlighted text (inclusive). |
| 171 |
}, |
| 172 |
], |
| 173 |
"percentage": 3.14, # Output only. The percentage of conversations that match this loss pattern. |
| 174 |
"suggestedFixes": "A String", # Output only. A markdown description of the suggested fixes. |
| 175 |
}, |
| 176 |
], |
| 177 |
"metrics": { # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 178 |
"a_key": { # Deprecated: MetricValue is no longer used for diagnostics. |
| 179 |
"conversations": [ # Output only. The list of conversation names that contributed to this metric (hits). Format: `projects/{project}/locations/{location}/conversations/{conversation}` |
| 180 |
"A String", |
| 181 |
], |
| 182 |
"displayName": "A String", # Output only. The user-visible name of the metric (e.g., "Containment Rate"). |
| 183 |
"hitCount": 42, # Output only. The number of positive matches (hits) for this metric. |
| 184 |
"metricType": "A String", # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 185 |
"sourceId": "A String", # Output only. The resource name of the underlying Insights primitive (e.g., Tag or QaQuestion) used to calculate this metric. |
| 186 |
"totalCount": 42, # Output only. The total number of items evaluated for this metric. |
| 187 |
"value": 3.14, # Output only. The calculated value of the metric (usually a ratio or rate 0.0 - 1.0). |
| 188 |
}, |
| 189 |
}, |
| 190 |
}, |
| 191 |
], |
| 192 |
"lossPatterns": [ # Output only. A list of loss patterns identified for the entire project/dataset. |
| 193 |
{ # A loss pattern of a virtual agent and suggested fixes. |
| 194 |
"conversationIds": [ # Output only. A list of conversation IDs that match this loss pattern. |
| 195 |
"A String", |
| 196 |
], |
| 197 |
"description": "A String", # Output only. A markdown description of the loss pattern. |
| 198 |
"displayName": "A String", # Output only. The display name of the loss pattern. |
| 199 |
"examples": "A String", # Output only. A markdown of loss pattern examples. |
| 200 |
"id": "A String", # Output only. The unique identifier for the loss pattern. |
| 201 |
"links": [ # Output only. A list of links to conversations or bot instructions. |
| 202 |
{ # A link to a conversation or bot instruction. |
| 203 |
"botInstructionLink": { # A link to a bot instruction. # A link to a bot instruction. |
| 204 |
"endLine": 42, # The exclusive end line number of the instructions. |
| 205 |
"startLine": 42, # The inclusive start line number of the instructions. |
| 206 |
"subagent": "A String", # The name of the subagent. |
| 207 |
}, |
| 208 |
"conversationLink": { # A link to a conversation. # A link to a conversation. |
| 209 |
"conversationId": "A String", # The conversation ID. |
| 210 |
}, |
| 211 |
"endByteIndex": 42, # The end byte index of the highlighted text (exclusive). |
| 212 |
"highlightedText": "A String", # The text that is highlighted. (populated for debugging purposes) |
| 213 |
"locationType": "A String", # The location type. |
| 214 |
"startByteIndex": 42, # The start byte index of the highlighted text (inclusive). |
| 215 |
}, |
| 216 |
], |
| 217 |
"percentage": 3.14, # Output only. The percentage of conversations that match this loss pattern. |
| 218 |
"suggestedFixes": "A String", # Output only. A markdown description of the suggested fixes. |
| 219 |
}, |
| 220 |
], |
| 221 |
"metrics": { # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 222 |
"a_key": { # Deprecated: MetricValue is no longer used for diagnostics. |
| 223 |
"conversations": [ # Output only. The list of conversation names that contributed to this metric (hits). Format: `projects/{project}/locations/{location}/conversations/{conversation}` |
| 224 |
"A String", |
| 225 |
], |
| 226 |
"displayName": "A String", # Output only. The user-visible name of the metric (e.g., "Containment Rate"). |
| 227 |
"hitCount": 42, # Output only. The number of positive matches (hits) for this metric. |
| 228 |
"metricType": "A String", # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 229 |
"sourceId": "A String", # Output only. The resource name of the underlying Insights primitive (e.g., Tag or QaQuestion) used to calculate this metric. |
| 230 |
"totalCount": 42, # Output only. The total number of items evaluated for this metric. |
| 231 |
"value": 3.14, # Output only. The calculated value of the metric (usually a ratio or rate 0.0 - 1.0). |
| 232 |
}, |
| 233 |
}, |
| 234 |
"report": "A String", # Output only. The final report in markdown format. |
| 235 |
}, |
| 236 |
}</pre> |
| 237 |
</div> |
| 238 |
|
| 239 |
<div class="method"> |
| 240 |
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 241 |
<pre>Lists diagnostics. |
| 242 |
|
| 243 |
Args: |
| 244 |
parent: string, Required. The parent resource of the diagnostics. (required) |
| 245 |
filter: string, Optional. A filter to apply to the list (e.g. `create_time > "2023-01-01T00:00:00Z"`). |
| 246 |
pageSize: integer, Optional. The maximum number of diagnostics to return. The service may return fewer than this value. If unspecified, at most 100 diagnostics will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| 247 |
pageToken: string, Optional. A page token, received from a previous `ListDiagnostics` call. Provide this to retrieve the subsequent page. |
| 248 |
x__xgafv: string, V1 error format. |
| 249 |
Allowed values |
| 250 |
1 - v1 error format |
| 251 |
2 - v2 error format |
| 252 |
|
| 253 |
Returns: |
| 254 |
An object of the form: |
| 255 |
|
| 256 |
{ # The response from a ListDiagnostics request. |
| 257 |
"diagnostics": [ # Optional. The diagnostics that match the request. |
| 258 |
{ # The diagnostic resource. |
| 259 |
"analysisSummary": "A String", # Output only. The complete sequence of thoughts and actions taken by the agent. |
| 260 |
"conversationFilter": "A String", # Output only. The filter used to select the conversations that were included in the diagnostic. |
| 261 |
"createTime": "A String", # Output only. The time at which the diagnostic was created. |
| 262 |
"name": "A String", # Immutable. Identifier. The resource name of the diagnostic. |
| 263 |
"report": { # A diagnostic report containing aggregate metrics and intent breakdowns. # Output only. The report containing the findings of the diagnostic. |
| 264 |
"conversationSlices": { # Output only. A map of conversation slices used in the report. |
| 265 |
"a_key": { # Output only. A map of conversation slices used in the report. |
| 266 |
"conversationIds": [ # The list of conversation IDs that match this slice. |
| 267 |
"A String", |
| 268 |
], |
| 269 |
}, |
| 270 |
}, |
| 271 |
"intentStats": [ # Output only. Deprecated: Intent breakdowns are no longer used. |
| 272 |
{ # A breakdown of metrics grouped by intent. |
| 273 |
"conversationCount": 42, # Output only. The number of conversations associated with this intent. |
| 274 |
"intentDisplayName": "A String", # Output only. The display name of the intent. |
| 275 |
"intentId": "A String", # Output only. The unique identifier for the intent (from Discovery Engine). |
| 276 |
"lossPatterns": [ # Output only. A list of loss patterns identified for this intent. |
| 277 |
{ # A loss pattern of a virtual agent and suggested fixes. |
| 278 |
"conversationIds": [ # Output only. A list of conversation IDs that match this loss pattern. |
| 279 |
"A String", |
| 280 |
], |
| 281 |
"description": "A String", # Output only. A markdown description of the loss pattern. |
| 282 |
"displayName": "A String", # Output only. The display name of the loss pattern. |
| 283 |
"examples": "A String", # Output only. A markdown of loss pattern examples. |
| 284 |
"id": "A String", # Output only. The unique identifier for the loss pattern. |
| 285 |
"links": [ # Output only. A list of links to conversations or bot instructions. |
| 286 |
{ # A link to a conversation or bot instruction. |
| 287 |
"botInstructionLink": { # A link to a bot instruction. # A link to a bot instruction. |
| 288 |
"endLine": 42, # The exclusive end line number of the instructions. |
| 289 |
"startLine": 42, # The inclusive start line number of the instructions. |
| 290 |
"subagent": "A String", # The name of the subagent. |
| 291 |
}, |
| 292 |
"conversationLink": { # A link to a conversation. # A link to a conversation. |
| 293 |
"conversationId": "A String", # The conversation ID. |
| 294 |
}, |
| 295 |
"endByteIndex": 42, # The end byte index of the highlighted text (exclusive). |
| 296 |
"highlightedText": "A String", # The text that is highlighted. (populated for debugging purposes) |
| 297 |
"locationType": "A String", # The location type. |
| 298 |
"startByteIndex": 42, # The start byte index of the highlighted text (inclusive). |
| 299 |
}, |
| 300 |
], |
| 301 |
"percentage": 3.14, # Output only. The percentage of conversations that match this loss pattern. |
| 302 |
"suggestedFixes": "A String", # Output only. A markdown description of the suggested fixes. |
| 303 |
}, |
| 304 |
], |
| 305 |
"metrics": { # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 306 |
"a_key": { # Deprecated: MetricValue is no longer used for diagnostics. |
| 307 |
"conversations": [ # Output only. The list of conversation names that contributed to this metric (hits). Format: `projects/{project}/locations/{location}/conversations/{conversation}` |
| 308 |
"A String", |
| 309 |
], |
| 310 |
"displayName": "A String", # Output only. The user-visible name of the metric (e.g., "Containment Rate"). |
| 311 |
"hitCount": 42, # Output only. The number of positive matches (hits) for this metric. |
| 312 |
"metricType": "A String", # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 313 |
"sourceId": "A String", # Output only. The resource name of the underlying Insights primitive (e.g., Tag or QaQuestion) used to calculate this metric. |
| 314 |
"totalCount": 42, # Output only. The total number of items evaluated for this metric. |
| 315 |
"value": 3.14, # Output only. The calculated value of the metric (usually a ratio or rate 0.0 - 1.0). |
| 316 |
}, |
| 317 |
}, |
| 318 |
}, |
| 319 |
], |
| 320 |
"lossPatterns": [ # Output only. A list of loss patterns identified for the entire project/dataset. |
| 321 |
{ # A loss pattern of a virtual agent and suggested fixes. |
| 322 |
"conversationIds": [ # Output only. A list of conversation IDs that match this loss pattern. |
| 323 |
"A String", |
| 324 |
], |
| 325 |
"description": "A String", # Output only. A markdown description of the loss pattern. |
| 326 |
"displayName": "A String", # Output only. The display name of the loss pattern. |
| 327 |
"examples": "A String", # Output only. A markdown of loss pattern examples. |
| 328 |
"id": "A String", # Output only. The unique identifier for the loss pattern. |
| 329 |
"links": [ # Output only. A list of links to conversations or bot instructions. |
| 330 |
{ # A link to a conversation or bot instruction. |
| 331 |
"botInstructionLink": { # A link to a bot instruction. # A link to a bot instruction. |
| 332 |
"endLine": 42, # The exclusive end line number of the instructions. |
| 333 |
"startLine": 42, # The inclusive start line number of the instructions. |
| 334 |
"subagent": "A String", # The name of the subagent. |
| 335 |
}, |
| 336 |
"conversationLink": { # A link to a conversation. # A link to a conversation. |
| 337 |
"conversationId": "A String", # The conversation ID. |
| 338 |
}, |
| 339 |
"endByteIndex": 42, # The end byte index of the highlighted text (exclusive). |
| 340 |
"highlightedText": "A String", # The text that is highlighted. (populated for debugging purposes) |
| 341 |
"locationType": "A String", # The location type. |
| 342 |
"startByteIndex": 42, # The start byte index of the highlighted text (inclusive). |
| 343 |
}, |
| 344 |
], |
| 345 |
"percentage": 3.14, # Output only. The percentage of conversations that match this loss pattern. |
| 346 |
"suggestedFixes": "A String", # Output only. A markdown description of the suggested fixes. |
| 347 |
}, |
| 348 |
], |
| 349 |
"metrics": { # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 350 |
"a_key": { # Deprecated: MetricValue is no longer used for diagnostics. |
| 351 |
"conversations": [ # Output only. The list of conversation names that contributed to this metric (hits). Format: `projects/{project}/locations/{location}/conversations/{conversation}` |
| 352 |
"A String", |
| 353 |
], |
| 354 |
"displayName": "A String", # Output only. The user-visible name of the metric (e.g., "Containment Rate"). |
| 355 |
"hitCount": 42, # Output only. The number of positive matches (hits) for this metric. |
| 356 |
"metricType": "A String", # Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics. |
| 357 |
"sourceId": "A String", # Output only. The resource name of the underlying Insights primitive (e.g., Tag or QaQuestion) used to calculate this metric. |
| 358 |
"totalCount": 42, # Output only. The total number of items evaluated for this metric. |
| 359 |
"value": 3.14, # Output only. The calculated value of the metric (usually a ratio or rate 0.0 - 1.0). |
| 360 |
}, |
| 361 |
}, |
| 362 |
"report": "A String", # Output only. The final report in markdown format. |
| 363 |
}, |
| 364 |
}, |
| 365 |
], |
| 366 |
"nextPageToken": "A String", # Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| 367 |
}</pre> |
| 368 |
</div> |
| 369 |
|
| 370 |
<div class="method"> |
| 371 |
<code class="details" id="list_next">list_next()</code> |
| 372 |
<pre>Retrieves the next page of results. |
| 373 |
|
| 374 |
Args: |
| 375 |
previous_request: The request for the previous page. (required) |
| 376 |
previous_response: The response from the request for the previous page. (required) |
| 377 |
|
| 378 |
Returns: |
| 379 |
A request object that you can call 'execute()' on to request the next |
| 380 |
page. Returns None if there are no more items in the collection. |
| 381 |
</pre> |
| 382 |
</div> |
| 383 |
|
| 384 |
</body></html> |