Skip to content

Commit

Permalink
Merge pull request #25 from sematext/SC-12618
Browse files Browse the repository at this point in the history
Regenerated client for update to swagger-godegen v3.0.30
  • Loading branch information
hollerloudly authored Dec 23, 2021
2 parents f7e1d33 + 7426e7c commit 040e82a
Show file tree
Hide file tree
Showing 145 changed files with 1,399 additions and 903 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.sematext'
version = '0.1.2'
version = '0.4.0'

buildscript {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ lazy val root = (project in file(".")).
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.5.17",
"io.swagger.core.v3" % "swagger-annotations" % "2.0.0",
"com.squareup.okhttp" % "okhttp" % "2.7.5",
"com.squareup.okhttp" % "logging-interceptor" % "2.7.5",
"com.google.code.gson" % "gson" % "2.8.1",
"io.gsonfire" % "gson-fire" % "1.8.0" % "compile",
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)
Expand Down
1 change: 1 addition & 0 deletions docs/AlertNotification.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertNotification

## Properties

| Name | Type | Description | Notes |
| ---------------- | ----------- | ----------- | ---------- |
| **appName** | **String** | | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/AlertNotificationRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertNotificationRequest

## Properties

| Name | Type | Description | Notes |
| ------------------- | ---------- | --------------------------------------------------------------------------------------------------------------- | ---------- |
| **defaultInterval** | **Long** | | [optional] |
Expand Down
14 changes: 10 additions & 4 deletions docs/AlertNotificationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ All URIs are relative to */*
| [**getAlertNotificationsForUserUsingPOST**](AlertNotificationsApi.md#getAlertNotificationsForUserUsingPOST) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |

<a name="getAlertNotificationsForAppUsingPOST"></a>

# **getAlertNotificationsForAppUsingPOST**

> NotificationsResponse getAlertNotificationsForAppUsingPOST(body, appId)
Get alert notifications for an app

Default value of interval is 1d

### Example

```java
// Import classes:
//import com.sematext.cloud.ApiClient;
Expand Down Expand Up @@ -61,18 +64,21 @@ try {

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Content-Type**: application/json
- **Accept**: application/json

<a name="getAlertNotificationsForUserUsingPOST"></a>

# **getAlertNotificationsForUserUsingPOST**

> NotificationsResponse getAlertNotificationsForUserUsingPOST(body)
Get alert notifications for a user

Default value of interval is 1d

### Example

```java
// Import classes:
//import com.sematext.cloud.ApiClient;
Expand Down Expand Up @@ -116,5 +122,5 @@ try {

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Content-Type**: application/json
- **Accept**: application/json
3 changes: 3 additions & 0 deletions docs/AlertRule.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertRule

## Properties

| Name | Type | Description | Notes |
| ----------------------------------------- | ----------------------------------------------------------------------------- | ----------- | ---------- |
| **accountEmail** | **String** | | [optional] |
Expand Down Expand Up @@ -53,7 +54,9 @@
| **valueName** | **String** | | [optional] |

<a name="EstimateOperationEnum"></a>

## Enum: EstimateOperationEnum

| Name | Value |
| ------------- | ------------------------- |
| LESS | &quot;LESS&quot; |
Expand Down
1 change: 1 addition & 0 deletions docs/AlertRuleResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertRuleResponse

## Properties

| Name | Type | Description | Notes |
| ----------- | ------------------------------------------------------- | ----------- | ---------- |
| **data** | [**AlertRuleResponseEntry**](AlertRuleResponseEntry.md) | | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/AlertRuleResponseEntry.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertRuleResponseEntry

## Properties

| Name | Type | Description | Notes |
| ------------- | ----------------------------- | ----------- | ---------- |
| **alertRule** | [**AlertRule**](AlertRule.md) | | [optional] |
1 change: 1 addition & 0 deletions docs/AlertRuleScheduleTimeRangeDto.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertRuleScheduleTimeRangeDto

## Properties

| Name | Type | Description | Notes |
| --------- | ---------- | ----------- | ---------- |
| **end** | **String** | | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/AlertRuleScheduleWeekdayDto.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertRuleScheduleWeekdayDto

## Properties

| Name | Type | Description | Notes |
| ------------- | --------------------------------------------------------------------------------- | ----------- | ---------- |
| **day** | **String** | | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/AlertRulesResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertRulesResponse

## Properties

| Name | Type | Description | Notes |
| ----------- | --------------------------------------------------------- | ----------- | ---------- |
| **data** | [**AlertRulesResponseEntry**](AlertRulesResponseEntry.md) | | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/AlertRulesResponseEntry.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AlertRulesResponseEntry

## Properties

| Name | Type | Description | Notes |
| -------------- | ----------------------------------------- | ----------- | ---------- |
| **alertRules** | [**List&lt;AlertRule&gt;**](AlertRule.md) | | [optional] |
91 changes: 53 additions & 38 deletions docs/AlertsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

All URIs are relative to */*

| Method | HTTP request | Description |
| --------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
| [**createAlertUsingPOST1**](AlertsApi.md#createAlertUsingPOST1) | **POST** /users-web/api/v3/alerts | Create alert rule |
| [**deleteAlertRuleUsingDELETE1**](AlertsApi.md#deleteAlertRuleUsingDELETE1) | **DELETE** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
| [**disableAlertRuleUsingPUT1**](AlertsApi.md#disableAlertRuleUsingPUT1) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
| [**enableAlertRuleUsingPUT1**](AlertsApi.md#enableAlertRuleUsingPUT1) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
| [**getAlertRulesForAppUsingGET**](AlertsApi.md#getAlertRulesForAppUsingGET) | **GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |

<a name="createAlertUsingPOST1"></a>
# **createAlertUsingPOST1**
> AlertRuleResponse createAlertUsingPOST1(body)
| Method | HTTP request | Description |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
| [**createAlertUsingPOST**](AlertsApi.md#createAlertUsingPOST) | **POST** /users-web/api/v3/alerts | Create alert rule |
| [**deleteAlertRuleUsingDELETE1**](AlertsApi.md#deleteAlertRuleUsingDELETE1) | **DELETE** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
| [**disableAlertRuleUsingPUT**](AlertsApi.md#disableAlertRuleUsingPUT) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
| [**enableAlertRuleUsingPUT**](AlertsApi.md#enableAlertRuleUsingPUT) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
| [**getAlertRulesForAppUsingGET1**](AlertsApi.md#getAlertRulesForAppUsingGET1) | **GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |

<a name="createAlertUsingPOST"></a>

# **createAlertUsingPOST**

> AlertRuleResponse createAlertUsingPOST(body)
Create alert rule

### Example

```java
// Import classes:
//import com.sematext.cloud.ApiClient;
Expand All @@ -36,10 +39,10 @@ api_key.setApiKey("YOUR API KEY");
AlertsApi apiInstance = new AlertsApi();
AlertRule body = new AlertRule(); // AlertRule | dto
try {
AlertRuleResponse result = apiInstance.createAlertUsingPOST1(body);
AlertRuleResponse result = apiInstance.createAlertUsingPOST(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlertsApi#createAlertUsingPOST1");
System.err.println("Exception when calling AlertsApi#createAlertUsingPOST");
e.printStackTrace();
}
```
Expand All @@ -60,16 +63,19 @@ try {

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Content-Type**: application/json
- **Accept**: application/json

<a name="deleteAlertRuleUsingDELETE1"></a>

# **deleteAlertRuleUsingDELETE1**

> GenericMapBasedApiResponse deleteAlertRuleUsingDELETE1(updateableAlertId)
Delete alert rule

### Example

```java
// Import classes:
//import com.sematext.cloud.ApiClient;
Expand Down Expand Up @@ -113,16 +119,19 @@ try {

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json

<a name="disableAlertRuleUsingPUT"></a>

<a name="disableAlertRuleUsingPUT1"></a>
# **disableAlertRuleUsingPUT1**
> GenericMapBasedApiResponse disableAlertRuleUsingPUT1(updateableAlertId)
# **disableAlertRuleUsingPUT**

> GenericMapBasedApiResponse disableAlertRuleUsingPUT(updateableAlertId)
Disable alert rule

### Example

```java
// Import classes:
//import com.sematext.cloud.ApiClient;
Expand All @@ -142,10 +151,10 @@ api_key.setApiKey("YOUR API KEY");
AlertsApi apiInstance = new AlertsApi();
Long updateableAlertId = 789L; // Long | updateableAlertId
try {
GenericMapBasedApiResponse result = apiInstance.disableAlertRuleUsingPUT1(updateableAlertId);
GenericMapBasedApiResponse result = apiInstance.disableAlertRuleUsingPUT(updateableAlertId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlertsApi#disableAlertRuleUsingPUT1");
System.err.println("Exception when calling AlertsApi#disableAlertRuleUsingPUT");
e.printStackTrace();
}
```
Expand All @@ -166,16 +175,19 @@ try {

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json

<a name="enableAlertRuleUsingPUT"></a>

# **enableAlertRuleUsingPUT**

<a name="enableAlertRuleUsingPUT1"></a>
# **enableAlertRuleUsingPUT1**
> GenericMapBasedApiResponse enableAlertRuleUsingPUT1(updateableAlertId)
> GenericMapBasedApiResponse enableAlertRuleUsingPUT(updateableAlertId)
Enable alert rule

### Example

```java
// Import classes:
//import com.sematext.cloud.ApiClient;
Expand All @@ -195,10 +207,10 @@ api_key.setApiKey("YOUR API KEY");
AlertsApi apiInstance = new AlertsApi();
Long updateableAlertId = 789L; // Long | updateableAlertId
try {
GenericMapBasedApiResponse result = apiInstance.enableAlertRuleUsingPUT1(updateableAlertId);
GenericMapBasedApiResponse result = apiInstance.enableAlertRuleUsingPUT(updateableAlertId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlertsApi#enableAlertRuleUsingPUT1");
System.err.println("Exception when calling AlertsApi#enableAlertRuleUsingPUT");
e.printStackTrace();
}
```
Expand All @@ -219,16 +231,19 @@ try {

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json

<a name="getAlertRulesForAppUsingGET1"></a>

<a name="getAlertRulesForAppUsingGET"></a>
# **getAlertRulesForAppUsingGET**
> AlertRulesResponse getAlertRulesForAppUsingGET(appId)
# **getAlertRulesForAppUsingGET1**

> AlertRulesResponse getAlertRulesForAppUsingGET1(appId)
Get alert rules for an app

### Example

```java
// Import classes:
//import com.sematext.cloud.ApiClient;
Expand All @@ -248,10 +263,10 @@ api_key.setApiKey("YOUR API KEY");
AlertsApi apiInstance = new AlertsApi();
Long appId = 789L; // Long | appId
try {
AlertRulesResponse result = apiInstance.getAlertRulesForAppUsingGET(appId);
AlertRulesResponse result = apiInstance.getAlertRulesForAppUsingGET1(appId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlertsApi#getAlertRulesForAppUsingGET");
System.err.println("Exception when calling AlertsApi#getAlertRulesForAppUsingGET1");
e.printStackTrace();
}
```
Expand All @@ -272,5 +287,5 @@ try {

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json
1 change: 1 addition & 0 deletions docs/App.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# App

## Properties

| Name | Type | Description | Notes |
| ------------------------- | --------------------------------------------------- | ----------- | ---------- |
| **ajaxThreshold** | **Long** | | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/AppDescription.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AppDescription

## Properties

| Name | Type | Description | Notes |
| --------------- | ---------- | ----------- | ---------- |
| **description** | **String** | | [optional] |
Loading

0 comments on commit 040e82a

Please sign in to comment.