Module: stcloud

Defined in:
lib/stcloud/version.rb,
lib/stcloud.rb,
lib/stcloud/api_error.rb,
lib/stcloud/api_client.rb,
lib/stcloud/models/app.rb,
lib/stcloud/models/plan.rb,
lib/stcloud/api/apps_api.rb,
lib/stcloud/models/error.rb,
lib/stcloud/configuration.rb,
lib/stcloud/api/alerts_api.rb,
lib/stcloud/models/invoice.rb,
lib/stcloud/api/billing_api.rb,
lib/stcloud/api/logs_app_api.rb,
lib/stcloud/models/daily_dto.rb,
lib/stcloud/models/dimension.rb,
lib/stcloud/models/event_dto.rb,
lib/stcloud/models/token_dto.rb,
lib/stcloud/models/usage_dto.rb,
lib/stcloud/models/user_info.rb,
lib/stcloud/models/user_role.rb,
lib/stcloud/models/alert_rule.rb,
lib/stcloud/models/invitation.rb,
lib/stcloud/models/report_info.rb,
lib/stcloud/models/app_metadata.rb,
lib/stcloud/models/app_response.rb,
lib/stcloud/models/billing_info.rb,
lib/stcloud/models/filter_value.rb,
lib/stcloud/models/subscription.rb,
lib/stcloud/models/apps_response.rb,
lib/stcloud/api/subscriptions_api.rb,
lib/stcloud/models/day_usage_data.rb,
lib/stcloud/models/plans_response.rb,
lib/stcloud/models/token_response.rb,
lib/stcloud/models/usage_response.rb,
lib/stcloud/api/monitoring_app_api.rb,
lib/stcloud/api/reset_password_api.rb,
lib/stcloud/models/app_description.rb,
lib/stcloud/models/create_app_info.rb,
lib/stcloud/models/tokens_response.rb,
lib/stcloud/models/update_app_info.rb,
lib/stcloud/models/create_token_dto.rb,
lib/stcloud/models/invoice_response.rb,
lib/stcloud/models/subscription_dto.rb,
lib/stcloud/models/update_token_dto.rb,
lib/stcloud/models/user_permissions.rb,
lib/stcloud/models/alert_notification.rb,
lib/stcloud/models/app_response_entry.rb,
lib/stcloud/models/app_types_response.rb,
lib/stcloud/models/tag_names_response.rb,
lib/stcloud/api/tag_api_controller_api.rb,
lib/stcloud/models/alert_rule_response.rb,
lib/stcloud/models/apps_response_entry.rb,
lib/stcloud/models/service_integration.rb,
lib/stcloud/api/alert_notifications_api.rb,
lib/stcloud/models/alert_rules_response.rb,
lib/stcloud/models/cloud_watch_settings.rb,
lib/stcloud/models/generic_api_response.rb,
lib/stcloud/models/mail_report_response.rb,
lib/stcloud/models/plans_response_entry.rb,
lib/stcloud/models/token_response_entry.rb,
lib/stcloud/models/update_plan_response.rb,
lib/stcloud/models/usage_multi_response.rb,
lib/stcloud/models/usage_response_entry.rb,
lib/stcloud/models/basic_auth_method_dto.rb,
lib/stcloud/models/min_period_fee_period.rb,
lib/stcloud/models/subscription_response.rb,
lib/stcloud/models/tokens_response_entry.rb,
lib/SematextCloud/models/create_token_dto.rb,
lib/SematextCloud/models/subscription_dto.rb,
lib/SematextCloud/models/update_token_dto.rb,
lib/stcloud/api/tokens_api_controller_api.rb,
lib/stcloud/models/basic_organization_dto.rb,
lib/stcloud/models/invoice_response_entry.rb,
lib/stcloud/models/limit_change_event_dto.rb,
lib/stcloud/models/notifications_response.rb,
lib/stcloud/models/subscriptions_response.rb,
lib/stcloud/models/update_subscription_dto.rb,
lib/stcloud/api/aws_settings_controller_api.rb,
lib/stcloud/models/app_types_response_entry.rb,
lib/stcloud/models/notification_integration.rb,
lib/stcloud/models/update_plan_response_dto.rb,
lib/stcloud/models/alert_rule_response_entry.rb,
lib/stcloud/api/logs_usage_api_controller_api.rb,
lib/stcloud/models/alert_notification_request.rb,
lib/stcloud/models/alert_rules_response_entry.rb,
lib/stcloud/models/subscription_dashboard_dto.rb,
lib/stcloud/models/update_plan_response_entry.rb,
lib/stcloud/models/usage_multi_response_entry.rb,
lib/stcloud/models/subscription_response_entry.rb,
lib/SematextCloud/api/tokens_api_controller_api.rb,
lib/stcloud/models/charges_details_response_dto.rb,
lib/stcloud/models/notifications_response_entry.rb,
lib/stcloud/models/subscriptions_response_entry.rb,
lib/SematextCloud/models/update_subscription_dto.rb,
lib/stcloud/models/cloud_watch_settings_response.rb,
lib/stcloud/models/generic_map_based_api_response.rb,
lib/stcloud/models/alert_rule_schedule_weekday_dto.rb,
lib/SematextCloud/models/subscription_dashboard_dto.rb,
lib/stcloud/models/alert_rule_schedule_time_range_dto.rb,
lib/stcloud/models/cloud_watch_settings_response_entry.rb,
lib/stcloud/models/mail_report_response_response_entry.rb

Overview

#Sematext Cloud API

#API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of ‘Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.

OpenAPI spec version: v3

Generated by: github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 3.0.25

Defined Under Namespace

Classes: AlertNotification, AlertNotificationRequest, AlertNotificationsApi, AlertRule, AlertRuleResponse, AlertRuleResponseEntry, AlertRuleScheduleTimeRangeDto, AlertRuleScheduleWeekdayDto, AlertRulesResponse, AlertRulesResponseEntry, AlertsApi, ApiClient, ApiError, App, AppDescription, AppMetadata, AppResponse, AppResponseEntry, AppTypesResponse, AppTypesResponseEntry, AppsApi, AppsResponse, AppsResponseEntry, AwsSettingsControllerApi, BasicAuthMethodDto, BasicOrganizationDto, BillingApi, BillingInfo, ChargesDetailsResponseDto, CloudWatchSettings, CloudWatchSettingsResponse, CloudWatchSettingsResponseEntry, Configuration, CreateAppInfo, CreateTokenDto, DailyDto, DayUsageData, Dimension, Error, EventDto, FilterValue, GenericApiResponse, GenericMapBasedApiResponse, Invitation, Invoice, InvoiceResponse, InvoiceResponseEntry, LimitChangeEventDTO, LogsAppApi, LogsUsageApiControllerApi, MailReportResponse, MailReportResponseResponseEntry, MinPeriodFeePeriod, MonitoringAppApi, NotificationIntegration, NotificationsResponse, NotificationsResponseEntry, Plan, PlansResponse, PlansResponseEntry, ReportInfo, ResetPasswordApi, ServiceIntegration, Subscription, SubscriptionDashboardDto, SubscriptionDto, SubscriptionResponse, SubscriptionResponseEntry, SubscriptionsApi, SubscriptionsResponse, SubscriptionsResponseEntry, TagApiControllerApi, TagNamesResponse, TokenDto, TokenResponse, TokenResponseEntry, TokensApiControllerApi, TokensResponse, TokensResponseEntry, UpdateAppInfo, UpdatePlanResponse, UpdatePlanResponseDto, UpdatePlanResponseEntry, UpdateSubscriptionDto, UpdateTokenDto, UsageDto, UsageMultiResponse, UsageMultiResponseEntry, UsageResponse, UsageResponseEntry, UserInfo, UserPermissions, UserRole

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

stcloud.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



120
121
122
123
124
125
126
# File 'lib/stcloud.rb', line 120

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end