Package: sematext-cloud-client
sematext-api-client-pythonASematext CloudAPI client, for interaction with Sematext Cloud solution monitoring, alerting and log shipping.One of a family of clients in following flavours:sematext-api-client-javascriptsematext-api-client-rustsematext-api-client-rubysematext-api-client-pythonsematext-api-client-phpsematext-api-client-javasematext-api-client-goRefer to below link for deeper information on the API itself.Sematext Cloud API ReferenceContentssematext-api-client-pythonContentsGetting StartedAuthenticationRequirements.Installationpip installTestingSetuptoolsGetting StartedReferenceDocumentation For ModelsGetting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.AuthenticationThis client code requires a Sematext API Access token to function. You can find this by logging into yourSematext Cloud AccountRequirements.Python 2.7 and 3.4+Installationpip installIf the python package is hosted on Github, you can install directly from Githubpipinstallgit+https://github.com/sematext/sematext-api-client-python.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/sematext-api-client-python.git)Then import the package:importstcloudTestingpython-munittestdiscoverSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importstcloudGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportstcloudfromstcloud.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: api_keyconfiguration=stcloud.Configuration()configuration.api_key['Authorization']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['Authorization'] = 'Bearer'# create an instance of the API classapi_instance=stcloud.AlertNotificationsApi(stcloud.ApiClient(configuration))app_id=789# int | appIdtime_interval=stcloud.AlertNotificationRequest()# AlertNotificationRequest | Time Intervaltry:# Get alert notifications for an appapi_response=api_instance.get_alert_notifications_for_app_using_post(app_id,time_interval)pprint(api_response)exceptApiExceptionase:print("Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post:%s\n"%e)ReferenceAll URIs are relative tohttps://localhostClassMethodHTTP requestDescriptionAlertNotificationsApiget_alert_notifications_for_app_using_postPOST/users-web/api/v3/apps/{appId}/notifications/alertsGet alert notifications for an appAlertNotificationsApiget_alert_notifications_for_user_using_post1POST/users-web/api/v3/notifications/alertsGet alert notifications for a userAlertsApicreate_alert_using_postPOST/users-web/api/v3/alertsCreate alert ruleAlertsApidelete_alert_rule_using_delete1DELETE/users-web/api/v3/alerts/{updateableAlertId}Delete alert ruleAlertsApidisable_alert_rule_using_put1PUT/users-web/api/v3/alerts/{updateableAlertId}/disableDisable alert ruleAlertsApienable_alert_rule_using_put1PUT/users-web/api/v3/alerts/{updateableAlertId}/enableEnable alert ruleAlertsApiget_alert_rules_for_app_using_get1GET/users-web/api/v3/apps/{appId}/alertsGet alert rules for an appAppsApidelete_using_delete1DELETE/users-web/api/v3/apps/{anyStateAppId}deleteAppsApiget_app_types_using_getGET/users-web/api/v3/apps/typesGet all App types supported for the account identified with apiKeyAppsApiget_using_get1GET/users-web/api/v3/apps/{anyStateAppId}Gets defails for one particular AppAppsApiinvite_app_guests_using_post1POST/users-web/api/v3/apps/guestsInvite guests to an appAppsApilist_apps_users_using_get1GET/users-web/api/v3/apps/usersGet all users of apps accessible to this accountAppsApilist_using_getGET/users-web/api/v3/appsGet all apps accessible by account identified with apiKeyAppsApiupdate_description_using_putPUT/users-web/api/v3/apps/{anyStateAppId}/descriptionUpdate description of the appAppsApiupdate_using_put2PUT/users-web/api/v3/apps/{anyStateAppId}Update appBillingApiget_detailed_invoice_using_get1GET/users-web/api/v3/billing/invoice/{service}/{year}/{month}Get invoice detailsBillingApilist_available_plans_using_getGET/users-web/api/v3/billing/availablePlansGet available plansBillingApiupdate_plan_using_putPUT/users-web/api/v3/billing/info/{appId}Update plan for an appLogsAppApicreate_logsene_applicationPOST/logsene-reports/api/v3/appsCreate Logs AppMonitoringAppApicreate_spm_application1POST/spm-reports/api/v3/appsCreate Monitoring AppResetPasswordApireset_password_using_post1POST/users-web/api/v3/account/password/resetReset PasswordSubscriptionsApicreate_for_app_using_post1POST/users-web/api/v3/apps/{appId}/subscriptionCreate App subscriptionSubscriptionsApicreate_for_dash_using_post1POST/users-web/api/v3/dashboards/{dashId}/subscriptionCreate dashboard subscriptionSubscriptionsApidelete_using_delete3DELETE/users-web/api/v3/subscriptions/{updateableSubscriptionId}Delete subscriptionSubscriptionsApilist_using_get3GET/users-web/api/v3/apps/{appId}/subscriptionsGet subscriptions for an AppSubscriptionsApilist_using_get4GET/users-web/api/v3/subscriptionsGet current account's subscriptionsSubscriptionsApisend_app_report_using_post1POST/users-web/api/v3/apps/{appId}/report/sendEmail an App reportSubscriptionsApisend_dash_report_using_post1POST/users-web/api/v3/dashboards/{dashId}/report/sendEmail a dashboard reportSubscriptionsApitoggle_enabled_using_put1PUT/users-web/api/v3/subscriptions/{updateableSubscriptionId}Toggle subscription statusSubscriptionsApiupdate_for_app_using_putPUT/users-web/api/v3/apps/{appId}/subscriptionUpdate App subscriptionSubscriptionsApiupdate_for_dash_using_put1PUT/users-web/api/v3/dashboards/{dashId}/subscriptionUpdate dashboard subscriptionAwsSettingsControllerApiupdate_using_putPUT/users-web/api/v3/apps/{appId}/awsUpdate App's AWS CloudWatch settingsTagApiControllerApiget_tag_names_using_get1GET/spm-reports/api/v3/apps/{appIds}/tagNamesGets tag names for the given application identifiers appearing in the given time frame.TagApiControllerApiget_using_get1GET/spm-reports/api/v3/apps/{appIds}/tagsGets values for specified tags for the given application identifiers appearing in the given time frame.TagApiControllerApiget_using_get2GET/spm-reports/api/v3/apps/{appIds}/metrics/filtersGets values for specified tags for the given application identifiers appearing in the given time frame.TokensApiControllerApicreate_app_token1POST/users-web/api/v3/apps/{appId}/tokensCreate new app tokenTokensApiControllerApidelete_app_token1DELETE/users-web/api/v3/apps/{appId}/tokens/{tokenId}Delete app tokenTokensApiControllerApiget_app_tokensGET/users-web/api/v3/apps/{appId}/tokensGet app available tokensTokensApiControllerApiregenerate_app_token1POST/users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerateRegenerate app token)TokensApiControllerApiupdate_app_tokenPUT/users-web/api/v3/apps/{appId}/tokens/{tokenId}Update app token (enable/disable or name)Documentation For ModelsAlertNotificationRequestAlertRuleAlertRuleScheduleTimeRangeDtoAlertRuleScheduleWeekdayDtoAppAppDescriptionAppMetadataBasicAuthMethodDtoBasicOrganizationDtoBillingInfoCloudWatchSettingsCreateAppInfoCreateTokenDtoErrorFilterValueGenericApiResponseInvitationNotificationIntegrationPlanReportInfoServiceIntegrationSubscriptionDashboardDtoSubscriptionDtoUpdateAppInfoUpdateSubscriptionDtoUpdateTokenDtoUserInfoUserPermissionsUserRole