Skip to content

Commit 4af24c4

Browse files
authored
Merge pull request #26 from rchi-vail/queueMetrics
queue metrics changes
2 parents c779b6b + f074fd0 commit 4af24c4

File tree

11 files changed

+53
-65
lines changed

11 files changed

+53
-65
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.github.freeclimbapi</groupId>
4242
<artifactId>freeclimb-java-client</artifactId>
43-
<version>5.0.2</version>
43+
<version>5.0.3</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.github.freeclimbapi:freeclimb-java-client:5.0.2"
59+
implementation "com.github.freeclimbapi:freeclimb-java-client:5.0.3"
6060
}
6161
```
6262

@@ -70,7 +70,7 @@ mvn clean package
7070

7171
Then manually install the following JARs:
7272

73-
* `target/freeclimb-java-client-5.0.2.jar`
73+
* `target/freeclimb-java-client-5.0.3.jar`
7474
* `target/lib/*.jar`
7575

7676
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.github.freeclimbapi'
7-
version = '5.0.2'
7+
version = '5.0.3'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.github.freeclimbapi",
44
name := "freeclimb-java-client",
5-
version := "5.0.2",
5+
version := "5.0.3",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/QueueResult.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Name | Type | Description | Notes
1515
**queueId** | **String** | A string that uniquely identifies this Queue resource. | [optional]
1616
**alias** | **String** | A description for this Queue. | [optional]
1717
**maxSize** | **Integer** | The maximum number of Calls permitted in the Queue. Default is 100. Maximum is 1000. | [optional]
18-
**currentSize** | **String** | Count of Calls currently in the Queue. | [optional]
19-
**averageWaitTime** | **String** | Average wait time (in seconds) of all Calls in the Queue. | [optional]
18+
**currentSize** | **Integer** | Count of Calls currently in the Queue. | [optional]
19+
**averageQueueRemovalTime** | **Integer** | The average amount of time (in seconds) for a call to be removed from the queue. | [optional]
2020
**subresourceUris** | **Object** | List of subresources for this Queue (which includes Queue members). | [optional]
2121

2222

docs/QueueResultAllOf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
1111
**queueId** | **String** | A string that uniquely identifies this Queue resource. | [optional]
1212
**alias** | **String** | A description for this Queue. | [optional]
1313
**maxSize** | **Integer** | The maximum number of Calls permitted in the Queue. Default is 100. Maximum is 1000. | [optional]
14-
**currentSize** | **String** | Count of Calls currently in the Queue. | [optional]
15-
**averageWaitTime** | **String** | Average wait time (in seconds) of all Calls in the Queue. | [optional]
14+
**currentSize** | **Integer** | Count of Calls currently in the Queue. | [optional]
15+
**averageQueueRemovalTime** | **Integer** | The average amount of time (in seconds) for a call to be removed from the queue. | [optional]
1616
**subresourceUris** | **Object** | List of subresources for this Queue (which includes Queue members). | [optional]
1717

1818

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>freeclimb-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>freeclimb-java-client</name>
8-
<version>5.0.2</version>
8+
<version>5.0.3</version>
99
<url>https://github.com/freeclimbapi/java-sdk</url>
1010
<description>FreeClimb Java Client</description>
1111
<scm>

src/main/java/com/github/freeclimbapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void init() {
131131
json = new JSON();
132132

133133
// Set default User-Agent.
134-
setUserAgent("OpenAPI-Generator/5.0.2/java");
134+
setUserAgent("OpenAPI-Generator/5.0.3/java");
135135

136136
authentications = new HashMap<String, Authentication>();
137137
}

src/main/java/com/github/freeclimbapi/QueueResult.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ public class QueueResult {
7171

7272
public static final String SERIALIZED_NAME_CURRENT_SIZE = "currentSize";
7373
@SerializedName(SERIALIZED_NAME_CURRENT_SIZE)
74-
private String currentSize;
74+
private Integer currentSize;
7575

76-
public static final String SERIALIZED_NAME_AVERAGE_WAIT_TIME = "averageWaitTime";
77-
@SerializedName(SERIALIZED_NAME_AVERAGE_WAIT_TIME)
78-
private String averageWaitTime;
76+
public static final String SERIALIZED_NAME_AVERAGE_QUEUE_REMOVAL_TIME = "averageQueueRemovalTime";
77+
@SerializedName(SERIALIZED_NAME_AVERAGE_QUEUE_REMOVAL_TIME)
78+
private Integer averageQueueRemovalTime;
7979

8080
public static final String SERIALIZED_NAME_SUBRESOURCE_URIS = "subresourceUris";
8181
@SerializedName(SERIALIZED_NAME_SUBRESOURCE_URIS)
@@ -268,7 +268,7 @@ public void setMaxSize(Integer maxSize) {
268268
}
269269

270270

271-
public QueueResult currentSize(String currentSize) {
271+
public QueueResult currentSize(Integer currentSize) {
272272

273273
this.currentSize = currentSize;
274274
return this;
@@ -281,36 +281,36 @@ public QueueResult currentSize(String currentSize) {
281281
@javax.annotation.Nullable
282282
@ApiModelProperty(value = "Count of Calls currently in the Queue.")
283283

284-
public String getCurrentSize() {
284+
public Integer getCurrentSize() {
285285
return currentSize;
286286
}
287287

288288

289-
public void setCurrentSize(String currentSize) {
289+
public void setCurrentSize(Integer currentSize) {
290290
this.currentSize = currentSize;
291291
}
292292

293293

294-
public QueueResult averageWaitTime(String averageWaitTime) {
294+
public QueueResult averageQueueRemovalTime(Integer averageQueueRemovalTime) {
295295

296-
this.averageWaitTime = averageWaitTime;
296+
this.averageQueueRemovalTime = averageQueueRemovalTime;
297297
return this;
298298
}
299299

300300
/**
301-
* Average wait time (in seconds) of all Calls in the Queue.
302-
* @return averageWaitTime
301+
* The average amount of time (in seconds) for a call to be removed from the queue.
302+
* @return averageQueueRemovalTime
303303
**/
304304
@javax.annotation.Nullable
305-
@ApiModelProperty(value = "Average wait time (in seconds) of all Calls in the Queue.")
305+
@ApiModelProperty(value = "The average amount of time (in seconds) for a call to be removed from the queue.")
306306

307-
public String getAverageWaitTime() {
308-
return averageWaitTime;
307+
public Integer getAverageQueueRemovalTime() {
308+
return averageQueueRemovalTime;
309309
}
310310

311311

312-
public void setAverageWaitTime(String averageWaitTime) {
313-
this.averageWaitTime = averageWaitTime;
312+
public void setAverageQueueRemovalTime(Integer averageQueueRemovalTime) {
313+
this.averageQueueRemovalTime = averageQueueRemovalTime;
314314
}
315315

316316

@@ -355,7 +355,7 @@ public boolean equals(Object o) {
355355
Objects.equals(this.alias, queueResult.alias) &&
356356
Objects.equals(this.maxSize, queueResult.maxSize) &&
357357
Objects.equals(this.currentSize, queueResult.currentSize) &&
358-
Objects.equals(this.averageWaitTime, queueResult.averageWaitTime) &&
358+
Objects.equals(this.averageQueueRemovalTime, queueResult.averageQueueRemovalTime) &&
359359
Objects.equals(this.subresourceUris, queueResult.subresourceUris);
360360
}
361361

@@ -365,7 +365,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
365365

366366
@Override
367367
public int hashCode() {
368-
return Objects.hash(uri, dateCreated, dateUpdated, revision, accountId, queueId, alias, maxSize, currentSize, averageWaitTime, subresourceUris);
368+
return Objects.hash(uri, dateCreated, dateUpdated, revision, accountId, queueId, alias, maxSize, currentSize, averageQueueRemovalTime, subresourceUris);
369369
}
370370

371371
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -388,7 +388,7 @@ public String toString() {
388388
sb.append(" alias: ").append(toIndentedString(alias)).append("\n");
389389
sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n");
390390
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
391-
sb.append(" averageWaitTime: ").append(toIndentedString(averageWaitTime)).append("\n");
391+
sb.append(" averageQueueRemovalTime: ").append(toIndentedString(averageQueueRemovalTime)).append("\n");
392392
sb.append(" subresourceUris: ").append(toIndentedString(subresourceUris)).append("\n");
393393
sb.append("}");
394394
return sb.toString();

src/main/java/com/github/freeclimbapi/QueueResultAllOf.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public class QueueResultAllOf {
5353

5454
public static final String SERIALIZED_NAME_CURRENT_SIZE = "currentSize";
5555
@SerializedName(SERIALIZED_NAME_CURRENT_SIZE)
56-
private String currentSize;
56+
private Integer currentSize;
5757

58-
public static final String SERIALIZED_NAME_AVERAGE_WAIT_TIME = "averageWaitTime";
59-
@SerializedName(SERIALIZED_NAME_AVERAGE_WAIT_TIME)
60-
private String averageWaitTime;
58+
public static final String SERIALIZED_NAME_AVERAGE_QUEUE_REMOVAL_TIME = "averageQueueRemovalTime";
59+
@SerializedName(SERIALIZED_NAME_AVERAGE_QUEUE_REMOVAL_TIME)
60+
private Integer averageQueueRemovalTime;
6161

6262
public static final String SERIALIZED_NAME_SUBRESOURCE_URIS = "subresourceUris";
6363
@SerializedName(SERIALIZED_NAME_SUBRESOURCE_URIS)
@@ -158,7 +158,7 @@ public void setMaxSize(Integer maxSize) {
158158
}
159159

160160

161-
public QueueResultAllOf currentSize(String currentSize) {
161+
public QueueResultAllOf currentSize(Integer currentSize) {
162162

163163
this.currentSize = currentSize;
164164
return this;
@@ -171,36 +171,36 @@ public QueueResultAllOf currentSize(String currentSize) {
171171
@javax.annotation.Nullable
172172
@ApiModelProperty(value = "Count of Calls currently in the Queue.")
173173

174-
public String getCurrentSize() {
174+
public Integer getCurrentSize() {
175175
return currentSize;
176176
}
177177

178178

179-
public void setCurrentSize(String currentSize) {
179+
public void setCurrentSize(Integer currentSize) {
180180
this.currentSize = currentSize;
181181
}
182182

183183

184-
public QueueResultAllOf averageWaitTime(String averageWaitTime) {
184+
public QueueResultAllOf averageQueueRemovalTime(Integer averageQueueRemovalTime) {
185185

186-
this.averageWaitTime = averageWaitTime;
186+
this.averageQueueRemovalTime = averageQueueRemovalTime;
187187
return this;
188188
}
189189

190190
/**
191-
* Average wait time (in seconds) of all Calls in the Queue.
192-
* @return averageWaitTime
191+
* The average amount of time (in seconds) for a call to be removed from the queue.
192+
* @return averageQueueRemovalTime
193193
**/
194194
@javax.annotation.Nullable
195-
@ApiModelProperty(value = "Average wait time (in seconds) of all Calls in the Queue.")
195+
@ApiModelProperty(value = "The average amount of time (in seconds) for a call to be removed from the queue.")
196196

197-
public String getAverageWaitTime() {
198-
return averageWaitTime;
197+
public Integer getAverageQueueRemovalTime() {
198+
return averageQueueRemovalTime;
199199
}
200200

201201

202-
public void setAverageWaitTime(String averageWaitTime) {
203-
this.averageWaitTime = averageWaitTime;
202+
public void setAverageQueueRemovalTime(Integer averageQueueRemovalTime) {
203+
this.averageQueueRemovalTime = averageQueueRemovalTime;
204204
}
205205

206206

@@ -241,7 +241,7 @@ public boolean equals(Object o) {
241241
Objects.equals(this.alias, queueResultAllOf.alias) &&
242242
Objects.equals(this.maxSize, queueResultAllOf.maxSize) &&
243243
Objects.equals(this.currentSize, queueResultAllOf.currentSize) &&
244-
Objects.equals(this.averageWaitTime, queueResultAllOf.averageWaitTime) &&
244+
Objects.equals(this.averageQueueRemovalTime, queueResultAllOf.averageQueueRemovalTime) &&
245245
Objects.equals(this.subresourceUris, queueResultAllOf.subresourceUris);
246246
}
247247

@@ -251,7 +251,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
251251

252252
@Override
253253
public int hashCode() {
254-
return Objects.hash(accountId, queueId, alias, maxSize, currentSize, averageWaitTime, subresourceUris);
254+
return Objects.hash(accountId, queueId, alias, maxSize, currentSize, averageQueueRemovalTime, subresourceUris);
255255
}
256256

257257
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -270,7 +270,7 @@ public String toString() {
270270
sb.append(" alias: ").append(toIndentedString(alias)).append("\n");
271271
sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n");
272272
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
273-
sb.append(" averageWaitTime: ").append(toIndentedString(averageWaitTime)).append("\n");
273+
sb.append(" averageQueueRemovalTime: ").append(toIndentedString(averageQueueRemovalTime)).append("\n");
274274
sb.append(" subresourceUris: ").append(toIndentedString(subresourceUris)).append("\n");
275275
sb.append("}");
276276
return sb.toString();

src/test/java/com/github/freeclimbapi/QueueResultAllOfTest.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,15 @@ public void maxSizeTest() {
8787
@Test
8888
public void currentSizeTest() {
8989

90-
model.setCurrentSize("TEST_STRING");
91-
Assert.assertEquals("TEST_STRING", model.getCurrentSize());
92-
9390

9491
}
9592

9693
/**
97-
* Test the property 'averageWaitTime'
94+
* Test the property 'averageQueueRemovalTime'
9895
*/
9996
@Test
100-
public void averageWaitTimeTest() {
97+
public void averageQueueRemovalTimeTest() {
10198

102-
model.setAverageWaitTime("TEST_STRING");
103-
Assert.assertEquals("TEST_STRING", model.getAverageWaitTime());
104-
10599

106100
}
107101

0 commit comments

Comments
 (0)