sematext-api-client-rust


A Sematext Cloud API client, for interaction with Sematext Cloud solution monitoring, alerting and log shipping.


License


One of a family of clients in following flavours:


Refer to below link for deeper information on the API itself.


Contents


Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Authentication

This client code requires a Sematext API Access token to function. You can find this by logging into your Sematext Cloud Account

Installation

Put the package under your project folder and add the following in import: "./stcloud"

Reference

All URIs are relative to https://localhost

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- AlertNotificationsApi | getalertnotificationsforappusingpost | Post /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app AlertNotificationsApi | getalertnotificationsforuserusingpost | Post /users-web/api/v3/notifications/alerts | Get alert notifications for a user AlertsApi | createalertusingpost | Post /users-web/api/v3/alerts | Create alert rule *AlertsApi* | deletealertruleusingdelete | Delete /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule *AlertsApi* | disablealertruleusingput | Put /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule *AlertsApi* | enablealertruleusingput | Put /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule *AlertsApi* | getalertrulesforappusingget | Get /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app *AppsApi* | getapptypesusingget | Get /users-web/api/v3/apps/types | Get all App types supported for the account identified with apiKey *AppsApi* | getusingget | Get /users-web/api/v3/apps/{anyStateAppId} | Gets defails for one particular App *AppsApi* | inviteappguestsusingpost | Post /users-web/api/v3/apps/guests | Invite guests to an app *AppsApi* | listappsusersusingget | Get /users-web/api/v3/apps/users | Get all users of apps accessible to this account *AppsApi* | listusingget | Get /users-web/api/v3/apps | Get all apps accessible by account identified with apiKey *AppsApi* | updatedescriptionusingput | Put /users-web/api/v3/apps/{anyStateAppId}/description | Update description of the app AppsApi | updateusingput1 | Put /users-web/api/v3/apps/{anyStateAppId} | Update app AwsSettingsControllerApi | updateusingput | Put /users-web/api/v3/apps/{appId}/aws | Update App's AWS CloudWatch settings BillingApi | getdetailedinvoiceusingget | Get /users-web/api/v3/billing/invoice/{service}/{year}/{month} | Get invoice details BillingApi | listavailableplansusingget | Get /users-web/api/v3/billing/availablePlans | Get available plans BillingApi | updateplanusingput | Put /users-web/api/v3/billing/info/{appId} | Update plan for an app *LogsAppApi* | createlogseneapplication | Post /logsene-reports/api/v3/apps | Create Logs App *MetricsApi* | listdataseriesusingpost1 | Post /spm-reports/api/v3/apps/{appId}/metrics/data | Get metrics data points for an app *MetricsApi* | listfiltersusingpost | Post /spm-reports/api/v3/apps/{appId}/metrics/filters | Get metrics filters and their values for an app MetricsApi | listmetricskeysusingget1 | Get /spm-reports/api/v3/apps/{appId}/metrics/keys | Get metrics keys for an app MetricsApi | listmetricsusingget1 | Get /spm-reports/api/v3/apps/{appId}/metrics | Get metrics info for an app *MonitoringAppApi* | createspmapplication | Post /spm-reports/api/v3/apps | Create Monitoring App *ResetPasswordApi* | resetpasswordusingpost | Post /users-web/api/v3/account/password/reset | Reset Password SavedQueriesApi | deletesavedqueryusingdelete | Delete /users-web/api/v3/savedQueries/{updateableQueryId} | Delete saved query SavedQueriesApi | getsavedqueriesforappusingget | Get /users-web/api/v3/apps/{appId}/savedQueries | Get saved queries for an app SavedQueriesApi | savequeryusingpost | Post /users-web/api/v3/savedQueries | Create saved query *SavedQueriesApi* | savequeryusingput | Put /users-web/api/v3/savedQueries/{updateableQueryId} | Update saved query SubscriptionsApi | listusingget1 | Get /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an app SubscriptionsApi | sendreportusingpost | Post /users-web/api/v3/apps/{appId}/report/send | Trigger emailing of report for an app *TagApiControllerApi* | gettagnamesusingget | Get /spm-reports/api/v3/apps/{appIds}/tagNames | Gets tag names for the given application identifiers appearing in the given time frame. *TagApiControllerApi* | getusingget2 | 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. *TagApiControllerApi* | getusing_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.

Documentation For Models