Skip to content

Commit 49d5242

Browse files
authored
Merge pull request #25 from sematext/SC-13794
July 2022 updates in line with Sematext Cloud API v3
2 parents 82d2400 + 2f32d5b commit 49d5242

File tree

110 files changed

+657
-566
lines changed

Some content is hidden

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

110 files changed

+657
-566
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stcloud"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
authors = ["Sematext Inc"]
55
description = "Client package for talking to Sematext Cloud."
66
readme = "README.md"
@@ -11,11 +11,11 @@ keywords = ["monitoring", "logging", "metrics", "alerting", "sematext"]
1111
[dependencies]
1212
serde = "1.0"
1313
serde_derive = "1.0"
14-
serde_yaml = "0.7"
14+
serde_yaml = "0.8.4"
1515
serde_json = "1.0"
1616
base64 = "~0.7.0"
1717
futures = "0.1.16"
18-
hyper = "0.11.6"
18+
hyper = "0.14.12"
1919
url = "1.5"
2020

2121
[dev-dependencies]

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
| **app_name** | **String** | | [optional] [default to null] |

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
| **default_interval** | **i64** | | [optional] [default to null] |

docs/AlertNotificationsApi.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# \AlertNotificationsApi
22

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

55
| Method | HTTP request | Description |
66
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
77
| [**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 |
88
| [**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 |
99

10-
1110
# **get_alert_notifications_for_app_using_post**
11+
1212
> ::models::NotificationsResponse get_alert_notifications_for_app_using_post(ctx, app_id, time_interval)
1313
Get alert notifications for an app
1414

@@ -32,12 +32,13 @@ Default value of interval is 1d
3232

3333
### HTTP request headers
3434

35-
- **Content-Type**: application/json
36-
- **Accept**: application/json
35+
- **Content-Type**: application/json
36+
- **Accept**: application/json
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

4040
# **get_alert_notifications_for_user_using_post**
41+
4142
> ::models::NotificationsResponse get_alert_notifications_for_user_using_post(ctx, time_interval)
4243
Get alert notifications for a user
4344

@@ -60,7 +61,7 @@ Default value of interval is 1d
6061

6162
### HTTP request headers
6263

63-
- **Content-Type**: application/json
64-
- **Accept**: application/json
64+
- **Content-Type**: application/json
65+
- **Accept**: application/json
6566

6667
[[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)

docs/AlertRule.md

+2
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
| **account_email** | **String** | | [optional] [default to null] |
@@ -37,6 +38,7 @@
3738
| **notification_emails** | **Vec<String>** | | [optional] [default to null] |
3839
| **notification_integrations** | [**Vec<::models::NotificationIntegration>**](NotificationIntegration.md) | | [optional] [default to null] |
3940
| **notifications_enabled** | **bool** | | [optional] [default to null] |
41+
| **priority** | **String** | | [optional] [default to null] |
4042
| **query** | **String** | | [optional] [default to null] |
4143
| **report_name** | **String** | | [optional] [default to null] |
4244
| **rule_key** | **i64** | | [optional] [default to null] |

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** | [***::models::AlertRuleResponseEntry**](AlertRuleResponseEntry.md) | | [optional] [default to null] |

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
| **alert_rule** | [***::models::AlertRule**](AlertRule.md) | | [optional] [default to null] |

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] [default to null] |

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] [default to null] |

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** | [***::models::AlertRulesResponseEntry**](AlertRulesResponseEntry.md) | | [optional] [default to null] |

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
| **alert_rules** | [**Vec<::models::AlertRule>**](AlertRule.md) | | [optional] [default to null] |

docs/AlertsApi.md

+24-20
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# \AlertsApi
22

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

55
| Method | HTTP request | Description |
66
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
7-
| [**create_alert_using_post1**](AlertsApi.md#create_alert_using_post1) | **Post** /users-web/api/v3/alerts | Create alert rule |
8-
| [**delete_alert_rule_using_delete1**](AlertsApi.md#delete_alert_rule_using_delete1) | **Delete** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
7+
| [**create_alert_using_post**](AlertsApi.md#create_alert_using_post) | **Post** /users-web/api/v3/alerts | Create alert rule |
8+
| [**delete_alert_rule_using_delete**](AlertsApi.md#delete_alert_rule_using_delete) | **Delete** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
99
| [**disable_alert_rule_using_put1**](AlertsApi.md#disable_alert_rule_using_put1) | **Put** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
10-
| [**enable_alert_rule_using_put1**](AlertsApi.md#enable_alert_rule_using_put1) | **Put** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
10+
| [**enable_alert_rule_using_put**](AlertsApi.md#enable_alert_rule_using_put) | **Put** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
1111
| [**get_alert_rules_for_app_using_get**](AlertsApi.md#get_alert_rules_for_app_using_get) | **Get** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |
1212

13+
# **create_alert_using_post**
1314

14-
# **create_alert_using_post1**
15-
> ::models::AlertRuleResponse create_alert_using_post1(ctx, dto)
15+
> ::models::AlertRuleResponse create_alert_using_post(ctx, dto)
1616
Create alert rule
1717

1818
### Required Parameters
@@ -32,13 +32,14 @@ Create alert rule
3232

3333
### HTTP request headers
3434

35-
- **Content-Type**: application/json
36-
- **Accept**: application/json
35+
- **Content-Type**: application/json
36+
- **Accept**: application/json
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-
# **delete_alert_rule_using_delete1**
41-
> ::models::GenericMapBasedApiResponse delete_alert_rule_using_delete1(ctx, updateable_alert_id)
40+
# **delete_alert_rule_using_delete**
41+
42+
> ::models::GenericMapBasedApiResponse delete_alert_rule_using_delete(ctx, updateable_alert_id)
4243
Delete alert rule
4344

4445
### Required Parameters
@@ -58,12 +59,13 @@ Delete alert rule
5859

5960
### HTTP request headers
6061

61-
- **Content-Type**: application/json
62-
- **Accept**: application/json
62+
- **Content-Type**: application/json
63+
- **Accept**: application/json
6364

6465
[[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)
6566

6667
# **disable_alert_rule_using_put1**
68+
6769
> ::models::GenericMapBasedApiResponse disable_alert_rule_using_put1(ctx, updateable_alert_id)
6870
Disable alert rule
6971

@@ -84,13 +86,14 @@ Disable alert rule
8486

8587
### HTTP request headers
8688

87-
- **Content-Type**: application/json
88-
- **Accept**: application/json
89+
- **Content-Type**: application/json
90+
- **Accept**: application/json
8991

9092
[[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)
9193

92-
# **enable_alert_rule_using_put1**
93-
> ::models::GenericMapBasedApiResponse enable_alert_rule_using_put1(ctx, updateable_alert_id)
94+
# **enable_alert_rule_using_put**
95+
96+
> ::models::GenericMapBasedApiResponse enable_alert_rule_using_put(ctx, updateable_alert_id)
9497
Enable alert rule
9598

9699
### Required Parameters
@@ -110,12 +113,13 @@ Enable alert rule
110113

111114
### HTTP request headers
112115

113-
- **Content-Type**: application/json
114-
- **Accept**: application/json
116+
- **Content-Type**: application/json
117+
- **Accept**: application/json
115118

116119
[[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)
117120

118121
# **get_alert_rules_for_app_using_get**
122+
119123
> ::models::AlertRulesResponse get_alert_rules_for_app_using_get(ctx, app_id)
120124
Get alert rules for an app
121125

@@ -136,7 +140,7 @@ Get alert rules for an app
136140

137141
### HTTP request headers
138142

139-
- **Content-Type**: application/json
140-
- **Accept**: application/json
143+
- **Content-Type**: application/json
144+
- **Accept**: application/json
141145

142146
[[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)

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
| **ajax_threshold** | **i64** | | [optional] [default to null] |

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] [default to null] |

docs/AppMetadata.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------------------------ | --------------- | ---------------------------------------------------------- | ---------------------------- |
67
| **aws_cloud_watch_access_key** | **String** | | [optional] [default to null] |

docs/AppResponse.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ----------- | ------------------------------------------------------ | ----------- | ---------------------------- |
67
| **data** | [***::models::AppResponseEntry**](AppResponseEntry.md) | | [optional] [default to null] |

docs/AppResponseEntry.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------- | ---------------------------- | ----------- | ---------------------------- |
67
| **app** | [***::models::App**](App.md) | | [optional] [default to null] |

docs/AppTypesResponse.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ----------- | ---------------------------------------------------------------- | ----------- | ---------------------------- |
67
| **data** | [***::models::AppTypesResponseEntry**](AppTypesResponseEntry.md) | | [optional] [default to null] |

docs/AppTypesResponseEntry.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------- | --------------- | ----------- | ---------------------------- |
67
| **app_types** | **Vec<String>** | | [optional] [default to null] |

0 commit comments

Comments
 (0)