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 | getalertnotificationsforappusingpost | Post /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app | | AlertNotificationsApi | getalertnotificationsforuserusingpost1 | 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* | deletealertruleusingdelete1 | Delete /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule | | *AlertsApi* | disablealertruleusingput1 | 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* | deleteusingdelete1 | Delete /users-web/api/v3/apps/{anyStateAppId} | delete | | *AppsApi* | getapptypesusingget | Get /users-web/api/v3/apps/types | Get all App types supported for the account identified with apiKey | | *AppsApi* | getusingget1 | Get /users-web/api/v3/apps/{anyStateAppId} | Gets defails for one particular App | | *AppsApi* | inviteappguestsusingpost1 | Post /users-web/api/v3/apps/guests | Invite guests to an app | | *AppsApi* | listappsusersusingget1 | 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 | updateusingput2 | 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 | 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 | | *MonitoringAppApi* | createspmapplication1 | Post /spm-reports/api/v3/apps | Create Monitoring App | | *ResetPasswordApi* | resetpasswordusingpost1 | Post /users-web/api/v3/account/password/reset | Reset Password | | SubscriptionsApi | createforappusingpost1 | 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 | deleteusingdelete3 | Delete /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Delete subscription | | SubscriptionsApi | listusingget3 | Get /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an App | | SubscriptionsApi | listusingget4 | 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* | updateforappusingput | Put /users-web/api/v3/apps/{appId}/subscription | Update App subscription | | *SubscriptionsApi* | updatefordashusingput1 | Put /users-web/api/v3/dashboards/{dashId}/subscription | Update dashboard subscription | | *TagApiControllerApi* | gettagnamesusingget1 | Get /spm-reports/api/v3/apps/{appIds}/tagNames | Gets tag names for the given application identifiers appearing in the given time frame. | | *TagApiControllerApi* | getusingget1 | Get /spm-reports/api/v3/apps/{appIds}/tags | Gets values for specified tags 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. | | *TokensApiControllerApi* | createapptoken1 | 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* | getapptokens | Get /users-web/api/v3/apps/{appId}/tokens | Get app available tokens | | *TokensApiControllerApi* | regenerateapptoken1 | Post /users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerate | Regenerate app token) | | *TokensApiControllerApi* | updateapp_token | Put /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Update app token (enable/disable or name) |