A Sematext Cloud API client, for interaction with Sematext Cloud solution monitoring, alerting and log shipping.
One of a family of clients in following flavours:
Refer to below link for deeper information on the API itself.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This client code requires a Sematext API Access token to function. You can find this by logging into your Sematext Cloud Account
Put the package under your project folder and add the following in import:
"./stcloud"
All URIs are relative to https://localhost
| Class | Method | HTTP request | Description | | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | AlertNotificationsApi | getalertnotificationsforappusingpost1 | 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 | createalertusingpost1 | Post /users-web/api/v3/alerts | Create alert rule | | *AlertsApi* | deletealertruleusingdelete1 | Delete /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule | | *AlertsApi* | disablealertruleusingput | Put /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule | | *AlertsApi* | enablealertruleusingput1 | Put /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule | | *AlertsApi* | getalertrulesforappusingget1 | Get /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app | | *AppsApi* | deleteusingdelete | Delete /users-web/api/v3/apps/{anyStateAppId} | delete | | *AppsApi* | getapptypesusingget1 | 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* | listusingget1 | 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 | updateusingput3 | 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 | getdetailedinvoiceusingget1 | Get /users-web/api/v3/billing/invoice/{service}/{year}/{month} | Get invoice details | | BillingApi | listavailableplansusingget1 | 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* | listdataseriesusingpost | 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 | listmetricskeysusingget | 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* | resetpasswordusingpost1 | 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 | createforappusingpost | Post /users-web/api/v3/apps/{appId}/subscription | Create App subscription | | SubscriptionsApi | createfordashusingpost1 | Post /users-web/api/v3/dashboards/{dashId}/subscription | Create dashboard subscription | | SubscriptionsApi | deleteusingdelete2 | Delete /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Delete subscription | | SubscriptionsApi | listusingget2 | Get /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an App | | SubscriptionsApi | listusingget5 | Get /users-web/api/v3/subscriptions | Get current account's subscriptions | | SubscriptionsApi | sendappreportusingpost1 | Post /users-web/api/v3/apps/{appId}/report/send | Email an App report | | SubscriptionsApi | senddashreportusingpost1 | Post /users-web/api/v3/dashboards/{dashId}/report/send | Email a dashboard report | | SubscriptionsApi | toggleenabledusingput1 | Put /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Toggle subscription status | | *SubscriptionsApi* | updateforappusingput1 | Put /users-web/api/v3/apps/{appId}/subscription | Update App subscription | | *SubscriptionsApi* | updatefordashusingput | Put /users-web/api/v3/dashboards/{dashId}/subscription | Update dashboard subscription | | *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* | getusingget3 | Get /spm-reports/api/v3/apps/{appIds}/tags | Gets values for specified tags for the given application identifiers appearing in the given time frame. | | *TokensApiControllerApi* | createapptoken | Post /users-web/api/v3/apps/{appId}/tokens | Create new app token | | *TokensApiControllerApi* | deleteapptoken1 | Delete /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Delete app token | | *TokensApiControllerApi* | getapptokens1 | Get /users-web/api/v3/apps/{appId}/tokens | Get app available tokens | | *TokensApiControllerApi* | regenerateapptoken | Post /users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerate | Regenerate app token) | | *TokensApiControllerApi* | updateapp_token1 | Put /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Update app token (enable/disable) |