-
Notifications
You must be signed in to change notification settings - Fork 13
/
conversationquery.go
57 lines (35 loc) · 2.19 KB
/
conversationquery.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Conversationquery
type Conversationquery struct {
// ConversationFilters - Filters that target conversation-level data
ConversationFilters *[]Conversationdetailqueryfilter `json:"conversationFilters,omitempty"`
// SegmentFilters - Filters that target individual segments within a conversation
SegmentFilters *[]Segmentdetailqueryfilter `json:"segmentFilters,omitempty"`
// EvaluationFilters - Filters that target evaluations
EvaluationFilters *[]Evaluationdetailqueryfilter `json:"evaluationFilters,omitempty"`
// SurveyFilters - Filters that target surveys
SurveyFilters *[]Surveydetailqueryfilter `json:"surveyFilters,omitempty"`
// ResolutionFilters - Filters that target resolutions
ResolutionFilters *[]Resolutiondetailqueryfilter `json:"resolutionFilters,omitempty"`
// Order - Sort the result set in ascending/descending order. Default is ascending
Order *string `json:"order,omitempty"`
// OrderBy - Specify which data element within the result set to use for sorting. The options to use as a basis for sorting the results: conversationStart, segmentStart, and segmentEnd. If not specified, the default is conversationStart
OrderBy *string `json:"orderBy,omitempty"`
// Interval - Specifies the date and time range of data being queried. Results will only include conversations that started on a day touched by the interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
Interval *string `json:"interval,omitempty"`
// Aggregations - Include faceted search and aggregate roll-ups describing your search results. This does not function as a filter, but rather, summary data about the data matching your filters
Aggregations *[]Analyticsqueryaggregation `json:"aggregations,omitempty"`
// Paging - Page size and number to control iterating through large result sets. Default page size is 25
Paging *Pagingspec `json:"paging,omitempty"`
}
// String returns a JSON representation of the model
func (o *Conversationquery) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}