SematextCloud 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/README.md +43 -54
- data/SematextCloud.gemspec +0 -6
- data/docs/AlertNotification.md +12 -0
- data/docs/AlertNotificationRequest.md +1 -1
- data/docs/AlertNotificationsApi.md +33 -37
- data/docs/AlertRule.md +1 -1
- data/docs/AlertRuleResponse.md +9 -0
- data/docs/AlertRuleResponseEntry.md +6 -0
- data/docs/AlertRuleScheduleTimeRangeDto.md +1 -1
- data/docs/AlertRuleScheduleWeekdayDto.md +1 -1
- data/docs/AlertRulesResponse.md +9 -0
- data/docs/AlertRulesResponseEntry.md +6 -0
- data/docs/AlertsApi.md +41 -47
- data/docs/App.md +2 -1
- data/docs/AppDescription.md +1 -1
- data/docs/AppMetadata.md +1 -1
- data/docs/AppResponse.md +9 -0
- data/docs/AppResponseEntry.md +6 -0
- data/docs/AppTypesResponse.md +9 -0
- data/docs/AppTypesResponseEntry.md +6 -0
- data/docs/AppsApi.md +126 -81
- data/docs/AppsResponse.md +9 -0
- data/docs/AppsResponseEntry.md +6 -0
- data/docs/AwsSettingsControllerApi.md +16 -19
- data/docs/BasicAuthMethodDto.md +1 -1
- data/docs/BasicOrganizationDto.md +1 -1
- data/docs/BillingApi.md +35 -42
- data/docs/BillingInfo.md +1 -1
- data/docs/ChargesDetailsResponseDto.md +12 -0
- data/docs/CloudWatchSettings.md +1 -1
- data/docs/CloudWatchSettingsResponse.md +9 -0
- data/docs/CloudWatchSettingsResponseEntry.md +6 -0
- data/docs/CreateAppInfo.md +8 -8
- data/docs/CreateTokenDto.md +1 -0
- data/docs/DailyDto.md +9 -0
- data/docs/DayUsageData.md +26 -0
- data/docs/Dimension.md +7 -0
- data/docs/Error.md +1 -1
- data/docs/EventDto.md +8 -0
- data/docs/FilterValue.md +1 -1
- data/docs/GenericApiResponse.md +7 -7
- data/docs/GenericMapBasedApiResponse.md +9 -0
- data/docs/Invitation.md +2 -2
- data/docs/Invoice.md +11 -0
- data/docs/InvoiceResponse.md +9 -0
- data/docs/InvoiceResponseEntry.md +6 -0
- data/docs/LimitChangeEventDTO.md +8 -0
- data/docs/LogsAppApi.md +13 -15
- data/docs/LogsUsageApiControllerApi.md +60 -0
- data/docs/MailReportResponse.md +9 -0
- data/docs/MailReportResponseResponseEntry.md +6 -0
- data/docs/MinPeriodFeePeriod.md +16 -0
- data/docs/MonitoringAppApi.md +13 -15
- data/docs/NotificationIntegration.md +1 -1
- data/docs/NotificationsResponse.md +9 -0
- data/docs/NotificationsResponseEntry.md +8 -0
- data/docs/Plan.md +16 -16
- data/docs/PlansResponse.md +9 -0
- data/docs/PlansResponseEntry.md +6 -0
- data/docs/ReportInfo.md +1 -1
- data/docs/ResetPasswordApi.md +13 -15
- data/docs/ServiceIntegration.md +1 -1
- data/docs/Subscription.md +20 -0
- data/docs/SubscriptionResponse.md +9 -0
- data/docs/SubscriptionResponseEntry.md +6 -0
- data/docs/SubscriptionsApi.md +93 -110
- data/docs/SubscriptionsResponse.md +9 -0
- data/docs/SubscriptionsResponseEntry.md +6 -0
- data/docs/TagApiControllerApi.md +30 -39
- data/docs/TagNamesResponse.md +6 -0
- data/docs/TokenDto.md +12 -0
- data/docs/TokenResponse.md +9 -0
- data/docs/TokenResponseEntry.md +6 -0
- data/docs/TokensApiControllerApi.md +36 -47
- data/docs/TokensResponse.md +9 -0
- data/docs/TokensResponseEntry.md +6 -0
- data/docs/UpdateAppInfo.md +2 -2
- data/docs/UpdatePlanResponse.md +9 -0
- data/docs/UpdatePlanResponseDto.md +7 -0
- data/docs/UpdatePlanResponseEntry.md +6 -0
- data/docs/UpdateTokenDto.md +1 -0
- data/docs/UsageDto.md +16 -0
- data/docs/UsageMultiResponse.md +9 -0
- data/docs/UsageMultiResponseEntry.md +6 -0
- data/docs/UsageResponse.md +9 -0
- data/docs/UsageResponseEntry.md +6 -0
- data/docs/UserInfo.md +1 -1
- data/docs/UserPermissions.md +1 -1
- data/docs/UserRole.md +1 -1
- data/lib/SematextCloud/api/tokens_api_controller_api.rb +30 -30
- data/lib/SematextCloud/models/create_token_dto.rb +10 -1
- data/lib/SematextCloud/models/update_token_dto.rb +13 -4
- data/lib/SematextCloud/version.rb +1 -1
- data/lib/stcloud.rb +128 -0
- data/lib/stcloud/api/alert_notifications_api.rb +142 -0
- data/lib/stcloud/api/alerts_api.rb +292 -0
- data/lib/stcloud/api/apps_api.rb +452 -0
- data/lib/stcloud/api/aws_settings_controller_api.rb +84 -0
- data/lib/stcloud/api/billing_api.rb +202 -0
- data/lib/stcloud/api/logs_app_api.rb +76 -0
- data/lib/stcloud/api/logs_usage_api_controller_api.rb +86 -0
- data/lib/stcloud/api/monitoring_app_api.rb +76 -0
- data/lib/stcloud/api/reset_password_api.rb +76 -0
- data/lib/stcloud/api/subscriptions_api.rb +610 -0
- data/lib/stcloud/api/tag_api_controller_api.rb +250 -0
- data/lib/stcloud/api/tokens_api_controller_api.rb +324 -0
- data/lib/stcloud/api_client.rb +388 -0
- data/lib/stcloud/api_error.rb +57 -0
- data/lib/stcloud/configuration.rb +205 -0
- data/lib/stcloud/models/alert_notification.rb +260 -0
- data/lib/stcloud/models/alert_notification_request.rb +235 -0
- data/lib/stcloud/models/alert_rule.rb +675 -0
- data/lib/stcloud/models/alert_rule_response.rb +235 -0
- data/lib/stcloud/models/alert_rule_response_entry.rb +206 -0
- data/lib/stcloud/models/alert_rule_schedule_time_range_dto.rb +215 -0
- data/lib/stcloud/models/alert_rule_schedule_weekday_dto.rb +244 -0
- data/lib/stcloud/models/alert_rules_response.rb +235 -0
- data/lib/stcloud/models/alert_rules_response_entry.rb +208 -0
- data/lib/stcloud/models/app.rb +489 -0
- data/lib/stcloud/models/app_description.rb +206 -0
- data/lib/stcloud/models/app_metadata.rb +291 -0
- data/lib/stcloud/models/app_response.rb +235 -0
- data/lib/stcloud/models/app_response_entry.rb +206 -0
- data/lib/stcloud/models/app_types_response.rb +235 -0
- data/lib/stcloud/models/app_types_response_entry.rb +208 -0
- data/lib/stcloud/models/apps_response.rb +235 -0
- data/lib/stcloud/models/apps_response_entry.rb +208 -0
- data/lib/stcloud/models/basic_auth_method_dto.rb +249 -0
- data/lib/stcloud/models/basic_organization_dto.rb +269 -0
- data/lib/stcloud/models/billing_info.rb +224 -0
- data/lib/stcloud/models/charges_details_response_dto.rb +298 -0
- data/lib/stcloud/models/cloud_watch_settings.rb +279 -0
- data/lib/stcloud/models/cloud_watch_settings_response.rb +235 -0
- data/lib/stcloud/models/cloud_watch_settings_response_entry.rb +206 -0
- data/lib/stcloud/models/create_app_info.rb +242 -0
- data/lib/stcloud/models/create_token_dto.rb +224 -0
- data/lib/stcloud/models/daily_dto.rb +233 -0
- data/lib/stcloud/models/day_usage_data.rb +411 -0
- data/lib/stcloud/models/dimension.rb +227 -0
- data/lib/stcloud/models/error.rb +215 -0
- data/lib/stcloud/models/event_dto.rb +258 -0
- data/lib/stcloud/models/filter_value.rb +253 -0
- data/lib/stcloud/models/generic_api_response.rb +236 -0
- data/lib/stcloud/models/generic_map_based_api_response.rb +236 -0
- data/lib/stcloud/models/invitation.rb +348 -0
- data/lib/stcloud/models/invoice.rb +253 -0
- data/lib/stcloud/models/invoice_response.rb +235 -0
- data/lib/stcloud/models/invoice_response_entry.rb +206 -0
- data/lib/stcloud/models/limit_change_event_dto.rb +224 -0
- data/lib/stcloud/models/mail_report_response.rb +235 -0
- data/lib/stcloud/models/mail_report_response_response_entry.rb +206 -0
- data/lib/stcloud/models/min_period_fee_period.rb +296 -0
- data/lib/stcloud/models/notification_integration.rb +347 -0
- data/lib/stcloud/models/notifications_response.rb +235 -0
- data/lib/stcloud/models/notifications_response_entry.rb +226 -0
- data/lib/stcloud/models/plan.rb +360 -0
- data/lib/stcloud/models/plans_response.rb +235 -0
- data/lib/stcloud/models/plans_response_entry.rb +208 -0
- data/lib/stcloud/models/report_info.rb +270 -0
- data/lib/stcloud/models/service_integration.rb +305 -0
- data/lib/stcloud/models/subscription.rb +378 -0
- data/lib/stcloud/models/subscription_dashboard_dto.rb +342 -0
- data/lib/stcloud/models/subscription_dto.rb +351 -0
- data/lib/stcloud/models/subscription_response.rb +235 -0
- data/lib/stcloud/models/subscription_response_entry.rb +206 -0
- data/lib/stcloud/models/subscriptions_response.rb +235 -0
- data/lib/stcloud/models/subscriptions_response_entry.rb +208 -0
- data/lib/stcloud/models/tag_names_response.rb +213 -0
- data/lib/stcloud/models/token_dto.rb +260 -0
- data/lib/stcloud/models/token_response.rb +235 -0
- data/lib/stcloud/models/token_response_entry.rb +206 -0
- data/lib/stcloud/models/tokens_response.rb +235 -0
- data/lib/stcloud/models/tokens_response_entry.rb +208 -0
- data/lib/stcloud/models/update_app_info.rb +312 -0
- data/lib/stcloud/models/update_plan_response.rb +235 -0
- data/lib/stcloud/models/update_plan_response_dto.rb +217 -0
- data/lib/stcloud/models/update_plan_response_entry.rb +206 -0
- data/lib/stcloud/models/update_subscription_dto.rb +206 -0
- data/lib/stcloud/models/update_token_dto.rb +215 -0
- data/lib/stcloud/models/usage_dto.rb +302 -0
- data/lib/stcloud/models/usage_multi_response.rb +235 -0
- data/lib/stcloud/models/usage_multi_response_entry.rb +206 -0
- data/lib/stcloud/models/usage_response.rb +235 -0
- data/lib/stcloud/models/usage_response_entry.rb +206 -0
- data/lib/stcloud/models/user_info.rb +206 -0
- data/lib/stcloud/models/user_permissions.rb +224 -0
- data/lib/stcloud/models/user_role.rb +270 -0
- data/lib/stcloud/version.rb +14 -0
- data/spec/api/alert_notifications_api_spec.rb +12 -13
- data/spec/api/alerts_api_spec.rb +10 -11
- data/spec/api/apps_api_spec.rb +31 -21
- data/spec/api/aws_settings_controller_api_spec.rb +9 -10
- data/spec/api/billing_api_spec.rb +12 -13
- data/spec/api/logs_app_api_spec.rb +6 -7
- data/spec/api/logs_usage_api_controller_api_spec.rb +47 -0
- data/spec/api/monitoring_app_api_spec.rb +6 -7
- data/spec/api/reset_password_api_spec.rb +6 -7
- data/spec/api/subscriptions_api_spec.rb +106 -14
- data/spec/api/tag_api_controller_api_spec.rb +11 -12
- data/spec/api/tokens_api_controller_api_spec.rb +15 -16
- data/spec/api_client_spec.rb +30 -31
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +7 -8
- data/spec/models/alert_notification_request_spec.rb +1 -2
- data/spec/models/alert_notification_spec.rb +76 -0
- data/spec/models/alert_rule_response_entry_spec.rb +40 -0
- data/spec/models/alert_rule_response_spec.rb +58 -0
- data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +1 -2
- data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +1 -2
- data/spec/models/alert_rule_spec.rb +1 -2
- data/spec/models/alert_rules_response_entry_spec.rb +40 -0
- data/spec/models/alert_rules_response_spec.rb +58 -0
- data/spec/models/app_description_spec.rb +1 -2
- data/spec/models/app_metadata_spec.rb +1 -2
- data/spec/models/app_response_entry_spec.rb +40 -0
- data/spec/models/app_response_spec.rb +58 -0
- data/spec/models/app_spec.rb +31 -2
- data/spec/models/app_types_response_entry_spec.rb +40 -0
- data/spec/models/app_types_response_spec.rb +58 -0
- data/spec/models/apps_response_entry_spec.rb +40 -0
- data/spec/models/apps_response_spec.rb +58 -0
- data/spec/models/basic_auth_method_dto_spec.rb +1 -2
- data/spec/models/basic_organization_dto_spec.rb +1 -2
- data/spec/models/billing_info_spec.rb +1 -2
- data/spec/models/charges_details_response_dto_spec.rb +80 -0
- data/spec/models/cloud_watch_settings_response_entry_spec.rb +40 -0
- data/spec/models/cloud_watch_settings_response_spec.rb +58 -0
- data/spec/models/cloud_watch_settings_spec.rb +1 -2
- data/spec/models/create_app_info_spec.rb +1 -2
- data/spec/models/create_token_dto_spec.rb +7 -2
- data/spec/models/daily_dto_spec.rb +58 -0
- data/spec/models/day_usage_data_spec.rb +158 -0
- data/spec/models/dimension_spec.rb +46 -0
- data/spec/models/error_spec.rb +1 -2
- data/spec/models/event_dto_spec.rb +56 -0
- data/spec/models/filter_value_spec.rb +1 -2
- data/spec/models/generic_api_response_spec.rb +1 -2
- data/spec/models/generic_map_based_api_response_spec.rb +58 -0
- data/spec/models/invitation_spec.rb +1 -2
- data/spec/models/invoice_response_entry_spec.rb +40 -0
- data/spec/models/invoice_response_spec.rb +58 -0
- data/spec/models/invoice_spec.rb +70 -0
- data/spec/models/limit_change_event_dto_spec.rb +52 -0
- data/spec/models/mail_report_response_response_entry_spec.rb +40 -0
- data/spec/models/mail_report_response_spec.rb +58 -0
- data/spec/models/min_period_fee_period_spec.rb +100 -0
- data/spec/models/notification_integration_spec.rb +1 -2
- data/spec/models/notifications_response_entry_spec.rb +52 -0
- data/spec/models/notifications_response_spec.rb +58 -0
- data/spec/models/plan_spec.rb +2 -3
- data/spec/models/plans_response_entry_spec.rb +40 -0
- data/spec/models/plans_response_spec.rb +58 -0
- data/spec/models/report_info_spec.rb +1 -2
- data/spec/models/service_integration_spec.rb +1 -2
- data/spec/models/subscription_dashboard_dto_spec.rb +1 -2
- data/spec/models/subscription_dto_spec.rb +1 -2
- data/spec/models/subscription_response_entry_spec.rb +40 -0
- data/spec/models/subscription_response_spec.rb +58 -0
- data/spec/models/subscription_spec.rb +132 -0
- data/spec/models/subscriptions_response_entry_spec.rb +40 -0
- data/spec/models/subscriptions_response_spec.rb +58 -0
- data/spec/models/tag_names_response_spec.rb +40 -0
- data/spec/models/token_dto_spec.rb +76 -0
- data/spec/models/token_response_entry_spec.rb +40 -0
- data/spec/models/token_response_spec.rb +58 -0
- data/spec/models/tokens_response_entry_spec.rb +40 -0
- data/spec/models/tokens_response_spec.rb +58 -0
- data/spec/models/update_app_info_spec.rb +1 -2
- data/spec/models/update_plan_response_dto_spec.rb +46 -0
- data/spec/models/update_plan_response_entry_spec.rb +40 -0
- data/spec/models/update_plan_response_spec.rb +58 -0
- data/spec/models/update_subscription_dto_spec.rb +1 -2
- data/spec/models/update_token_dto_spec.rb +7 -2
- data/spec/models/usage_dto_spec.rb +100 -0
- data/spec/models/usage_multi_response_entry_spec.rb +40 -0
- data/spec/models/usage_multi_response_spec.rb +58 -0
- data/spec/models/usage_response_entry_spec.rb +40 -0
- data/spec/models/usage_response_spec.rb +58 -0
- data/spec/models/user_info_spec.rb +1 -2
- data/spec/models/user_permissions_spec.rb +1 -2
- data/spec/models/user_role_spec.rb +1 -2
- data/spec/spec_helper.rb +2 -3
- metadata +281 -154
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9026068698c45920f29bb6292838c4c45a91a11c22db473599918c8b52a71df7
|
4
|
+
data.tar.gz: 0e4b0d09539f06336dc774620c6b0494900a7efeb25e4b160fdb190a3e1f28e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ae9131a7bebeabcf98692deff43d8e8700a5219b5fb31147b7dea04cc20df45063b1f0a6dd5f4309aea7e6690699f580f2aae0b48f630ff4817790b10bcd1d
|
7
|
+
data.tar.gz: 48c2f7bf877d0d8ccda82592785b78d031d60cfe850ef04c1f5cdf53b957b7fc7b1cec42b3e0e7141ed1a10146a27b5b472953e360bdd310732c0c62eaa4e21e
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -33,7 +33,7 @@ Refer to below link for deeper information on the API itself.
|
|
33
33
|
|
34
34
|
## Contents
|
35
35
|
|
36
|
-
- [<img src="https://sematext.com/wp-content/uploads/2020/09/just-octi-blue.png" valign="bottom" width="60px"/>** sematext-api-client-ruby**](#
|
36
|
+
- [<img src="https://sematext.com/wp-content/uploads/2020/09/just-octi-blue.png" valign="bottom" width="60px"/>** sematext-api-client-ruby**](#sematext-api-client-ruby)
|
37
37
|
- [Contents](#contents)
|
38
38
|
- [Installation](#installation)
|
39
39
|
- [Build a gem](#build-a-gem)
|
@@ -124,56 +124,48 @@ end
|
|
124
124
|
|
125
125
|
All URIs are relative to *https://localhost*
|
126
126
|
|
127
|
-
| Class | Method
|
128
|
-
| ----------------------------------- |
|
129
|
-
| *stcloud::AlertNotificationsApi* | [**
|
130
|
-
| *stcloud::AlertNotificationsApi* | [**
|
131
|
-
| *stcloud::AlertsApi* | [**
|
132
|
-
| *stcloud::AlertsApi* | [**delete_alert_rule_using_delete1**](docs/AlertsApi.md#delete_alert_rule_using_delete1)
|
133
|
-
| *stcloud::AlertsApi* | [**
|
134
|
-
| *stcloud::AlertsApi* | [**enable_alert_rule_using_put1**](docs/AlertsApi.md#enable_alert_rule_using_put1)
|
135
|
-
| *stcloud::AlertsApi* | [**get_alert_rules_for_app_using_get1**](docs/AlertsApi.md#get_alert_rules_for_app_using_get1)
|
136
|
-
| *stcloud::AppsApi* | [**
|
137
|
-
| *stcloud::AppsApi* | [**
|
138
|
-
| *stcloud::AppsApi* | [**
|
139
|
-
| *stcloud::AppsApi* | [**
|
140
|
-
| *stcloud::AppsApi* | [**
|
141
|
-
| *stcloud::AppsApi* | [**
|
142
|
-
| *stcloud::AppsApi* | [**update_description_using_put**](docs/AppsApi.md#update_description_using_put)
|
143
|
-
| *stcloud::AppsApi* | [**
|
144
|
-
| *stcloud::AwsSettingsControllerApi* | [**update_using_put**](docs/AwsSettingsControllerApi.md#update_using_put)
|
145
|
-
| *stcloud::BillingApi* | [**get_detailed_invoice_using_get1**](docs/BillingApi.md#get_detailed_invoice_using_get1)
|
146
|
-
| *stcloud::BillingApi* | [**
|
147
|
-
| *stcloud::BillingApi* | [**update_plan_using_put**](docs/BillingApi.md#update_plan_using_put)
|
148
|
-
| *stcloud::LogsAppApi* | [**create_logsene_application**](docs/LogsAppApi.md#create_logsene_application)
|
149
|
-
| *stcloud::
|
150
|
-
| *stcloud::
|
151
|
-
| *stcloud::
|
152
|
-
| *stcloud::
|
153
|
-
| *stcloud::
|
154
|
-
| *stcloud::
|
155
|
-
| *stcloud::
|
156
|
-
| *stcloud::
|
157
|
-
| *stcloud::
|
158
|
-
| *stcloud::
|
159
|
-
| *stcloud::SubscriptionsApi* | [**
|
160
|
-
| *stcloud::SubscriptionsApi* | [**
|
161
|
-
| *stcloud::
|
162
|
-
| *stcloud::
|
163
|
-
| *stcloud::
|
164
|
-
| *stcloud::
|
165
|
-
| *stcloud::
|
166
|
-
| *stcloud::
|
167
|
-
| *stcloud::
|
168
|
-
| *stcloud::
|
169
|
-
| *stcloud::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. |
|
170
|
-
| *stcloud::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. |
|
171
|
-
| *stcloud::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. |
|
172
|
-
| *stcloud::TokensApiControllerApi* | [**create_app_token**](docs/TokensApiControllerApi.md#create_app_token) | **POST** /users-web/api/v3/apps/{appId}/tokens | Create new app token |
|
173
|
-
| *stcloud::TokensApiControllerApi* | [**delete_app_token1**](docs/TokensApiControllerApi.md#delete_app_token1) | **DELETE** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Delete app token |
|
174
|
-
| *stcloud::TokensApiControllerApi* | [**get_app_tokens1**](docs/TokensApiControllerApi.md#get_app_tokens1) | **GET** /users-web/api/v3/apps/{appId}/tokens | Get app available tokens |
|
175
|
-
| *stcloud::TokensApiControllerApi* | [**regenerate_app_token**](docs/TokensApiControllerApi.md#regenerate_app_token) | **POST** /users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerate | Regenerate app token) |
|
176
|
-
| *stcloud::TokensApiControllerApi* | [**update_app_token1**](docs/TokensApiControllerApi.md#update_app_token1) | **PUT** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Update app token (enable/disable) |
|
127
|
+
| Class | Method | HTTP request | Description |
|
128
|
+
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
129
|
+
| *stcloud::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 |
|
130
|
+
| *stcloud::AlertNotificationsApi* | [**get_alert_notifications_for_user_using_post1**](docs/AlertNotificationsApi.md#get_alert_notifications_for_user_using_post1) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |
|
131
|
+
| *stcloud::AlertsApi* | [**create_alert_using_post**](docs/AlertsApi.md#create_alert_using_post) | **POST** /users-web/api/v3/alerts | Create alert rule |
|
132
|
+
| *stcloud::AlertsApi* | [**delete_alert_rule_using_delete1**](docs/AlertsApi.md#delete_alert_rule_using_delete1) | **DELETE** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
|
133
|
+
| *stcloud::AlertsApi* | [**disable_alert_rule_using_put1**](docs/AlertsApi.md#disable_alert_rule_using_put1) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
|
134
|
+
| *stcloud::AlertsApi* | [**enable_alert_rule_using_put1**](docs/AlertsApi.md#enable_alert_rule_using_put1) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
|
135
|
+
| *stcloud::AlertsApi* | [**get_alert_rules_for_app_using_get1**](docs/AlertsApi.md#get_alert_rules_for_app_using_get1) | **GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |
|
136
|
+
| *stcloud::AppsApi* | [**delete_using_delete1**](docs/AppsApi.md#delete_using_delete1) | **DELETE** /users-web/api/v3/apps/{anyStateAppId} | delete |
|
137
|
+
| *stcloud::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 |
|
138
|
+
| *stcloud::AppsApi* | [**get_using_get1**](docs/AppsApi.md#get_using_get1) | **GET** /users-web/api/v3/apps/{anyStateAppId} | Gets defails for one particular App |
|
139
|
+
| *stcloud::AppsApi* | [**invite_app_guests_using_post1**](docs/AppsApi.md#invite_app_guests_using_post1) | **POST** /users-web/api/v3/apps/guests | Invite guests to an app |
|
140
|
+
| *stcloud::AppsApi* | [**list_apps_users_using_get1**](docs/AppsApi.md#list_apps_users_using_get1) | **GET** /users-web/api/v3/apps/users | Get all users of apps accessible to this account |
|
141
|
+
| *stcloud::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 |
|
142
|
+
| *stcloud::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 |
|
143
|
+
| *stcloud::AppsApi* | [**update_using_put2**](docs/AppsApi.md#update_using_put2) | **PUT** /users-web/api/v3/apps/{anyStateAppId} | Update app |
|
144
|
+
| *stcloud::AwsSettingsControllerApi* | [**update_using_put**](docs/AwsSettingsControllerApi.md#update_using_put) | **PUT** /users-web/api/v3/apps/{appId}/aws | Update App's AWS CloudWatch settings |
|
145
|
+
| *stcloud::BillingApi* | [**get_detailed_invoice_using_get1**](docs/BillingApi.md#get_detailed_invoice_using_get1) | **GET** /users-web/api/v3/billing/invoice/{service}/{year}/{month} | Get invoice details |
|
146
|
+
| *stcloud::BillingApi* | [**list_available_plans_using_get**](docs/BillingApi.md#list_available_plans_using_get) | **GET** /users-web/api/v3/billing/availablePlans | Get available plans |
|
147
|
+
| *stcloud::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 |
|
148
|
+
| *stcloud::LogsAppApi* | [**create_logsene_application**](docs/LogsAppApi.md#create_logsene_application) | **POST** /logsene-reports/api/v3/apps | Create Logs App |
|
149
|
+
| *stcloud::MonitoringAppApi* | [**create_spm_application1**](docs/MonitoringAppApi.md#create_spm_application1) | **POST** /spm-reports/api/v3/apps | Create Monitoring App |
|
150
|
+
| *stcloud::ResetPasswordApi* | [**reset_password_using_post1**](docs/ResetPasswordApi.md#reset_password_using_post1) | **POST** /users-web/api/v3/account/password/reset | Reset Password |
|
151
|
+
| *stcloud::SubscriptionsApi* | [**create_for_app_using_post1**](docs/SubscriptionsApi.md#create_for_app_using_post1) | **POST** /users-web/api/v3/apps/{appId}/subscription | Create App subscription |
|
152
|
+
| *stcloud::SubscriptionsApi* | [**create_for_dash_using_post1**](docs/SubscriptionsApi.md#create_for_dash_using_post1) | **POST** /users-web/api/v3/dashboards/{dashId}/subscription | Create dashboard subscription |
|
153
|
+
| *stcloud::SubscriptionsApi* | [**delete_using_delete3**](docs/SubscriptionsApi.md#delete_using_delete3) | **DELETE** /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Delete subscription |
|
154
|
+
| *stcloud::SubscriptionsApi* | [**list_using_get3**](docs/SubscriptionsApi.md#list_using_get3) | **GET** /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an App |
|
155
|
+
| *stcloud::SubscriptionsApi* | [**list_using_get4**](docs/SubscriptionsApi.md#list_using_get4) | **GET** /users-web/api/v3/subscriptions | Get current account's subscriptions |
|
156
|
+
| *stcloud::SubscriptionsApi* | [**send_app_report_using_post1**](docs/SubscriptionsApi.md#send_app_report_using_post1) | **POST** /users-web/api/v3/apps/{appId}/report/send | Email an App report |
|
157
|
+
| *stcloud::SubscriptionsApi* | [**send_dash_report_using_post1**](docs/SubscriptionsApi.md#send_dash_report_using_post1) | **POST** /users-web/api/v3/dashboards/{dashId}/report/send | Email a dashboard report |
|
158
|
+
| *stcloud::SubscriptionsApi* | [**toggle_enabled_using_put1**](docs/SubscriptionsApi.md#toggle_enabled_using_put1) | **PUT** /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Toggle subscription status |
|
159
|
+
| *stcloud::SubscriptionsApi* | [**update_for_app_using_put**](docs/SubscriptionsApi.md#update_for_app_using_put) | **PUT** /users-web/api/v3/apps/{appId}/subscription | Update App subscription |
|
160
|
+
| *stcloud::SubscriptionsApi* | [**update_for_dash_using_put1**](docs/SubscriptionsApi.md#update_for_dash_using_put1) | **PUT** /users-web/api/v3/dashboards/{dashId}/subscription | Update dashboard subscription |
|
161
|
+
| *stcloud::TagApiControllerApi* | [**get_tag_names_using_get1**](docs/TagApiControllerApi.md#get_tag_names_using_get1) | **GET** /spm-reports/api/v3/apps/{appIds}/tagNames | Gets tag names for the given application identifiers appearing in the given time frame. |
|
162
|
+
| *stcloud::TagApiControllerApi* | [**get_using_get1**](docs/TagApiControllerApi.md#get_using_get1) | **GET** /spm-reports/api/v3/apps/{appIds}/tags | Gets values for specified tags for the given application identifiers appearing in the given time frame. |
|
163
|
+
| *stcloud::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. |
|
164
|
+
| *stcloud::TokensApiControllerApi* | [**create_app_token1**](docs/TokensApiControllerApi.md#create_app_token1) | **POST** /users-web/api/v3/apps/{appId}/tokens | Create new app token |
|
165
|
+
| *stcloud::TokensApiControllerApi* | [**delete_app_token1**](docs/TokensApiControllerApi.md#delete_app_token1) | **DELETE** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Delete app token |
|
166
|
+
| *stcloud::TokensApiControllerApi* | [**get_app_tokens**](docs/TokensApiControllerApi.md#get_app_tokens) | **GET** /users-web/api/v3/apps/{appId}/tokens | Get app available tokens |
|
167
|
+
| *stcloud::TokensApiControllerApi* | [**regenerate_app_token1**](docs/TokensApiControllerApi.md#regenerate_app_token1) | **POST** /users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerate | Regenerate app token) |
|
168
|
+
| *stcloud::TokensApiControllerApi* | [**update_app_token**](docs/TokensApiControllerApi.md#update_app_token) | **PUT** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Update app token (enable/disable or name) |
|
177
169
|
|
178
170
|
|
179
171
|
## Documentation for Models
|
@@ -191,8 +183,6 @@ All URIs are relative to *https://localhost*
|
|
191
183
|
- [stcloud::CloudWatchSettings](docs/CloudWatchSettings.md)
|
192
184
|
- [stcloud::CreateAppInfo](docs/CreateAppInfo.md)
|
193
185
|
- [stcloud::CreateTokenDto](docs/CreateTokenDto.md)
|
194
|
-
- [stcloud::DataSeriesFilter](docs/DataSeriesFilter.md)
|
195
|
-
- [stcloud::DataSeriesRequest](docs/DataSeriesRequest.md)
|
196
186
|
- [stcloud::Error](docs/Error.md)
|
197
187
|
- [stcloud::FilterValue](docs/FilterValue.md)
|
198
188
|
- [stcloud::GenericApiResponse](docs/GenericApiResponse.md)
|
@@ -200,7 +190,6 @@ All URIs are relative to *https://localhost*
|
|
200
190
|
- [stcloud::NotificationIntegration](docs/NotificationIntegration.md)
|
201
191
|
- [stcloud::Plan](docs/Plan.md)
|
202
192
|
- [stcloud::ReportInfo](docs/ReportInfo.md)
|
203
|
-
- [stcloud::SavedQuery](docs/SavedQuery.md)
|
204
193
|
- [stcloud::ServiceIntegration](docs/ServiceIntegration.md)
|
205
194
|
- [stcloud::SubscriptionDashboardDto](docs/SubscriptionDashboardDto.md)
|
206
195
|
- [stcloud::SubscriptionDto](docs/SubscriptionDto.md)
|
data/SematextCloud.gemspec
CHANGED
@@ -31,12 +31,6 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
-
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
-
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
-
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
-
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
34
|
|
41
35
|
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
36
|
s.test_files = `find spec/*`.split("\n")
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# stcloud::AlertNotification
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
| Name | Type | Description | Notes |
|
5
|
+
| ------------------ | ----------- | ----------- | ---------- |
|
6
|
+
| **app_name** | **String** | | [optional] |
|
7
|
+
| **app_type** | **String** | | [optional] |
|
8
|
+
| **back_to_normal** | **BOOLEAN** | | [optional] |
|
9
|
+
| **create_time** | **String** | | [optional] |
|
10
|
+
| **sent** | **BOOLEAN** | | [optional] |
|
11
|
+
| **text** | **String** | | [optional] |
|
12
|
+
| **_when** | **String** | | [optional] |
|
@@ -1,15 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# stcloud::AlertNotificationsApi
|
2
2
|
|
3
|
-
All URIs are relative to
|
3
|
+
All URIs are relative to */*
|
4
4
|
|
5
|
-
| Method
|
6
|
-
|
|
7
|
-
| [**
|
8
|
-
| [**
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
|
7
|
+
| [**get_alert_notifications_for_app_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post1) | **POST** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app |
|
8
|
+
| [**get_alert_notifications_for_user_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post1) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
> GenericApiResponse get_alert_notifications_for_app_using_post(app_id, time_interval)
|
10
|
+
# **get_alert_notifications_for_app_using_post1**
|
11
|
+
> NotificationsResponse get_alert_notifications_for_app_using_post1(bodyapp_id)
|
13
12
|
|
14
13
|
Get alert notifications for an app
|
15
14
|
|
@@ -18,41 +17,39 @@ Default value of interval is 1d
|
|
18
17
|
### Example
|
19
18
|
```ruby
|
20
19
|
# load the gem
|
21
|
-
require '
|
20
|
+
require 'stcloud'
|
22
21
|
# setup authorization
|
23
|
-
|
22
|
+
stcloud.configure do |config|
|
24
23
|
# Configure API key authorization: api_key
|
25
24
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
26
25
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
26
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
28
27
|
end
|
29
28
|
|
30
|
-
api_instance =
|
31
|
-
|
29
|
+
api_instance = stcloud::AlertNotificationsApi.new
|
30
|
+
body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
|
32
31
|
app_id = 789 # Integer | appId
|
33
32
|
|
34
|
-
time_interval = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
|
35
|
-
|
36
33
|
|
37
34
|
begin
|
38
35
|
#Get alert notifications for an app
|
39
|
-
result = api_instance.
|
36
|
+
result = api_instance.get_alert_notifications_for_app_using_post1(bodyapp_id)
|
40
37
|
p result
|
41
|
-
rescue
|
42
|
-
puts "Exception when calling AlertNotificationsApi->
|
38
|
+
rescue stcloud::ApiError => e
|
39
|
+
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post1: #{e}"
|
43
40
|
end
|
44
41
|
```
|
45
42
|
|
46
43
|
### Parameters
|
47
44
|
|
48
|
-
| Name
|
49
|
-
|
|
50
|
-
| **
|
51
|
-
| **
|
45
|
+
| Name | Type | Description | Notes |
|
46
|
+
| ---------- | ----------------------------------------------------------- | ------------- | ----- |
|
47
|
+
| **body** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
|
48
|
+
| **app_id** | **Integer** | appId |
|
52
49
|
|
53
50
|
### Return type
|
54
51
|
|
55
|
-
[**
|
52
|
+
[**NotificationsResponse**](NotificationsResponse.md)
|
56
53
|
|
57
54
|
### Authorization
|
58
55
|
|
@@ -65,8 +62,8 @@ end
|
|
65
62
|
|
66
63
|
|
67
64
|
|
68
|
-
# **
|
69
|
-
>
|
65
|
+
# **get_alert_notifications_for_user_using_post1**
|
66
|
+
> NotificationsResponse get_alert_notifications_for_user_using_post1(body)
|
70
67
|
|
71
68
|
Get alert notifications for a user
|
72
69
|
|
@@ -75,38 +72,37 @@ Default value of interval is 1d
|
|
75
72
|
### Example
|
76
73
|
```ruby
|
77
74
|
# load the gem
|
78
|
-
require '
|
75
|
+
require 'stcloud'
|
79
76
|
# setup authorization
|
80
|
-
|
77
|
+
stcloud.configure do |config|
|
81
78
|
# Configure API key authorization: api_key
|
82
79
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
83
80
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
84
81
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
85
82
|
end
|
86
83
|
|
87
|
-
api_instance =
|
88
|
-
|
89
|
-
time_interval = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
|
84
|
+
api_instance = stcloud::AlertNotificationsApi.new
|
85
|
+
body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
|
90
86
|
|
91
87
|
|
92
88
|
begin
|
93
89
|
#Get alert notifications for a user
|
94
|
-
result = api_instance.
|
90
|
+
result = api_instance.get_alert_notifications_for_user_using_post1(body)
|
95
91
|
p result
|
96
|
-
rescue
|
97
|
-
puts "Exception when calling AlertNotificationsApi->
|
92
|
+
rescue stcloud::ApiError => e
|
93
|
+
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post1: #{e}"
|
98
94
|
end
|
99
95
|
```
|
100
96
|
|
101
97
|
### Parameters
|
102
98
|
|
103
|
-
| Name
|
104
|
-
|
|
105
|
-
| **
|
99
|
+
| Name | Type | Description | Notes |
|
100
|
+
| -------- | ----------------------------------------------------------- | ------------- | ----- |
|
101
|
+
| **body** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
|
106
102
|
|
107
103
|
### Return type
|
108
104
|
|
109
|
-
[**
|
105
|
+
[**NotificationsResponse**](NotificationsResponse.md)
|
110
106
|
|
111
107
|
### Authorization
|
112
108
|
|
data/docs/AlertRule.md
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# stcloud::AlertRuleResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
| Name | Type | Description | Notes |
|
5
|
+
| ----------- | ------------------------------------------------------- | ----------- | ---------- |
|
6
|
+
| **data** | [**AlertRuleResponseEntry**](AlertRuleResponseEntry.md) | | [optional] |
|
7
|
+
| **errors** | [**Array<Error>**](Error.md) | | [optional] |
|
8
|
+
| **message** | **String** | | [optional] |
|
9
|
+
| **success** | **BOOLEAN** | | [optional] |
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# stcloud::AlertRulesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
| Name | Type | Description | Notes |
|
5
|
+
| ----------- | --------------------------------------------------------- | ----------- | ---------- |
|
6
|
+
| **data** | [**AlertRulesResponseEntry**](AlertRulesResponseEntry.md) | | [optional] |
|
7
|
+
| **errors** | [**Array<Error>**](Error.md) | | [optional] |
|
8
|
+
| **message** | **String** | | [optional] |
|
9
|
+
| **success** | **BOOLEAN** | | [optional] |
|
data/docs/AlertsApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# stcloud::AlertsApi
|
2
2
|
|
3
|
-
All URIs are relative to
|
3
|
+
All URIs are relative to */*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
|
@@ -10,47 +10,45 @@ All URIs are relative to *https://localhost*
|
|
10
10
|
| [**enable_alert_rule_using_put**](AlertsApi.md#enable_alert_rule_using_put) | **PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
|
11
11
|
| [**get_alert_rules_for_app_using_get**](AlertsApi.md#get_alert_rules_for_app_using_get) | **GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |
|
12
12
|
|
13
|
-
|
14
13
|
# **create_alert_using_post**
|
15
|
-
>
|
14
|
+
> AlertRuleResponse create_alert_using_post(body)
|
16
15
|
|
17
16
|
Create alert rule
|
18
17
|
|
19
18
|
### Example
|
20
19
|
```ruby
|
21
20
|
# load the gem
|
22
|
-
require '
|
21
|
+
require 'stcloud'
|
23
22
|
# setup authorization
|
24
|
-
|
23
|
+
stcloud.configure do |config|
|
25
24
|
# Configure API key authorization: api_key
|
26
25
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
27
26
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
27
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
29
28
|
end
|
30
29
|
|
31
|
-
api_instance =
|
32
|
-
|
33
|
-
dto = SematextCloud::AlertRule.new # AlertRule | dto
|
30
|
+
api_instance = stcloud::AlertsApi.new
|
31
|
+
body = stcloud::AlertRule.new # AlertRule | dto
|
34
32
|
|
35
33
|
|
36
34
|
begin
|
37
35
|
#Create alert rule
|
38
|
-
result = api_instance.create_alert_using_post(
|
36
|
+
result = api_instance.create_alert_using_post(body)
|
39
37
|
p result
|
40
|
-
rescue
|
38
|
+
rescue stcloud::ApiError => e
|
41
39
|
puts "Exception when calling AlertsApi->create_alert_using_post: #{e}"
|
42
40
|
end
|
43
41
|
```
|
44
42
|
|
45
43
|
### Parameters
|
46
44
|
|
47
|
-
| Name
|
48
|
-
|
|
49
|
-
| **
|
45
|
+
| Name | Type | Description | Notes |
|
46
|
+
| -------- | ----------------------------- | ----------- | ----- |
|
47
|
+
| **body** | [**AlertRule**](AlertRule.md) | dto |
|
50
48
|
|
51
49
|
### Return type
|
52
50
|
|
53
|
-
[**
|
51
|
+
[**AlertRuleResponse**](AlertRuleResponse.md)
|
54
52
|
|
55
53
|
### Authorization
|
56
54
|
|
@@ -64,24 +62,23 @@ end
|
|
64
62
|
|
65
63
|
|
66
64
|
# **delete_alert_rule_using_delete**
|
67
|
-
>
|
65
|
+
> GenericMapBasedApiResponse delete_alert_rule_using_delete(updateable_alert_id)
|
68
66
|
|
69
67
|
Delete alert rule
|
70
68
|
|
71
69
|
### Example
|
72
70
|
```ruby
|
73
71
|
# load the gem
|
74
|
-
require '
|
72
|
+
require 'stcloud'
|
75
73
|
# setup authorization
|
76
|
-
|
74
|
+
stcloud.configure do |config|
|
77
75
|
# Configure API key authorization: api_key
|
78
76
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
79
77
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
80
78
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
81
79
|
end
|
82
80
|
|
83
|
-
api_instance =
|
84
|
-
|
81
|
+
api_instance = stcloud::AlertsApi.new
|
85
82
|
updateable_alert_id = 789 # Integer | updateableAlertId
|
86
83
|
|
87
84
|
|
@@ -89,7 +86,7 @@ begin
|
|
89
86
|
#Delete alert rule
|
90
87
|
result = api_instance.delete_alert_rule_using_delete(updateable_alert_id)
|
91
88
|
p result
|
92
|
-
rescue
|
89
|
+
rescue stcloud::ApiError => e
|
93
90
|
puts "Exception when calling AlertsApi->delete_alert_rule_using_delete: #{e}"
|
94
91
|
end
|
95
92
|
```
|
@@ -102,7 +99,7 @@ end
|
|
102
99
|
|
103
100
|
### Return type
|
104
101
|
|
105
|
-
[**
|
102
|
+
[**GenericMapBasedApiResponse**](GenericMapBasedApiResponse.md)
|
106
103
|
|
107
104
|
### Authorization
|
108
105
|
|
@@ -110,30 +107,29 @@ end
|
|
110
107
|
|
111
108
|
### HTTP request headers
|
112
109
|
|
113
|
-
- **Content-Type**:
|
110
|
+
- **Content-Type**: Not defined
|
114
111
|
- **Accept**: application/json
|
115
112
|
|
116
113
|
|
117
114
|
|
118
115
|
# **disable_alert_rule_using_put**
|
119
|
-
>
|
116
|
+
> GenericMapBasedApiResponse disable_alert_rule_using_put(updateable_alert_id)
|
120
117
|
|
121
118
|
Disable alert rule
|
122
119
|
|
123
120
|
### Example
|
124
121
|
```ruby
|
125
122
|
# load the gem
|
126
|
-
require '
|
123
|
+
require 'stcloud'
|
127
124
|
# setup authorization
|
128
|
-
|
125
|
+
stcloud.configure do |config|
|
129
126
|
# Configure API key authorization: api_key
|
130
127
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
131
128
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
132
129
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
133
130
|
end
|
134
131
|
|
135
|
-
api_instance =
|
136
|
-
|
132
|
+
api_instance = stcloud::AlertsApi.new
|
137
133
|
updateable_alert_id = 789 # Integer | updateableAlertId
|
138
134
|
|
139
135
|
|
@@ -141,7 +137,7 @@ begin
|
|
141
137
|
#Disable alert rule
|
142
138
|
result = api_instance.disable_alert_rule_using_put(updateable_alert_id)
|
143
139
|
p result
|
144
|
-
rescue
|
140
|
+
rescue stcloud::ApiError => e
|
145
141
|
puts "Exception when calling AlertsApi->disable_alert_rule_using_put: #{e}"
|
146
142
|
end
|
147
143
|
```
|
@@ -154,7 +150,7 @@ end
|
|
154
150
|
|
155
151
|
### Return type
|
156
152
|
|
157
|
-
[**
|
153
|
+
[**GenericMapBasedApiResponse**](GenericMapBasedApiResponse.md)
|
158
154
|
|
159
155
|
### Authorization
|
160
156
|
|
@@ -162,30 +158,29 @@ end
|
|
162
158
|
|
163
159
|
### HTTP request headers
|
164
160
|
|
165
|
-
- **Content-Type**:
|
161
|
+
- **Content-Type**: Not defined
|
166
162
|
- **Accept**: application/json
|
167
163
|
|
168
164
|
|
169
165
|
|
170
166
|
# **enable_alert_rule_using_put**
|
171
|
-
>
|
167
|
+
> GenericMapBasedApiResponse enable_alert_rule_using_put(updateable_alert_id)
|
172
168
|
|
173
169
|
Enable alert rule
|
174
170
|
|
175
171
|
### Example
|
176
172
|
```ruby
|
177
173
|
# load the gem
|
178
|
-
require '
|
174
|
+
require 'stcloud'
|
179
175
|
# setup authorization
|
180
|
-
|
176
|
+
stcloud.configure do |config|
|
181
177
|
# Configure API key authorization: api_key
|
182
178
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
183
179
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
184
180
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
185
181
|
end
|
186
182
|
|
187
|
-
api_instance =
|
188
|
-
|
183
|
+
api_instance = stcloud::AlertsApi.new
|
189
184
|
updateable_alert_id = 789 # Integer | updateableAlertId
|
190
185
|
|
191
186
|
|
@@ -193,7 +188,7 @@ begin
|
|
193
188
|
#Enable alert rule
|
194
189
|
result = api_instance.enable_alert_rule_using_put(updateable_alert_id)
|
195
190
|
p result
|
196
|
-
rescue
|
191
|
+
rescue stcloud::ApiError => e
|
197
192
|
puts "Exception when calling AlertsApi->enable_alert_rule_using_put: #{e}"
|
198
193
|
end
|
199
194
|
```
|
@@ -206,7 +201,7 @@ end
|
|
206
201
|
|
207
202
|
### Return type
|
208
203
|
|
209
|
-
[**
|
204
|
+
[**GenericMapBasedApiResponse**](GenericMapBasedApiResponse.md)
|
210
205
|
|
211
206
|
### Authorization
|
212
207
|
|
@@ -214,30 +209,29 @@ end
|
|
214
209
|
|
215
210
|
### HTTP request headers
|
216
211
|
|
217
|
-
- **Content-Type**:
|
212
|
+
- **Content-Type**: Not defined
|
218
213
|
- **Accept**: application/json
|
219
214
|
|
220
215
|
|
221
216
|
|
222
217
|
# **get_alert_rules_for_app_using_get**
|
223
|
-
>
|
218
|
+
> AlertRulesResponse get_alert_rules_for_app_using_get(app_id)
|
224
219
|
|
225
220
|
Get alert rules for an app
|
226
221
|
|
227
222
|
### Example
|
228
223
|
```ruby
|
229
224
|
# load the gem
|
230
|
-
require '
|
225
|
+
require 'stcloud'
|
231
226
|
# setup authorization
|
232
|
-
|
227
|
+
stcloud.configure do |config|
|
233
228
|
# Configure API key authorization: api_key
|
234
229
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
235
230
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
236
231
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
237
232
|
end
|
238
233
|
|
239
|
-
api_instance =
|
240
|
-
|
234
|
+
api_instance = stcloud::AlertsApi.new
|
241
235
|
app_id = 789 # Integer | appId
|
242
236
|
|
243
237
|
|
@@ -245,7 +239,7 @@ begin
|
|
245
239
|
#Get alert rules for an app
|
246
240
|
result = api_instance.get_alert_rules_for_app_using_get(app_id)
|
247
241
|
p result
|
248
|
-
rescue
|
242
|
+
rescue stcloud::ApiError => e
|
249
243
|
puts "Exception when calling AlertsApi->get_alert_rules_for_app_using_get: #{e}"
|
250
244
|
end
|
251
245
|
```
|
@@ -258,7 +252,7 @@ end
|
|
258
252
|
|
259
253
|
### Return type
|
260
254
|
|
261
|
-
[**
|
255
|
+
[**AlertRulesResponse**](AlertRulesResponse.md)
|
262
256
|
|
263
257
|
### Authorization
|
264
258
|
|
@@ -266,5 +260,5 @@ end
|
|
266
260
|
|
267
261
|
### HTTP request headers
|
268
262
|
|
269
|
-
- **Content-Type**:
|
263
|
+
- **Content-Type**: Not defined
|
270
264
|
- **Accept**: application/json
|