embulk-input-zendesk 0.2.14 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -3
- data/.travis.yml +5 -44
- data/CHANGELOG.md +3 -0
- data/README.md +5 -5
- data/build.gradle +123 -0
- data/classpath/commons-codec-1.10.jar +0 -0
- data/classpath/commons-logging-1.2.jar +0 -0
- data/classpath/embulk-input-zendesk-0.3.0.jar +0 -0
- data/classpath/httpclient-4.5.6.jar +0 -0
- data/classpath/httpcore-4.4.10.jar +0 -0
- data/config/checkstyle/checkstyle.xml +128 -0
- data/config/checkstyle/default.xml +108 -0
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +5 -0
- data/gradlew +172 -0
- data/gradlew.bat +84 -0
- data/lib/embulk/guess/zendesk.rb +21 -0
- data/lib/embulk/input/zendesk.rb +3 -9
- data/src/main/java/org/embulk/input/zendesk/ZendeskInputPlugin.java +471 -0
- data/src/main/java/org/embulk/input/zendesk/clients/ZendeskRestClient.java +268 -0
- data/src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java +23 -0
- data/src/main/java/org/embulk/input/zendesk/models/Target.java +46 -0
- data/src/main/java/org/embulk/input/zendesk/models/ZendeskException.java +25 -0
- data/src/main/java/org/embulk/input/zendesk/services/ZendeskSupportAPIService.java +109 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskConstants.java +61 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskDateUtils.java +51 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskUtils.java +150 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskValidatorUtils.java +92 -0
- data/src/test/java/org/embulk/input/zendesk/TestZendeskInputPlugin.java +232 -0
- data/src/test/java/org/embulk/input/zendesk/clients/TestZendeskRestClient.java +351 -0
- data/src/test/java/org/embulk/input/zendesk/services/TestZendeskSupportAPIService.java +172 -0
- data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskDateUtils.java +36 -0
- data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskUtil.java +160 -0
- data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskValidatorUtils.java +138 -0
- data/src/test/java/org/embulk/input/zendesk/utils/ZendeskPluginTestRuntime.java +133 -0
- data/src/test/java/org/embulk/input/zendesk/utils/ZendeskTestHelper.java +63 -0
- data/src/test/resources/config/base.yml +14 -0
- data/src/test/resources/config/base_validator.yml +48 -0
- data/src/test/resources/config/incremental.yml +54 -0
- data/src/test/resources/config/non-incremental.yml +39 -0
- data/src/test/resources/config/util.yml +18 -0
- data/src/test/resources/data/client.json +293 -0
- data/src/test/resources/data/error_data.json +187 -0
- data/src/test/resources/data/expected/ticket_column.json +148 -0
- data/src/test/resources/data/expected/ticket_column_with_related_objects.json +152 -0
- data/src/test/resources/data/expected/ticket_fields_column.json +92 -0
- data/src/test/resources/data/expected/ticket_metrics_column.json +98 -0
- data/src/test/resources/data/ticket_fields.json +225 -0
- data/src/test/resources/data/ticket_metrics.json +397 -0
- data/src/test/resources/data/ticket_with_related_objects.json +67 -0
- data/src/test/resources/data/tickets.json +232 -0
- data/src/test/resources/data/tickets_continue.json +52 -0
- data/src/test/resources/data/util.json +19 -0
- data/src/test/resources/data/util_page.json +227 -0
- metadata +65 -221
- data/.ruby-version +0 -1
- data/.travis.yml.erb +0 -43
- data/Gemfile +0 -2
- data/Rakefile +0 -21
- data/embulk-input-zendesk.gemspec +0 -29
- data/gemfiles/embulk-0.8.0-latest +0 -4
- data/gemfiles/embulk-0.8.1 +0 -4
- data/gemfiles/embulk-latest +0 -4
- data/gemfiles/template.erb +0 -4
- data/lib/embulk/input/zendesk/client.rb +0 -434
- data/lib/embulk/input/zendesk/plugin.rb +0 -199
- data/test/capture_io.rb +0 -45
- data/test/embulk/input/zendesk/test_client.rb +0 -722
- data/test/embulk/input/zendesk/test_plugin.rb +0 -628
- data/test/fixture_helper.rb +0 -11
- data/test/fixtures/invalid_app_marketplace_lack_one_property.yml +0 -13
- data/test/fixtures/invalid_app_marketplace_lack_two_property.yml +0 -12
- data/test/fixtures/invalid_lack_username.yml +0 -9
- data/test/fixtures/invalid_unknown_auth.yml +0 -9
- data/test/fixtures/tickets.json +0 -44
- data/test/fixtures/valid_app_marketplace.yml +0 -14
- data/test/fixtures/valid_auth_basic.yml +0 -11
- data/test/fixtures/valid_auth_oauth.yml +0 -10
- data/test/fixtures/valid_auth_token.yml +0 -11
- data/test/override_assert_raise.rb +0 -21
- data/test/run-test.rb +0 -26
@@ -0,0 +1,92 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "url",
|
4
|
+
"type": "string"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"name": "id",
|
8
|
+
"type": "long"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"name": "type",
|
12
|
+
"type": "string"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "title",
|
16
|
+
"type": "string"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"name": "raw_title",
|
20
|
+
"type": "string"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"name": "description",
|
24
|
+
"type": "string"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "raw_description",
|
28
|
+
"type": "string"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"name": "position",
|
32
|
+
"type": "long"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"name": "active",
|
36
|
+
"type": "boolean"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"name": "required",
|
40
|
+
"type": "boolean"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"name": "collapsed_for_agents",
|
44
|
+
"type": "boolean"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"name": "regexp_for_validation",
|
48
|
+
"type": "string"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"name": "title_in_portal",
|
52
|
+
"type": "string"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"name": "raw_title_in_portal",
|
56
|
+
"type": "string"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"name": "visible_in_portal",
|
60
|
+
"type": "boolean"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"name": "editable_in_portal",
|
64
|
+
"type": "boolean"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"name": "required_in_portal",
|
68
|
+
"type": "boolean"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"name": "tag",
|
72
|
+
"type": "string"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "created_at",
|
76
|
+
"type": "timestamp",
|
77
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"name": "updated_at",
|
81
|
+
"type": "timestamp",
|
82
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"name": "removable",
|
86
|
+
"type": "boolean"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"name": "agent_description",
|
90
|
+
"type": "string"
|
91
|
+
}
|
92
|
+
]
|
@@ -0,0 +1,98 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "url",
|
4
|
+
"type": "string"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"name": "id",
|
8
|
+
"type": "long"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"name": "ticket_id",
|
12
|
+
"type": "string"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "created_at",
|
16
|
+
"type": "timestamp",
|
17
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"name": "updated_at",
|
21
|
+
"type": "timestamp",
|
22
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "group_stations",
|
26
|
+
"type": "long"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"name": "assignee_stations",
|
30
|
+
"type": "long"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "reopens",
|
34
|
+
"type": "long"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"name": "replies",
|
38
|
+
"type": "long"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"name": "assignee_updated_at",
|
42
|
+
"type": "timestamp",
|
43
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"name": "requester_updated_at",
|
47
|
+
"type": "timestamp",
|
48
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"name": "status_updated_at",
|
52
|
+
"type": "timestamp",
|
53
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"name": "initially_assigned_at",
|
57
|
+
"type": "timestamp",
|
58
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"name": "assigned_at",
|
62
|
+
"type": "timestamp",
|
63
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"name": "solved_at",
|
67
|
+
"type": "string"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"name": "latest_comment_added_at",
|
71
|
+
"type": "timestamp",
|
72
|
+
"format": "%Y-%m-%dT%H:%M:%S%z"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "reply_time_in_minutes",
|
76
|
+
"type": "json"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"name": "first_resolution_time_in_minutes",
|
80
|
+
"type": "json"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"name": "full_resolution_time_in_minutes",
|
84
|
+
"type": "json"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"name": "agent_wait_time_in_minutes",
|
88
|
+
"type": "json"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"name": "requester_wait_time_in_minutes",
|
92
|
+
"type": "json"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"name": "on_hold_time_in_minutes",
|
96
|
+
"type": "json"
|
97
|
+
}
|
98
|
+
]
|
@@ -0,0 +1,225 @@
|
|
1
|
+
{
|
2
|
+
"ticket_fields": [
|
3
|
+
{
|
4
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417093.json",
|
5
|
+
"id": 360015417093,
|
6
|
+
"type": "subject",
|
7
|
+
"title": "Subject",
|
8
|
+
"raw_title": "Subject",
|
9
|
+
"description": "",
|
10
|
+
"raw_description": "",
|
11
|
+
"position": 1,
|
12
|
+
"active": true,
|
13
|
+
"required": false,
|
14
|
+
"collapsed_for_agents": false,
|
15
|
+
"regexp_for_validation": null,
|
16
|
+
"title_in_portal": "Subject",
|
17
|
+
"raw_title_in_portal": "Subject",
|
18
|
+
"visible_in_portal": true,
|
19
|
+
"editable_in_portal": true,
|
20
|
+
"required_in_portal": true,
|
21
|
+
"tag": null,
|
22
|
+
"created_at": "2019-02-20T06:50:45Z",
|
23
|
+
"updated_at": "2019-02-20T06:50:46Z",
|
24
|
+
"removable": false,
|
25
|
+
"agent_description": null
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417113.json",
|
29
|
+
"id": 360015417113,
|
30
|
+
"type": "description",
|
31
|
+
"title": "Description",
|
32
|
+
"raw_title": "Description",
|
33
|
+
"description": "Please enter the details of your request. A member of our support staff will respond as soon as possible.",
|
34
|
+
"raw_description": "Please enter the details of your request. A member of our support staff will respond as soon as possible.",
|
35
|
+
"position": 2,
|
36
|
+
"active": true,
|
37
|
+
"required": false,
|
38
|
+
"collapsed_for_agents": false,
|
39
|
+
"regexp_for_validation": null,
|
40
|
+
"title_in_portal": "Description",
|
41
|
+
"raw_title_in_portal": "Description",
|
42
|
+
"visible_in_portal": true,
|
43
|
+
"editable_in_portal": true,
|
44
|
+
"required_in_portal": true,
|
45
|
+
"tag": null,
|
46
|
+
"created_at": "2019-02-20T06:50:45Z",
|
47
|
+
"updated_at": "2019-02-20T06:50:46Z",
|
48
|
+
"removable": false,
|
49
|
+
"agent_description": null
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417133.json",
|
53
|
+
"id": 360015417133,
|
54
|
+
"type": "status",
|
55
|
+
"title": "Status",
|
56
|
+
"raw_title": "Status",
|
57
|
+
"description": "Request status",
|
58
|
+
"raw_description": "Request status",
|
59
|
+
"position": 3,
|
60
|
+
"active": true,
|
61
|
+
"required": false,
|
62
|
+
"collapsed_for_agents": false,
|
63
|
+
"regexp_for_validation": null,
|
64
|
+
"title_in_portal": "Status",
|
65
|
+
"raw_title_in_portal": "Status",
|
66
|
+
"visible_in_portal": false,
|
67
|
+
"editable_in_portal": false,
|
68
|
+
"required_in_portal": false,
|
69
|
+
"tag": null,
|
70
|
+
"created_at": "2019-02-20T06:50:45Z",
|
71
|
+
"updated_at": "2019-02-20T06:50:46Z",
|
72
|
+
"removable": false,
|
73
|
+
"agent_description": null,
|
74
|
+
"system_field_options": [
|
75
|
+
{
|
76
|
+
"name": "Open",
|
77
|
+
"value": "open"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"name": "Pending",
|
81
|
+
"value": "pending"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "Solved",
|
85
|
+
"value": "solved"
|
86
|
+
}
|
87
|
+
],
|
88
|
+
"sub_type_id": 0
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417153.json",
|
92
|
+
"id": 360015417153,
|
93
|
+
"type": "tickettype",
|
94
|
+
"title": "Type",
|
95
|
+
"raw_title": "Type",
|
96
|
+
"description": "Request type",
|
97
|
+
"raw_description": "Request type",
|
98
|
+
"position": 4,
|
99
|
+
"active": true,
|
100
|
+
"required": false,
|
101
|
+
"collapsed_for_agents": false,
|
102
|
+
"regexp_for_validation": null,
|
103
|
+
"title_in_portal": "Type",
|
104
|
+
"raw_title_in_portal": "Type",
|
105
|
+
"visible_in_portal": false,
|
106
|
+
"editable_in_portal": false,
|
107
|
+
"required_in_portal": false,
|
108
|
+
"tag": null,
|
109
|
+
"created_at": "2019-02-20T06:50:45Z",
|
110
|
+
"updated_at": "2019-02-20T06:50:46Z",
|
111
|
+
"removable": true,
|
112
|
+
"agent_description": null,
|
113
|
+
"system_field_options": [
|
114
|
+
{
|
115
|
+
"name": "Question",
|
116
|
+
"value": "question"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"name": "Incident",
|
120
|
+
"value": "incident"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"name": "Problem",
|
124
|
+
"value": "problem"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"name": "Task",
|
128
|
+
"value": "task"
|
129
|
+
}
|
130
|
+
]
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417173.json",
|
134
|
+
"id": 360015417173,
|
135
|
+
"type": "priority",
|
136
|
+
"title": "Priority",
|
137
|
+
"raw_title": "Priority",
|
138
|
+
"description": "Request priority",
|
139
|
+
"raw_description": "Request priority",
|
140
|
+
"position": 5,
|
141
|
+
"active": true,
|
142
|
+
"required": false,
|
143
|
+
"collapsed_for_agents": false,
|
144
|
+
"regexp_for_validation": null,
|
145
|
+
"title_in_portal": "Priority",
|
146
|
+
"raw_title_in_portal": "Priority",
|
147
|
+
"visible_in_portal": true,
|
148
|
+
"editable_in_portal": false,
|
149
|
+
"required_in_portal": false,
|
150
|
+
"tag": null,
|
151
|
+
"created_at": "2019-02-20T06:50:45Z",
|
152
|
+
"updated_at": "2019-02-20T06:50:46Z",
|
153
|
+
"removable": true,
|
154
|
+
"agent_description": null,
|
155
|
+
"system_field_options": [
|
156
|
+
{
|
157
|
+
"name": "Low",
|
158
|
+
"value": "low"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"name": "Normal",
|
162
|
+
"value": "normal"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"name": "High",
|
166
|
+
"value": "high"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"name": "Urgent",
|
170
|
+
"value": "urgent"
|
171
|
+
}
|
172
|
+
],
|
173
|
+
"sub_type_id": 0
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417193.json",
|
177
|
+
"id": 360015417193,
|
178
|
+
"type": "group",
|
179
|
+
"title": "Group",
|
180
|
+
"raw_title": "Group",
|
181
|
+
"description": "Request group",
|
182
|
+
"raw_description": "Request group",
|
183
|
+
"position": 6,
|
184
|
+
"active": true,
|
185
|
+
"required": false,
|
186
|
+
"collapsed_for_agents": false,
|
187
|
+
"regexp_for_validation": null,
|
188
|
+
"title_in_portal": "Group",
|
189
|
+
"raw_title_in_portal": "Group",
|
190
|
+
"visible_in_portal": false,
|
191
|
+
"editable_in_portal": false,
|
192
|
+
"required_in_portal": false,
|
193
|
+
"tag": null,
|
194
|
+
"created_at": "2019-02-20T06:50:45Z",
|
195
|
+
"updated_at": "2019-02-20T06:50:46Z",
|
196
|
+
"removable": false,
|
197
|
+
"agent_description": null
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417213.json",
|
201
|
+
"id": 360015417213,
|
202
|
+
"type": "assignee",
|
203
|
+
"title": "Assignee",
|
204
|
+
"raw_title": "Assignee",
|
205
|
+
"description": "Agent assigned to your request",
|
206
|
+
"raw_description": "Agent assigned to your request",
|
207
|
+
"position": 7,
|
208
|
+
"active": true,
|
209
|
+
"required": true,
|
210
|
+
"collapsed_for_agents": false,
|
211
|
+
"regexp_for_validation": null,
|
212
|
+
"title_in_portal": "Assignee",
|
213
|
+
"raw_title_in_portal": "Assignee",
|
214
|
+
"visible_in_portal": true,
|
215
|
+
"editable_in_portal": false,
|
216
|
+
"required_in_portal": false,
|
217
|
+
"tag": null,
|
218
|
+
"created_at": "2019-02-20T06:50:45Z",
|
219
|
+
"updated_at": "2019-02-20T06:50:46Z",
|
220
|
+
"removable": false,
|
221
|
+
"agent_description": null
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"count": 110
|
225
|
+
}
|
@@ -0,0 +1,397 @@
|
|
1
|
+
{
|
2
|
+
"tickets": [
|
3
|
+
{
|
4
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/2.json",
|
5
|
+
"id": 2,
|
6
|
+
"external_id": null,
|
7
|
+
"via": {
|
8
|
+
"channel": "web",
|
9
|
+
"source": {
|
10
|
+
"from": {},
|
11
|
+
"to": {},
|
12
|
+
"rel": null
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"created_at": "2019-02-20T06:51:50Z",
|
16
|
+
"updated_at": "2019-02-20T06:51:50Z",
|
17
|
+
"type": null,
|
18
|
+
"subject": "ticket1",
|
19
|
+
"raw_subject": "ticket1",
|
20
|
+
"description": "ticket1",
|
21
|
+
"priority": null,
|
22
|
+
"status": "open",
|
23
|
+
"recipient": null,
|
24
|
+
"requester_id": 374673563333,
|
25
|
+
"submitter_id": 374673563333,
|
26
|
+
"assignee_id": 374673563333,
|
27
|
+
"organization_id": 360857467053,
|
28
|
+
"group_id": 360003235353,
|
29
|
+
"collaborator_ids": [],
|
30
|
+
"follower_ids": [],
|
31
|
+
"email_cc_ids": [],
|
32
|
+
"forum_topic_id": null,
|
33
|
+
"problem_id": null,
|
34
|
+
"has_incidents": false,
|
35
|
+
"is_public": true,
|
36
|
+
"due_at": null,
|
37
|
+
"tags": [],
|
38
|
+
"custom_fields": [],
|
39
|
+
"satisfaction_rating": null,
|
40
|
+
"sharing_agreement_ids": [],
|
41
|
+
"fields": [],
|
42
|
+
"followup_ids": [],
|
43
|
+
"brand_id": 360001998013,
|
44
|
+
"metric_set": {
|
45
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_metrics/367414816973.json",
|
46
|
+
"id": 367414816973,
|
47
|
+
"ticket_id": 2,
|
48
|
+
"created_at": "2019-02-20T06:51:50Z",
|
49
|
+
"updated_at": "2019-02-20T06:51:50Z",
|
50
|
+
"group_stations": 1,
|
51
|
+
"assignee_stations": 1,
|
52
|
+
"reopens": 0,
|
53
|
+
"replies": 0,
|
54
|
+
"assignee_updated_at": "2019-02-20T06:51:50Z",
|
55
|
+
"requester_updated_at": "2019-02-20T06:51:50Z",
|
56
|
+
"status_updated_at": "2019-02-20T06:51:50Z",
|
57
|
+
"initially_assigned_at": "2019-02-20T06:51:50Z",
|
58
|
+
"assigned_at": "2019-02-20T06:51:50Z",
|
59
|
+
"solved_at": null,
|
60
|
+
"latest_comment_added_at": "2019-02-20T06:51:50Z",
|
61
|
+
"reply_time_in_minutes": {
|
62
|
+
"calendar": null,
|
63
|
+
"business": null
|
64
|
+
},
|
65
|
+
"first_resolution_time_in_minutes": {
|
66
|
+
"calendar": null,
|
67
|
+
"business": null
|
68
|
+
},
|
69
|
+
"full_resolution_time_in_minutes": {
|
70
|
+
"calendar": null,
|
71
|
+
"business": null
|
72
|
+
},
|
73
|
+
"agent_wait_time_in_minutes": {
|
74
|
+
"calendar": null,
|
75
|
+
"business": null
|
76
|
+
},
|
77
|
+
"requester_wait_time_in_minutes": {
|
78
|
+
"calendar": null,
|
79
|
+
"business": null
|
80
|
+
},
|
81
|
+
"on_hold_time_in_minutes": {
|
82
|
+
"calendar": 0,
|
83
|
+
"business": 0
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"allow_channelback": false,
|
87
|
+
"allow_attachments": true,
|
88
|
+
"generated_timestamp": 1550645510
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/3.json",
|
92
|
+
"id": 3,
|
93
|
+
"external_id": null,
|
94
|
+
"via": {
|
95
|
+
"channel": "web",
|
96
|
+
"source": {
|
97
|
+
"from": {},
|
98
|
+
"to": {},
|
99
|
+
"rel": null
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"created_at": "2019-02-20T06:52:02Z",
|
103
|
+
"updated_at": "2019-02-20T06:52:02Z",
|
104
|
+
"type": null,
|
105
|
+
"subject": "ticket2",
|
106
|
+
"raw_subject": "ticket2",
|
107
|
+
"description": "ticket2",
|
108
|
+
"priority": null,
|
109
|
+
"status": "open",
|
110
|
+
"recipient": null,
|
111
|
+
"requester_id": 374673563333,
|
112
|
+
"submitter_id": 374673563333,
|
113
|
+
"assignee_id": 374673563333,
|
114
|
+
"organization_id": 360857467053,
|
115
|
+
"group_id": 360003235353,
|
116
|
+
"collaborator_ids": [],
|
117
|
+
"follower_ids": [],
|
118
|
+
"email_cc_ids": [],
|
119
|
+
"forum_topic_id": null,
|
120
|
+
"problem_id": null,
|
121
|
+
"has_incidents": false,
|
122
|
+
"is_public": true,
|
123
|
+
"due_at": null,
|
124
|
+
"tags": [],
|
125
|
+
"custom_fields": [],
|
126
|
+
"satisfaction_rating": null,
|
127
|
+
"sharing_agreement_ids": [],
|
128
|
+
"fields": [],
|
129
|
+
"followup_ids": [],
|
130
|
+
"brand_id": 360001998013,
|
131
|
+
"metric_set": {
|
132
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_metrics/367414819433.json",
|
133
|
+
"id": 367414819433,
|
134
|
+
"ticket_id": 3,
|
135
|
+
"created_at": "2019-02-20T06:52:02Z",
|
136
|
+
"updated_at": "2019-02-20T06:52:02Z",
|
137
|
+
"group_stations": 1,
|
138
|
+
"assignee_stations": 1,
|
139
|
+
"reopens": 0,
|
140
|
+
"replies": 0,
|
141
|
+
"assignee_updated_at": "2019-02-20T06:52:02Z",
|
142
|
+
"requester_updated_at": "2019-02-20T06:52:02Z",
|
143
|
+
"status_updated_at": "2019-02-20T06:52:02Z",
|
144
|
+
"initially_assigned_at": "2019-02-20T06:52:02Z",
|
145
|
+
"assigned_at": "2019-02-20T06:52:02Z",
|
146
|
+
"solved_at": null,
|
147
|
+
"latest_comment_added_at": "2019-02-20T06:52:02Z",
|
148
|
+
"reply_time_in_minutes": {
|
149
|
+
"calendar": null,
|
150
|
+
"business": null
|
151
|
+
},
|
152
|
+
"first_resolution_time_in_minutes": {
|
153
|
+
"calendar": null,
|
154
|
+
"business": null
|
155
|
+
},
|
156
|
+
"full_resolution_time_in_minutes": {
|
157
|
+
"calendar": null,
|
158
|
+
"business": null
|
159
|
+
},
|
160
|
+
"agent_wait_time_in_minutes": {
|
161
|
+
"calendar": null,
|
162
|
+
"business": null
|
163
|
+
},
|
164
|
+
"requester_wait_time_in_minutes": {
|
165
|
+
"calendar": null,
|
166
|
+
"business": null
|
167
|
+
},
|
168
|
+
"on_hold_time_in_minutes": {
|
169
|
+
"calendar": 0,
|
170
|
+
"business": 0
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"allow_channelback": false,
|
174
|
+
"allow_attachments": true,
|
175
|
+
"generated_timestamp": 1550645522
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/4.json",
|
179
|
+
"id": 4,
|
180
|
+
"external_id": null,
|
181
|
+
"via": {
|
182
|
+
"channel": "web",
|
183
|
+
"source": {
|
184
|
+
"from": {},
|
185
|
+
"to": {},
|
186
|
+
"rel": null
|
187
|
+
}
|
188
|
+
},
|
189
|
+
"created_at": "2019-02-20T06:52:12Z",
|
190
|
+
"updated_at": "2019-02-20T06:52:12Z",
|
191
|
+
"type": null,
|
192
|
+
"subject": "ticket3",
|
193
|
+
"raw_subject": "ticket3",
|
194
|
+
"description": "ticket3",
|
195
|
+
"priority": null,
|
196
|
+
"status": "open",
|
197
|
+
"recipient": null,
|
198
|
+
"requester_id": 374673563333,
|
199
|
+
"submitter_id": 374673563333,
|
200
|
+
"assignee_id": 374673563333,
|
201
|
+
"organization_id": 360857467053,
|
202
|
+
"group_id": 360003235353,
|
203
|
+
"collaborator_ids": [],
|
204
|
+
"follower_ids": [],
|
205
|
+
"email_cc_ids": [],
|
206
|
+
"forum_topic_id": null,
|
207
|
+
"problem_id": null,
|
208
|
+
"has_incidents": false,
|
209
|
+
"is_public": true,
|
210
|
+
"due_at": null,
|
211
|
+
"tags": [],
|
212
|
+
"custom_fields": [],
|
213
|
+
"satisfaction_rating": null,
|
214
|
+
"sharing_agreement_ids": [],
|
215
|
+
"fields": [],
|
216
|
+
"followup_ids": [],
|
217
|
+
"brand_id": 360001998013,
|
218
|
+
"metric_set": {
|
219
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_metrics/367414821253.json",
|
220
|
+
"id": 367414821253,
|
221
|
+
"ticket_id": 4,
|
222
|
+
"created_at": "2019-02-20T06:52:13Z",
|
223
|
+
"updated_at": "2019-02-20T06:52:13Z",
|
224
|
+
"group_stations": 1,
|
225
|
+
"assignee_stations": 1,
|
226
|
+
"reopens": 0,
|
227
|
+
"replies": 0,
|
228
|
+
"assignee_updated_at": "2019-02-20T06:52:12Z",
|
229
|
+
"requester_updated_at": "2019-02-20T06:52:12Z",
|
230
|
+
"status_updated_at": "2019-02-20T06:52:12Z",
|
231
|
+
"initially_assigned_at": "2019-02-20T06:52:12Z",
|
232
|
+
"assigned_at": "2019-02-20T06:52:12Z",
|
233
|
+
"solved_at": null,
|
234
|
+
"latest_comment_added_at": "2019-02-20T06:52:12Z",
|
235
|
+
"reply_time_in_minutes": {
|
236
|
+
"calendar": null,
|
237
|
+
"business": null
|
238
|
+
},
|
239
|
+
"first_resolution_time_in_minutes": {
|
240
|
+
"calendar": null,
|
241
|
+
"business": null
|
242
|
+
},
|
243
|
+
"full_resolution_time_in_minutes": {
|
244
|
+
"calendar": null,
|
245
|
+
"business": null
|
246
|
+
},
|
247
|
+
"agent_wait_time_in_minutes": {
|
248
|
+
"calendar": null,
|
249
|
+
"business": null
|
250
|
+
},
|
251
|
+
"requester_wait_time_in_minutes": {
|
252
|
+
"calendar": null,
|
253
|
+
"business": null
|
254
|
+
},
|
255
|
+
"on_hold_time_in_minutes": {
|
256
|
+
"calendar": 0,
|
257
|
+
"business": 0
|
258
|
+
}
|
259
|
+
},
|
260
|
+
"allow_channelback": false,
|
261
|
+
"allow_attachments": true,
|
262
|
+
"generated_timestamp": 1550645532
|
263
|
+
}
|
264
|
+
],
|
265
|
+
"count": 1000,
|
266
|
+
"metric_sets": [
|
267
|
+
{
|
268
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_metrics/367414816973.json",
|
269
|
+
"id": 367414816973,
|
270
|
+
"ticket_id": 2,
|
271
|
+
"created_at": "2019-02-20T06:51:50Z",
|
272
|
+
"updated_at": "2019-02-20T06:51:50Z",
|
273
|
+
"group_stations": 1,
|
274
|
+
"assignee_stations": 1,
|
275
|
+
"reopens": 0,
|
276
|
+
"replies": 0,
|
277
|
+
"assignee_updated_at": "2019-02-20T06:51:50Z",
|
278
|
+
"requester_updated_at": "2019-02-20T06:51:50Z",
|
279
|
+
"status_updated_at": "2019-02-20T06:51:50Z",
|
280
|
+
"initially_assigned_at": "2019-02-20T06:51:50Z",
|
281
|
+
"assigned_at": "2019-02-20T06:51:50Z",
|
282
|
+
"solved_at": null,
|
283
|
+
"latest_comment_added_at": "2019-02-20T06:51:50Z",
|
284
|
+
"reply_time_in_minutes": {
|
285
|
+
"calendar": null,
|
286
|
+
"business": null
|
287
|
+
},
|
288
|
+
"first_resolution_time_in_minutes": {
|
289
|
+
"calendar": null,
|
290
|
+
"business": null
|
291
|
+
},
|
292
|
+
"full_resolution_time_in_minutes": {
|
293
|
+
"calendar": null,
|
294
|
+
"business": null
|
295
|
+
},
|
296
|
+
"agent_wait_time_in_minutes": {
|
297
|
+
"calendar": null,
|
298
|
+
"business": null
|
299
|
+
},
|
300
|
+
"requester_wait_time_in_minutes": {
|
301
|
+
"calendar": null,
|
302
|
+
"business": null
|
303
|
+
},
|
304
|
+
"on_hold_time_in_minutes": {
|
305
|
+
"calendar": 0,
|
306
|
+
"business": 0
|
307
|
+
}
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_metrics/367414819433.json",
|
311
|
+
"id": 367414819433,
|
312
|
+
"ticket_id": 3,
|
313
|
+
"created_at": "2019-02-20T06:52:02Z",
|
314
|
+
"updated_at": "2019-02-20T06:52:02Z",
|
315
|
+
"group_stations": 1,
|
316
|
+
"assignee_stations": 1,
|
317
|
+
"reopens": 0,
|
318
|
+
"replies": 0,
|
319
|
+
"assignee_updated_at": "2019-02-20T06:52:02Z",
|
320
|
+
"requester_updated_at": "2019-02-20T06:52:02Z",
|
321
|
+
"status_updated_at": "2019-02-20T06:52:02Z",
|
322
|
+
"initially_assigned_at": "2019-02-20T06:52:02Z",
|
323
|
+
"assigned_at": "2019-02-20T06:52:02Z",
|
324
|
+
"solved_at": null,
|
325
|
+
"latest_comment_added_at": "2019-02-20T06:52:02Z",
|
326
|
+
"reply_time_in_minutes": {
|
327
|
+
"calendar": null,
|
328
|
+
"business": null
|
329
|
+
},
|
330
|
+
"first_resolution_time_in_minutes": {
|
331
|
+
"calendar": null,
|
332
|
+
"business": null
|
333
|
+
},
|
334
|
+
"full_resolution_time_in_minutes": {
|
335
|
+
"calendar": null,
|
336
|
+
"business": null
|
337
|
+
},
|
338
|
+
"agent_wait_time_in_minutes": {
|
339
|
+
"calendar": null,
|
340
|
+
"business": null
|
341
|
+
},
|
342
|
+
"requester_wait_time_in_minutes": {
|
343
|
+
"calendar": null,
|
344
|
+
"business": null
|
345
|
+
},
|
346
|
+
"on_hold_time_in_minutes": {
|
347
|
+
"calendar": 0,
|
348
|
+
"business": 0
|
349
|
+
}
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"url": "https://abc.zendesk.com/api/v2/ticket_metrics/367414821253.json",
|
353
|
+
"id": 367414821253,
|
354
|
+
"ticket_id": 4,
|
355
|
+
"created_at": "2019-02-20T06:52:13Z",
|
356
|
+
"updated_at": "2019-02-20T06:52:13Z",
|
357
|
+
"group_stations": 1,
|
358
|
+
"assignee_stations": 1,
|
359
|
+
"reopens": 0,
|
360
|
+
"replies": 0,
|
361
|
+
"assignee_updated_at": "2019-02-20T06:52:12Z",
|
362
|
+
"requester_updated_at": "2019-02-20T06:52:12Z",
|
363
|
+
"status_updated_at": "2019-02-20T06:52:12Z",
|
364
|
+
"initially_assigned_at": "2019-02-20T06:52:12Z",
|
365
|
+
"assigned_at": "2019-02-20T06:52:12Z",
|
366
|
+
"solved_at": null,
|
367
|
+
"latest_comment_added_at": "2019-02-20T06:52:12Z",
|
368
|
+
"reply_time_in_minutes": {
|
369
|
+
"calendar": null,
|
370
|
+
"business": null
|
371
|
+
},
|
372
|
+
"first_resolution_time_in_minutes": {
|
373
|
+
"calendar": null,
|
374
|
+
"business": null
|
375
|
+
},
|
376
|
+
"full_resolution_time_in_minutes": {
|
377
|
+
"calendar": null,
|
378
|
+
"business": null
|
379
|
+
},
|
380
|
+
"agent_wait_time_in_minutes": {
|
381
|
+
"calendar": null,
|
382
|
+
"business": null
|
383
|
+
},
|
384
|
+
"requester_wait_time_in_minutes": {
|
385
|
+
"calendar": null,
|
386
|
+
"business": null
|
387
|
+
},
|
388
|
+
"on_hold_time_in_minutes": {
|
389
|
+
"calendar": 0,
|
390
|
+
"business": 0
|
391
|
+
}
|
392
|
+
}
|
393
|
+
],
|
394
|
+
"count": 999,
|
395
|
+
"next_page": "https://abc.zendesk.com/api/v2/incremental/tickets.json?start_time=1550647053&include=metric_sets",
|
396
|
+
"end_time": 1550647053
|
397
|
+
}
|