Skip to content

Commit 645d3ab

Browse files
committedAug 8, 2022
Regenerated to codgen v3 using rust module, updated dependancies.
1 parent 49d5242 commit 645d3ab

File tree

183 files changed

+8487
-3557
lines changed

Some content is hidden

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

183 files changed

+8487
-3557
lines changed
 

‎Cargo.toml

+16-9
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,23 @@ readme = "README.md"
77
repository = "https://github.com/sematext/sematext-api-client-rust"
88
license-file = "LICENSE"
99
keywords = ["monitoring", "logging", "metrics", "alerting", "sematext"]
10+
edition = "2021"
1011

1112
[dependencies]
12-
serde = "1.0"
13-
serde_derive = "1.0"
14-
serde_yaml = "0.8.4"
15-
serde_json = "1.0"
16-
base64 = "~0.7.0"
17-
futures = "0.1.16"
18-
hyper = "0.14.12"
19-
url = "1.5"
13+
serde = "^1.0"
14+
serde_derive = "^1.0"
15+
serde_yaml = "^0.8"
16+
serde_json = "^1.0"
17+
base64 = "^0.12"
18+
futures = "^0.3"
19+
hyper = { version = "^0.14", features = ["client", "http1", "tcp"] }
20+
url = "^2"
21+
headers = "^0.3"
22+
tokio = { version = "^1", features = ["full"] }
23+
bigdecimal = { version = "^0.1", features = ["serde"] }
24+
chrono = { version = "^0.4", features = ["serde"] }
25+
async-trait = "^0.1"
2026

2127
[dev-dependencies]
22-
tokio-core = "0.1.18"
28+
tokio-core = "^0.1"
29+
tokio = { version = "^1", features = ["full"] }

‎docs/AlertNotificationsApi.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# \AlertNotificationsApi
1+
# {{classname}}
22

3-
All URIs are relative to *<https://localhost>*
3+
All URIs are relative to */*
44

5-
| Method | HTTP request | Description |
6-
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
7-
| [**get_alert_notifications_for_app_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post) | **Post** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app |
8-
| [**get_alert_notifications_for_user_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post) | **Post** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |
5+
| Method | HTTP request | Description |
6+
| ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ---------------------------------- |
7+
| [**get_alert_notifications_for_app_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post1) | **POST** users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app |
8+
| [**get_alert_notifications_for_user_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post1) | **POST** users-web/api/v3/notifications/alerts | Get alert notifications for a user |
99

10-
# **get_alert_notifications_for_app_using_post**
10+
# **get_alert_notifications_for_app_using_post1**
1111

12-
> ::models::NotificationsResponse get_alert_notifications_for_app_using_post(ctx, app_id, time_interval)
12+
> NotificationsResponse get_alert_notifications_for_app_using_post1(ctx, body, app_id)
1313
Get alert notifications for an app
1414

1515
Default value of interval is 1d
1616

1717
### Required Parameters
1818

19-
| Name | Type | Description | Notes |
20-
| ----------------- | ----------------------------------------------------------- | ------------------------------------- | ------------------------ |
21-
| **ctx** | **context.Context** | context containing the authentication | nil if no authentication |
22-
| **app_id** | **i64** | appId |
23-
| **time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
19+
| Name | Type | Description | Notes |
20+
| ---------- | ----------------------------------------------------------- | ------------------------------------- | ------------------------ |
21+
| **ctx** | **context.Context** | context containing the authentication | nil if no authentication |
22+
| **body** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
23+
| **app_id** | **i64** | appId |
2424

2525
### Return type
2626

27-
[**::models::NotificationsResponse**](NotificationsResponse.md)
27+
[**NotificationsResponse**](NotificationsResponse.md)
2828

2929
### Authorization
3030

31-
[api_key](../README.md#api_key)
31+
[api_key](../README.md#api_key),
3232

3333
### HTTP request headers
3434

@@ -37,27 +37,27 @@ Default value of interval is 1d
3737

3838
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
3939

40-
# **get_alert_notifications_for_user_using_post**
40+
# **get_alert_notifications_for_user_using_post1**
4141

42-
> ::models::NotificationsResponse get_alert_notifications_for_user_using_post(ctx, time_interval)
42+
> NotificationsResponse get_alert_notifications_for_user_using_post1(ctx, body)
4343
Get alert notifications for a user
4444

4545
Default value of interval is 1d
4646

4747
### Required Parameters
4848

49-
| Name | Type | Description | Notes |
50-
| ----------------- | ----------------------------------------------------------- | ------------------------------------- | ------------------------ |
51-
| **ctx** | **context.Context** | context containing the authentication | nil if no authentication |
52-
| **time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
49+
| Name | Type | Description | Notes |
50+
| -------- | ----------------------------------------------------------- | ------------------------------------- | ------------------------ |
51+
| **ctx** | **context.Context** | context containing the authentication | nil if no authentication |
52+
| **body** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
5353

5454
### Return type
5555

56-
[**::models::NotificationsResponse**](NotificationsResponse.md)
56+
[**NotificationsResponse**](NotificationsResponse.md)
5757

5858
### Authorization
5959

60-
[api_key](../README.md#api_key)
60+
[api_key](../README.md#api_key),
6161

6262
### HTTP request headers
6363

0 commit comments

Comments
 (0)
Please sign in to comment.