Skip to content

Commit 8e7be8d

Browse files
authoredMay 4, 2020
Merge pull request #3 from sematext/develop
Develop
2 parents cff4529 + dd4c516 commit 8e7be8d

File tree

85 files changed

+9858
-2
lines changed

Some content is hidden

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

85 files changed

+9858
-2
lines changed
 

‎Cargo.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "stcloud"
3+
version = "0.1.0"
4+
authors = ["Swagger Codegen team and contributors"]
5+
6+
[dependencies]
7+
serde = "1.0"
8+
serde_derive = "1.0"
9+
serde_yaml = "0.7"
10+
serde_json = "1.0"
11+
base64 = "~0.7.0"
12+
futures = "0.1.16"
13+
hyper = "0.11.6"
14+
url = "1.5"
15+
16+
[dev-dependencies]
17+
tokio-core = "*"

‎README.md

+98-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,98 @@
1-
# sematext-api-client-rust
2-
Sematext API Client for Rust
1+
# Sematext Cloud - API Client - sematext-api-rust
2+
3+
This client code talks to [Sematext Cloud API](https://sematext.com/cloud/) providing a way to automate setup of solution monitoring.<br>
4+
It's primary purpose is as a client module supporting [Sematext Terraform Provider](https://github.com/sematext/terraform-provider-sematext)
5+
<br><br>
6+
7+
Further information and API browsing refer to the [Sematext Cloud API web page](https://sematext.com/docs/api/)
8+
9+
10+
## Getting Started
11+
12+
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
13+
14+
### Authentication
15+
16+
This client code requires a Sematext API Access token to function. You can find this by logging into your [Sematext Cloud Account](https://apps.sematext.com/ui/account/api)
17+
18+
19+
## Installation
20+
Put the package under your project folder and add the following in import:
21+
```
22+
"./stcloud"
23+
```
24+
25+
## Documentation for API Endpoints
26+
27+
All URIs are relative to *https://localhost*
28+
29+
Class | Method | HTTP request | Description
30+
------------ | ------------- | ------------- | -------------
31+
*AlertNotificationsApi* | [**get_alert_notifications_for_app_using_post**](docs/AlertNotificationsApi.md#get_alert_notifications_for_app_using_post) | **Post** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app
32+
*AlertNotificationsApi* | [**get_alert_notifications_for_user_using_post**](docs/AlertNotificationsApi.md#get_alert_notifications_for_user_using_post) | **Post** /users-web/api/v3/notifications/alerts | Get alert notifications for a user
33+
*AlertsApi* | [**create_alert_using_post**](docs/AlertsApi.md#create_alert_using_post) | **Post** /users-web/api/v3/alerts | Create alert rule
34+
*AlertsApi* | [**delete_alert_rule_using_delete**](docs/AlertsApi.md#delete_alert_rule_using_delete) | **Delete** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule
35+
*AlertsApi* | [**disable_alert_rule_using_put**](docs/AlertsApi.md#disable_alert_rule_using_put) | **Put** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule
36+
*AlertsApi* | [**enable_alert_rule_using_put**](docs/AlertsApi.md#enable_alert_rule_using_put) | **Put** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule
37+
*AlertsApi* | [**get_alert_rules_for_app_using_get**](docs/AlertsApi.md#get_alert_rules_for_app_using_get) | **Get** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app
38+
*AppsApi* | [**get_app_types_using_get**](docs/AppsApi.md#get_app_types_using_get) | **Get** /users-web/api/v3/apps/types | Get all App types supported for the account identified with apiKey
39+
*AppsApi* | [**get_using_get**](docs/AppsApi.md#get_using_get) | **Get** /users-web/api/v3/apps/{anyStateAppId} | Gets defails for one particular App
40+
*AppsApi* | [**invite_app_guests_using_post**](docs/AppsApi.md#invite_app_guests_using_post) | **Post** /users-web/api/v3/apps/guests | Invite guests to an app
41+
*AppsApi* | [**list_apps_users_using_get**](docs/AppsApi.md#list_apps_users_using_get) | **Get** /users-web/api/v3/apps/users | Get all users of apps accessible to this account
42+
*AppsApi* | [**list_using_get**](docs/AppsApi.md#list_using_get) | **Get** /users-web/api/v3/apps | Get all apps accessible by account identified with apiKey
43+
*AppsApi* | [**update_description_using_put**](docs/AppsApi.md#update_description_using_put) | **Put** /users-web/api/v3/apps/{anyStateAppId}/description | Update description of the app
44+
*AppsApi* | [**update_using_put1**](docs/AppsApi.md#update_using_put1) | **Put** /users-web/api/v3/apps/{anyStateAppId} | Update app
45+
*AwsSettingsControllerApi* | [**update_using_put**](docs/AwsSettingsControllerApi.md#update_using_put) | **Put** /users-web/api/v3/apps/{appId}/aws | Update App&#39;s AWS CloudWatch settings
46+
*BillingApi* | [**get_detailed_invoice_using_get**](docs/BillingApi.md#get_detailed_invoice_using_get) | **Get** /users-web/api/v3/billing/invoice/{service}/{year}/{month} | Get invoice details
47+
*BillingApi* | [**list_available_plans_using_get**](docs/BillingApi.md#list_available_plans_using_get) | **Get** /users-web/api/v3/billing/availablePlans | Get available plans
48+
*BillingApi* | [**update_plan_using_put**](docs/BillingApi.md#update_plan_using_put) | **Put** /users-web/api/v3/billing/info/{appId} | Update plan for an app
49+
*LogsAppApi* | [**create_logsene_application**](docs/LogsAppApi.md#create_logsene_application) | **Post** /logsene-reports/api/v3/apps | Create Logs App
50+
*MetricsApi* | [**list_data_series_using_post1**](docs/MetricsApi.md#list_data_series_using_post1) | **Post** /spm-reports/api/v3/apps/{appId}/metrics/data | Get metrics data points for an app
51+
*MetricsApi* | [**list_filters_using_post**](docs/MetricsApi.md#list_filters_using_post) | **Post** /spm-reports/api/v3/apps/{appId}/metrics/filters | Get metrics filters and their values for an app
52+
*MetricsApi* | [**list_metrics_keys_using_get1**](docs/MetricsApi.md#list_metrics_keys_using_get1) | **Get** /spm-reports/api/v3/apps/{appId}/metrics/keys | Get metrics keys for an app
53+
*MetricsApi* | [**list_metrics_using_get1**](docs/MetricsApi.md#list_metrics_using_get1) | **Get** /spm-reports/api/v3/apps/{appId}/metrics | Get metrics info for an app
54+
*MonitoringAppApi* | [**create_spm_application**](docs/MonitoringAppApi.md#create_spm_application) | **Post** /spm-reports/api/v3/apps | Create Monitoring App
55+
*ResetPasswordApi* | [**reset_password_using_post**](docs/ResetPasswordApi.md#reset_password_using_post) | **Post** /users-web/api/v3/account/password/reset | Reset Password
56+
*SavedQueriesApi* | [**delete_saved_query_using_delete**](docs/SavedQueriesApi.md#delete_saved_query_using_delete) | **Delete** /users-web/api/v3/savedQueries/{updateableQueryId} | Delete saved query
57+
*SavedQueriesApi* | [**get_saved_queries_for_app_using_get**](docs/SavedQueriesApi.md#get_saved_queries_for_app_using_get) | **Get** /users-web/api/v3/apps/{appId}/savedQueries | Get saved queries for an app
58+
*SavedQueriesApi* | [**save_query_using_post**](docs/SavedQueriesApi.md#save_query_using_post) | **Post** /users-web/api/v3/savedQueries | Create saved query
59+
*SavedQueriesApi* | [**save_query_using_put**](docs/SavedQueriesApi.md#save_query_using_put) | **Put** /users-web/api/v3/savedQueries/{updateableQueryId} | Update saved query
60+
*SubscriptionsApi* | [**list_using_get1**](docs/SubscriptionsApi.md#list_using_get1) | **Get** /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an app
61+
*SubscriptionsApi* | [**send_report_using_post**](docs/SubscriptionsApi.md#send_report_using_post) | **Post** /users-web/api/v3/apps/{appId}/report/send | Trigger emailing of report for an app
62+
*TagApiControllerApi* | [**get_tag_names_using_get**](docs/TagApiControllerApi.md#get_tag_names_using_get) | **Get** /spm-reports/api/v3/apps/{appIds}/tagNames | Gets tag names for the given application identifiers appearing in the given time frame.
63+
*TagApiControllerApi* | [**get_using_get2**](docs/TagApiControllerApi.md#get_using_get2) | **Get** /spm-reports/api/v3/apps/{appIds}/metrics/filters | Gets values for specified tags for the given application identifiers appearing in the given time frame.
64+
*TagApiControllerApi* | [**get_using_get3**](docs/TagApiControllerApi.md#get_using_get3) | **Get** /spm-reports/api/v3/apps/{appIds}/tags | Gets values for specified tags for the given application identifiers appearing in the given time frame.
65+
66+
67+
## Documentation For Models
68+
69+
- [AlertNotificationRequest](docs/AlertNotificationRequest.md)
70+
- [AlertRule](docs/AlertRule.md)
71+
- [AlertRuleScheduleTimeRangeDto](docs/AlertRuleScheduleTimeRangeDto.md)
72+
- [AlertRuleScheduleWeekdayDto](docs/AlertRuleScheduleWeekdayDto.md)
73+
- [App](docs/App.md)
74+
- [AppDescription](docs/AppDescription.md)
75+
- [AppMetadata](docs/AppMetadata.md)
76+
- [BasicAuthMethodDto](docs/BasicAuthMethodDto.md)
77+
- [BasicOrganizationDto](docs/BasicOrganizationDto.md)
78+
- [BillingInfo](docs/BillingInfo.md)
79+
- [CloudWatchSettings](docs/CloudWatchSettings.md)
80+
- [CreateAppInfo](docs/CreateAppInfo.md)
81+
- [DataSeriesFilter](docs/DataSeriesFilter.md)
82+
- [DataSeriesRequest](docs/DataSeriesRequest.md)
83+
- [Error](docs/Error.md)
84+
- [FilterValue](docs/FilterValue.md)
85+
- [GenericApiResponse](docs/GenericApiResponse.md)
86+
- [Invitation](docs/Invitation.md)
87+
- [NotificationIntegration](docs/NotificationIntegration.md)
88+
- [Plan](docs/Plan.md)
89+
- [ReportInfo](docs/ReportInfo.md)
90+
- [SavedQuery](docs/SavedQuery.md)
91+
- [ServiceIntegration](docs/ServiceIntegration.md)
92+
- [UpdateAppInfo](docs/UpdateAppInfo.md)
93+
- [UserInfo](docs/UserInfo.md)
94+
- [UserPermissions](docs/UserPermissions.md)
95+
- [UserRole](docs/UserRole.md)
96+
97+
98+

0 commit comments

Comments
 (0)