Skip to content

Commit 040e82a

Browse files
authored
Merge pull request #25 from sematext/SC-12618
Regenerated client for update to swagger-godegen v3.0.30
2 parents f7e1d33 + 7426e7c commit 040e82a

File tree

145 files changed

+1399
-903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1399
-903
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.sematext'
5-
version = '0.1.2'
5+
version = '0.4.0'
66

77
buildscript {
88
repositories {

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ lazy val root = (project in file(".")).
99
publishArtifact in (Compile, packageDoc) := false,
1010
resolvers += Resolver.mavenLocal,
1111
libraryDependencies ++= Seq(
12-
"io.swagger" % "swagger-annotations" % "1.5.17",
12+
"io.swagger.core.v3" % "swagger-annotations" % "2.0.0",
1313
"com.squareup.okhttp" % "okhttp" % "2.7.5",
1414
"com.squareup.okhttp" % "logging-interceptor" % "2.7.5",
1515
"com.google.code.gson" % "gson" % "2.8.1",
16-
"io.gsonfire" % "gson-fire" % "1.8.0" % "compile",
16+
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
1717
"junit" % "junit" % "4.12" % "test",
1818
"com.novocode" % "junit-interface" % "0.10" % "test"
1919
)

docs/AlertNotification.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertNotification
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ---------------- | ----------- | ----------- | ---------- |
67
| **appName** | **String** | | [optional] |

docs/AlertNotificationRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertNotificationRequest
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------------- | ---------- | --------------------------------------------------------------------------------------------------------------- | ---------- |
67
| **defaultInterval** | **Long** | | [optional] |

docs/AlertNotificationsApi.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ All URIs are relative to */*
88
| [**getAlertNotificationsForUserUsingPOST**](AlertNotificationsApi.md#getAlertNotificationsForUserUsingPOST) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |
99

1010
<a name="getAlertNotificationsForAppUsingPOST"></a>
11+
1112
# **getAlertNotificationsForAppUsingPOST**
13+
1214
> NotificationsResponse getAlertNotificationsForAppUsingPOST(body, appId)
1315
1416
Get alert notifications for an app
1517

1618
Default value of interval is 1d
1719

1820
### Example
21+
1922
```java
2023
// Import classes:
2124
//import com.sematext.cloud.ApiClient;
@@ -61,18 +64,21 @@ try {
6164

6265
### HTTP request headers
6366

64-
- **Content-Type**: application/json
65-
- **Accept**: application/json
67+
- **Content-Type**: application/json
68+
- **Accept**: application/json
6669

6770
<a name="getAlertNotificationsForUserUsingPOST"></a>
71+
6872
# **getAlertNotificationsForUserUsingPOST**
73+
6974
> NotificationsResponse getAlertNotificationsForUserUsingPOST(body)
7075
7176
Get alert notifications for a user
7277

7378
Default value of interval is 1d
7479

7580
### Example
81+
7682
```java
7783
// Import classes:
7884
//import com.sematext.cloud.ApiClient;
@@ -116,5 +122,5 @@ try {
116122

117123
### HTTP request headers
118124

119-
- **Content-Type**: application/json
120-
- **Accept**: application/json
125+
- **Content-Type**: application/json
126+
- **Accept**: application/json

docs/AlertRule.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertRule
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ----------------------------------------- | ----------------------------------------------------------------------------- | ----------- | ---------- |
67
| **accountEmail** | **String** | | [optional] |
@@ -53,7 +54,9 @@
5354
| **valueName** | **String** | | [optional] |
5455

5556
<a name="EstimateOperationEnum"></a>
57+
5658
## Enum: EstimateOperationEnum
59+
5760
| Name | Value |
5861
| ------------- | ------------------------- |
5962
| LESS | &quot;LESS&quot; |

docs/AlertRuleResponse.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertRuleResponse
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ----------- | ------------------------------------------------------- | ----------- | ---------- |
67
| **data** | [**AlertRuleResponseEntry**](AlertRuleResponseEntry.md) | | [optional] |

docs/AlertRuleResponseEntry.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertRuleResponseEntry
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------- | ----------------------------- | ----------- | ---------- |
67
| **alertRule** | [**AlertRule**](AlertRule.md) | | [optional] |

docs/AlertRuleScheduleTimeRangeDto.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertRuleScheduleTimeRangeDto
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| --------- | ---------- | ----------- | ---------- |
67
| **end** | **String** | | [optional] |

docs/AlertRuleScheduleWeekdayDto.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertRuleScheduleWeekdayDto
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------- | --------------------------------------------------------------------------------- | ----------- | ---------- |
67
| **day** | **String** | | [optional] |

docs/AlertRulesResponse.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertRulesResponse
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ----------- | --------------------------------------------------------- | ----------- | ---------- |
67
| **data** | [**AlertRulesResponseEntry**](AlertRulesResponseEntry.md) | | [optional] |

docs/AlertRulesResponseEntry.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AlertRulesResponseEntry
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| -------------- | ----------------------------------------- | ----------- | ---------- |
67
| **alertRules** | [**List&lt;AlertRule&gt;**](AlertRule.md) | | [optional] |

docs/AlertsApi.md

+53-38
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@
22

33
All URIs are relative to */*
44

5-
| Method | HTTP request | Description |
6-
| --------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
7-
| [**createAlertUsingPOST1**](AlertsApi.md#createAlertUsingPOST1) | **POST** /users-web/api/v3/alerts | Create alert rule |
8-
| [**deleteAlertRuleUsingDELETE1**](AlertsApi.md#deleteAlertRuleUsingDELETE1) | **DELETE** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
9-
| [**disableAlertRuleUsingPUT1**](AlertsApi.md#disableAlertRuleUsingPUT1) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
10-
| [**enableAlertRuleUsingPUT1**](AlertsApi.md#enableAlertRuleUsingPUT1) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
11-
| [**getAlertRulesForAppUsingGET**](AlertsApi.md#getAlertRulesForAppUsingGET) | **GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |
12-
13-
<a name="createAlertUsingPOST1"></a>
14-
# **createAlertUsingPOST1**
15-
> AlertRuleResponse createAlertUsingPOST1(body)
5+
| Method | HTTP request | Description |
6+
| ----------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
7+
| [**createAlertUsingPOST**](AlertsApi.md#createAlertUsingPOST) | **POST** /users-web/api/v3/alerts | Create alert rule |
8+
| [**deleteAlertRuleUsingDELETE1**](AlertsApi.md#deleteAlertRuleUsingDELETE1) | **DELETE** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
9+
| [**disableAlertRuleUsingPUT**](AlertsApi.md#disableAlertRuleUsingPUT) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
10+
| [**enableAlertRuleUsingPUT**](AlertsApi.md#enableAlertRuleUsingPUT) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
11+
| [**getAlertRulesForAppUsingGET1**](AlertsApi.md#getAlertRulesForAppUsingGET1) | **GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |
12+
13+
<a name="createAlertUsingPOST"></a>
14+
15+
# **createAlertUsingPOST**
16+
17+
> AlertRuleResponse createAlertUsingPOST(body)
1618
1719
Create alert rule
1820

1921
### Example
22+
2023
```java
2124
// Import classes:
2225
//import com.sematext.cloud.ApiClient;
@@ -36,10 +39,10 @@ api_key.setApiKey("YOUR API KEY");
3639
AlertsApi apiInstance = new AlertsApi();
3740
AlertRule body = new AlertRule(); // AlertRule | dto
3841
try {
39-
AlertRuleResponse result = apiInstance.createAlertUsingPOST1(body);
42+
AlertRuleResponse result = apiInstance.createAlertUsingPOST(body);
4043
System.out.println(result);
4144
} catch (ApiException e) {
42-
System.err.println("Exception when calling AlertsApi#createAlertUsingPOST1");
45+
System.err.println("Exception when calling AlertsApi#createAlertUsingPOST");
4346
e.printStackTrace();
4447
}
4548
```
@@ -60,16 +63,19 @@ try {
6063

6164
### HTTP request headers
6265

63-
- **Content-Type**: application/json
64-
- **Accept**: application/json
66+
- **Content-Type**: application/json
67+
- **Accept**: application/json
6568

6669
<a name="deleteAlertRuleUsingDELETE1"></a>
70+
6771
# **deleteAlertRuleUsingDELETE1**
72+
6873
> GenericMapBasedApiResponse deleteAlertRuleUsingDELETE1(updateableAlertId)
6974
7075
Delete alert rule
7176

7277
### Example
78+
7379
```java
7480
// Import classes:
7581
//import com.sematext.cloud.ApiClient;
@@ -113,16 +119,19 @@ try {
113119

114120
### HTTP request headers
115121

116-
- **Content-Type**: Not defined
117-
- **Accept**: application/json
122+
- **Content-Type**: Not defined
123+
- **Accept**: application/json
124+
125+
<a name="disableAlertRuleUsingPUT"></a>
118126

119-
<a name="disableAlertRuleUsingPUT1"></a>
120-
# **disableAlertRuleUsingPUT1**
121-
> GenericMapBasedApiResponse disableAlertRuleUsingPUT1(updateableAlertId)
127+
# **disableAlertRuleUsingPUT**
128+
129+
> GenericMapBasedApiResponse disableAlertRuleUsingPUT(updateableAlertId)
122130
123131
Disable alert rule
124132

125133
### Example
134+
126135
```java
127136
// Import classes:
128137
//import com.sematext.cloud.ApiClient;
@@ -142,10 +151,10 @@ api_key.setApiKey("YOUR API KEY");
142151
AlertsApi apiInstance = new AlertsApi();
143152
Long updateableAlertId = 789L; // Long | updateableAlertId
144153
try {
145-
GenericMapBasedApiResponse result = apiInstance.disableAlertRuleUsingPUT1(updateableAlertId);
154+
GenericMapBasedApiResponse result = apiInstance.disableAlertRuleUsingPUT(updateableAlertId);
146155
System.out.println(result);
147156
} catch (ApiException e) {
148-
System.err.println("Exception when calling AlertsApi#disableAlertRuleUsingPUT1");
157+
System.err.println("Exception when calling AlertsApi#disableAlertRuleUsingPUT");
149158
e.printStackTrace();
150159
}
151160
```
@@ -166,16 +175,19 @@ try {
166175

167176
### HTTP request headers
168177

169-
- **Content-Type**: Not defined
170-
- **Accept**: application/json
178+
- **Content-Type**: Not defined
179+
- **Accept**: application/json
180+
181+
<a name="enableAlertRuleUsingPUT"></a>
182+
183+
# **enableAlertRuleUsingPUT**
171184

172-
<a name="enableAlertRuleUsingPUT1"></a>
173-
# **enableAlertRuleUsingPUT1**
174-
> GenericMapBasedApiResponse enableAlertRuleUsingPUT1(updateableAlertId)
185+
> GenericMapBasedApiResponse enableAlertRuleUsingPUT(updateableAlertId)
175186
176187
Enable alert rule
177188

178189
### Example
190+
179191
```java
180192
// Import classes:
181193
//import com.sematext.cloud.ApiClient;
@@ -195,10 +207,10 @@ api_key.setApiKey("YOUR API KEY");
195207
AlertsApi apiInstance = new AlertsApi();
196208
Long updateableAlertId = 789L; // Long | updateableAlertId
197209
try {
198-
GenericMapBasedApiResponse result = apiInstance.enableAlertRuleUsingPUT1(updateableAlertId);
210+
GenericMapBasedApiResponse result = apiInstance.enableAlertRuleUsingPUT(updateableAlertId);
199211
System.out.println(result);
200212
} catch (ApiException e) {
201-
System.err.println("Exception when calling AlertsApi#enableAlertRuleUsingPUT1");
213+
System.err.println("Exception when calling AlertsApi#enableAlertRuleUsingPUT");
202214
e.printStackTrace();
203215
}
204216
```
@@ -219,16 +231,19 @@ try {
219231

220232
### HTTP request headers
221233

222-
- **Content-Type**: Not defined
223-
- **Accept**: application/json
234+
- **Content-Type**: Not defined
235+
- **Accept**: application/json
236+
237+
<a name="getAlertRulesForAppUsingGET1"></a>
224238

225-
<a name="getAlertRulesForAppUsingGET"></a>
226-
# **getAlertRulesForAppUsingGET**
227-
> AlertRulesResponse getAlertRulesForAppUsingGET(appId)
239+
# **getAlertRulesForAppUsingGET1**
240+
241+
> AlertRulesResponse getAlertRulesForAppUsingGET1(appId)
228242
229243
Get alert rules for an app
230244

231245
### Example
246+
232247
```java
233248
// Import classes:
234249
//import com.sematext.cloud.ApiClient;
@@ -248,10 +263,10 @@ api_key.setApiKey("YOUR API KEY");
248263
AlertsApi apiInstance = new AlertsApi();
249264
Long appId = 789L; // Long | appId
250265
try {
251-
AlertRulesResponse result = apiInstance.getAlertRulesForAppUsingGET(appId);
266+
AlertRulesResponse result = apiInstance.getAlertRulesForAppUsingGET1(appId);
252267
System.out.println(result);
253268
} catch (ApiException e) {
254-
System.err.println("Exception when calling AlertsApi#getAlertRulesForAppUsingGET");
269+
System.err.println("Exception when calling AlertsApi#getAlertRulesForAppUsingGET1");
255270
e.printStackTrace();
256271
}
257272
```
@@ -272,5 +287,5 @@ try {
272287

273288
### HTTP request headers
274289

275-
- **Content-Type**: Not defined
276-
- **Accept**: application/json
290+
- **Content-Type**: Not defined
291+
- **Accept**: application/json

docs/App.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# App
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------------------- | --------------------------------------------------- | ----------- | ---------- |
67
| **ajaxThreshold** | **Long** | | [optional] |

docs/AppDescription.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AppDescription
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| --------------- | ---------- | ----------- | ---------- |
67
| **description** | **String** | | [optional] |

0 commit comments

Comments
 (0)