SematextCloud 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/AlertNotificationsApi.md +12 -12
- data/docs/AlertRule.md +1 -0
- data/docs/AlertsApi.md +15 -15
- data/docs/AppsApi.md +20 -20
- data/docs/AwsSettingsControllerApi.md +7 -7
- data/docs/BillingApi.md +10 -10
- data/docs/MonitoringAppApi.md +7 -7
- data/docs/PlansResponseEntry.md +1 -1
- data/docs/ServiceIntegration.md +14 -14
- data/docs/SubscriptionsApi.md +40 -40
- data/docs/TagApiControllerApi.md +72 -5
- data/docs/TagsGrouped.md +8 -0
- data/docs/TagsGroupedResponse.md +7 -0
- data/docs/TokensApiControllerApi.md +15 -15
- data/docs/UserPermissions.md +5 -5
- data/docs/UserRole.md +5 -5
- data/lib/SematextCloud/api/alert_notifications_api.rb +14 -14
- data/lib/SematextCloud/api/alerts_api.rb +13 -13
- data/lib/SematextCloud/api/apps_api.rb +25 -25
- data/lib/SematextCloud/api/aws_settings_controller_api.rb +8 -8
- data/lib/SematextCloud/api/billing_api.rb +16 -16
- data/lib/SematextCloud/api/logs_app_api.rb +1 -1
- data/lib/SematextCloud/api/logs_usage_api_controller_api.rb +1 -1
- data/lib/SematextCloud/api/monitoring_app_api.rb +7 -7
- data/lib/SematextCloud/api/reset_password_api.rb +1 -1
- data/lib/SematextCloud/api/subscriptions_api.rb +48 -48
- data/lib/SematextCloud/api/tag_api_controller_api.rb +80 -1
- data/lib/SematextCloud/api/tokens_api_controller_api.rb +14 -14
- data/lib/SematextCloud/api_client.rb +1 -1
- data/lib/SematextCloud/api_error.rb +1 -1
- data/lib/SematextCloud/configuration.rb +1 -1
- data/lib/SematextCloud/models/alert_notification.rb +1 -1
- data/lib/SematextCloud/models/alert_notification_request.rb +1 -1
- data/lib/SematextCloud/models/alert_rule.rb +23 -2
- data/lib/SematextCloud/models/alert_rule_response.rb +1 -1
- data/lib/SematextCloud/models/alert_rule_response_entry.rb +1 -1
- data/lib/SematextCloud/models/alert_rule_schedule_time_range_dto.rb +1 -1
- data/lib/SematextCloud/models/alert_rule_schedule_weekday_dto.rb +1 -1
- data/lib/SematextCloud/models/alert_rules_response.rb +1 -1
- data/lib/SematextCloud/models/alert_rules_response_entry.rb +1 -1
- data/lib/SematextCloud/models/app.rb +1 -1
- data/lib/SematextCloud/models/app_description.rb +1 -1
- data/lib/SematextCloud/models/app_metadata.rb +1 -1
- data/lib/SematextCloud/models/app_response.rb +1 -1
- data/lib/SematextCloud/models/app_response_entry.rb +1 -1
- data/lib/SematextCloud/models/app_types_response.rb +1 -1
- data/lib/SematextCloud/models/app_types_response_entry.rb +1 -1
- data/lib/SematextCloud/models/apps_response.rb +1 -1
- data/lib/SematextCloud/models/apps_response_entry.rb +1 -1
- data/lib/SematextCloud/models/basic_auth_method_dto.rb +1 -1
- data/lib/SematextCloud/models/basic_organization_dto.rb +1 -1
- data/lib/SematextCloud/models/billing_info.rb +1 -1
- data/lib/SematextCloud/models/charges_details_response_dto.rb +1 -1
- data/lib/SematextCloud/models/cloud_watch_settings.rb +1 -1
- data/lib/SematextCloud/models/cloud_watch_settings_response.rb +1 -1
- data/lib/SematextCloud/models/cloud_watch_settings_response_entry.rb +1 -1
- data/lib/SematextCloud/models/create_app_info.rb +1 -1
- data/lib/SematextCloud/models/create_token_dto.rb +1 -1
- data/lib/SematextCloud/models/daily_dto.rb +1 -1
- data/lib/SematextCloud/models/day_usage_data.rb +1 -1
- data/lib/SematextCloud/models/dimension.rb +1 -1
- data/lib/SematextCloud/models/error.rb +1 -1
- data/lib/SematextCloud/models/event_dto.rb +1 -1
- data/lib/SematextCloud/models/filter_value.rb +1 -1
- data/lib/SematextCloud/models/generic_api_response.rb +1 -1
- data/lib/SematextCloud/models/generic_map_based_api_response.rb +1 -1
- data/lib/SematextCloud/models/invitation.rb +1 -1
- data/lib/SematextCloud/models/invoice.rb +1 -1
- data/lib/SematextCloud/models/invoice_response.rb +1 -1
- data/lib/SematextCloud/models/invoice_response_entry.rb +1 -1
- data/lib/SematextCloud/models/limit_change_event_dto.rb +1 -1
- data/lib/SematextCloud/models/mail_report_response.rb +1 -1
- data/lib/SematextCloud/models/mail_report_response_response_entry.rb +1 -1
- data/lib/SematextCloud/models/min_period_fee_period.rb +1 -1
- data/lib/SematextCloud/models/notification_integration.rb +1 -1
- data/lib/SematextCloud/models/notifications_response.rb +1 -1
- data/lib/SematextCloud/models/notifications_response_entry.rb +1 -1
- data/lib/SematextCloud/models/plan.rb +1 -1
- data/lib/SematextCloud/models/plans_response.rb +1 -1
- data/lib/SematextCloud/models/plans_response_entry.rb +1 -1
- data/lib/SematextCloud/models/report_info.rb +1 -1
- data/lib/SematextCloud/models/service_integration.rb +1 -1
- data/lib/SematextCloud/models/subscription.rb +1 -1
- data/lib/SematextCloud/models/subscription_dashboard_dto.rb +1 -1
- data/lib/SematextCloud/models/subscription_dto.rb +1 -1
- data/lib/SematextCloud/models/subscription_response.rb +1 -1
- data/lib/SematextCloud/models/subscription_response_entry.rb +1 -1
- data/lib/SematextCloud/models/subscriptions_response.rb +1 -1
- data/lib/SematextCloud/models/subscriptions_response_entry.rb +1 -1
- data/lib/SematextCloud/models/tag_names_response.rb +1 -1
- data/lib/SematextCloud/models/tags_grouped.rb +227 -0
- data/lib/SematextCloud/models/tags_grouped_response.rb +213 -0
- data/lib/SematextCloud/models/token_dto.rb +1 -1
- data/lib/SematextCloud/models/token_response.rb +1 -1
- data/lib/SematextCloud/models/token_response_entry.rb +1 -1
- data/lib/SematextCloud/models/tokens_response.rb +1 -1
- data/lib/SematextCloud/models/tokens_response_entry.rb +1 -1
- data/lib/SematextCloud/models/update_app_info.rb +1 -1
- data/lib/SematextCloud/models/update_plan_response.rb +1 -1
- data/lib/SematextCloud/models/update_plan_response_dto.rb +1 -1
- data/lib/SematextCloud/models/update_plan_response_entry.rb +1 -1
- data/lib/SematextCloud/models/update_subscription_dto.rb +1 -1
- data/lib/SematextCloud/models/update_token_dto.rb +1 -1
- data/lib/SematextCloud/models/usage_dto.rb +1 -1
- data/lib/SematextCloud/models/usage_multi_response.rb +1 -1
- data/lib/SematextCloud/models/usage_multi_response_entry.rb +1 -1
- data/lib/SematextCloud/models/usage_response.rb +1 -1
- data/lib/SematextCloud/models/usage_response_entry.rb +1 -1
- data/lib/SematextCloud/models/user_info.rb +1 -1
- data/lib/SematextCloud/models/user_permissions.rb +1 -1
- data/lib/SematextCloud/models/user_role.rb +1 -1
- data/lib/SematextCloud/version.rb +2 -2
- data/lib/SematextCloud.rb +3 -1
- data/spec/api/alert_notifications_api_spec.rb +5 -5
- data/spec/api/alerts_api_spec.rb +5 -5
- data/spec/api/apps_api_spec.rb +9 -9
- data/spec/api/aws_settings_controller_api_spec.rb +3 -3
- data/spec/api/billing_api_spec.rb +5 -5
- data/spec/api/logs_app_api_spec.rb +1 -1
- data/spec/api/logs_usage_api_controller_api_spec.rb +1 -1
- data/spec/api/monitoring_app_api_spec.rb +3 -3
- data/spec/api/reset_password_api_spec.rb +1 -1
- data/spec/api/subscriptions_api_spec.rb +15 -15
- data/spec/api/tag_api_controller_api_spec.rb +19 -1
- data/spec/api/tokens_api_controller_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/alert_notification_request_spec.rb +1 -1
- data/spec/models/alert_notification_spec.rb +1 -1
- data/spec/models/alert_rule_response_entry_spec.rb +1 -1
- data/spec/models/alert_rule_response_spec.rb +1 -1
- data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +1 -1
- data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +1 -1
- data/spec/models/alert_rule_spec.rb +11 -1
- data/spec/models/alert_rules_response_entry_spec.rb +1 -1
- data/spec/models/alert_rules_response_spec.rb +1 -1
- data/spec/models/app_description_spec.rb +1 -1
- data/spec/models/app_metadata_spec.rb +1 -1
- data/spec/models/app_response_entry_spec.rb +1 -1
- data/spec/models/app_response_spec.rb +1 -1
- data/spec/models/app_spec.rb +1 -1
- data/spec/models/app_types_response_entry_spec.rb +1 -1
- data/spec/models/app_types_response_spec.rb +1 -1
- data/spec/models/apps_response_entry_spec.rb +1 -1
- data/spec/models/apps_response_spec.rb +1 -1
- data/spec/models/basic_auth_method_dto_spec.rb +1 -1
- data/spec/models/basic_organization_dto_spec.rb +1 -1
- data/spec/models/billing_info_spec.rb +1 -1
- data/spec/models/charges_details_response_dto_spec.rb +1 -1
- data/spec/models/cloud_watch_settings_response_entry_spec.rb +1 -1
- data/spec/models/cloud_watch_settings_response_spec.rb +1 -1
- data/spec/models/cloud_watch_settings_spec.rb +1 -1
- data/spec/models/create_app_info_spec.rb +1 -1
- data/spec/models/create_token_dto_spec.rb +1 -1
- data/spec/models/daily_dto_spec.rb +1 -1
- data/spec/models/day_usage_data_spec.rb +1 -1
- data/spec/models/dimension_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/event_dto_spec.rb +1 -1
- data/spec/models/filter_value_spec.rb +1 -1
- data/spec/models/generic_api_response_spec.rb +1 -1
- data/spec/models/generic_map_based_api_response_spec.rb +1 -1
- data/spec/models/invitation_spec.rb +1 -1
- data/spec/models/invoice_response_entry_spec.rb +1 -1
- data/spec/models/invoice_response_spec.rb +1 -1
- data/spec/models/invoice_spec.rb +1 -1
- data/spec/models/limit_change_event_dto_spec.rb +1 -1
- data/spec/models/mail_report_response_response_entry_spec.rb +1 -1
- data/spec/models/mail_report_response_spec.rb +1 -1
- data/spec/models/min_period_fee_period_spec.rb +1 -1
- data/spec/models/notification_integration_spec.rb +1 -1
- data/spec/models/notifications_response_entry_spec.rb +1 -1
- data/spec/models/notifications_response_spec.rb +1 -1
- data/spec/models/plan_spec.rb +1 -1
- data/spec/models/plans_response_entry_spec.rb +1 -1
- data/spec/models/plans_response_spec.rb +1 -1
- data/spec/models/report_info_spec.rb +1 -1
- data/spec/models/service_integration_spec.rb +1 -1
- data/spec/models/subscription_dashboard_dto_spec.rb +1 -1
- data/spec/models/subscription_dto_spec.rb +1 -1
- data/spec/models/subscription_response_entry_spec.rb +1 -1
- data/spec/models/subscription_response_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/subscriptions_response_entry_spec.rb +1 -1
- data/spec/models/subscriptions_response_spec.rb +1 -1
- data/spec/models/tag_names_response_spec.rb +1 -1
- data/spec/models/tags_grouped_response_spec.rb +40 -0
- data/spec/models/tags_grouped_spec.rb +46 -0
- data/spec/models/token_dto_spec.rb +1 -1
- data/spec/models/token_response_entry_spec.rb +1 -1
- data/spec/models/token_response_spec.rb +1 -1
- data/spec/models/tokens_response_entry_spec.rb +1 -1
- data/spec/models/tokens_response_spec.rb +1 -1
- data/spec/models/update_app_info_spec.rb +1 -1
- data/spec/models/update_plan_response_dto_spec.rb +1 -1
- data/spec/models/update_plan_response_entry_spec.rb +1 -1
- data/spec/models/update_plan_response_spec.rb +1 -1
- data/spec/models/update_subscription_dto_spec.rb +1 -1
- data/spec/models/update_token_dto_spec.rb +1 -1
- data/spec/models/usage_dto_spec.rb +1 -1
- data/spec/models/usage_multi_response_entry_spec.rb +1 -1
- data/spec/models/usage_multi_response_spec.rb +1 -1
- data/spec/models/usage_response_entry_spec.rb +1 -1
- data/spec/models/usage_response_spec.rb +1 -1
- data/spec/models/user_info_spec.rb +1 -1
- data/spec/models/user_permissions_spec.rb +1 -1
- data/spec/models/user_role_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +83 -75
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -81,6 +81,8 @@ module SematextCloud
|
|
81
81
|
|
82
82
|
attr_accessor :notifications_enabled
|
83
83
|
|
84
|
+
attr_accessor :priority
|
85
|
+
|
84
86
|
attr_accessor :query
|
85
87
|
|
86
88
|
attr_accessor :report_name
|
@@ -168,6 +170,7 @@ module SematextCloud
|
|
168
170
|
:'notification_emails' => :'notificationEmails',
|
169
171
|
:'notification_integrations' => :'notificationIntegrations',
|
170
172
|
:'notifications_enabled' => :'notificationsEnabled',
|
173
|
+
:'priority' => :'priority',
|
171
174
|
:'query' => :'query',
|
172
175
|
:'report_name' => :'reportName',
|
173
176
|
:'rule_key' => :'ruleKey',
|
@@ -222,6 +225,7 @@ module SematextCloud
|
|
222
225
|
:'notification_emails' => :'Object',
|
223
226
|
:'notification_integrations' => :'Object',
|
224
227
|
:'notifications_enabled' => :'Object',
|
228
|
+
:'priority' => :'Object',
|
225
229
|
:'query' => :'Object',
|
226
230
|
:'report_name' => :'Object',
|
227
231
|
:'rule_key' => :'Object',
|
@@ -406,6 +410,10 @@ module SematextCloud
|
|
406
410
|
self.notifications_enabled = attributes[:'notifications_enabled']
|
407
411
|
end
|
408
412
|
|
413
|
+
if attributes.key?(:'priority')
|
414
|
+
self.priority = attributes[:'priority']
|
415
|
+
end
|
416
|
+
|
409
417
|
if attributes.key?(:'query')
|
410
418
|
self.query = attributes[:'query']
|
411
419
|
end
|
@@ -477,6 +485,8 @@ module SematextCloud
|
|
477
485
|
def valid?
|
478
486
|
estimate_operation_validator = EnumAttributeValidator.new('Object', ['LESS', 'MORE', 'EQUAL', 'UN_EQUAL', 'LESS_OR_EQUAL', 'MORE_OR_EQUAL'])
|
479
487
|
return false unless estimate_operation_validator.valid?(@estimate_operation)
|
488
|
+
priority_validator = EnumAttributeValidator.new('Object', ['INFO', 'ERROR', 'WARN', 'CRITICAL'])
|
489
|
+
return false unless priority_validator.valid?(@priority)
|
480
490
|
true
|
481
491
|
end
|
482
492
|
|
@@ -490,6 +500,16 @@ module SematextCloud
|
|
490
500
|
@estimate_operation = estimate_operation
|
491
501
|
end
|
492
502
|
|
503
|
+
# Custom attribute writer method checking allowed values (enum).
|
504
|
+
# @param [Object] priority Object to be assigned
|
505
|
+
def priority=(priority)
|
506
|
+
validator = EnumAttributeValidator.new('Object', ['INFO', 'ERROR', 'WARN', 'CRITICAL'])
|
507
|
+
unless validator.valid?(priority)
|
508
|
+
fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}."
|
509
|
+
end
|
510
|
+
@priority = priority
|
511
|
+
end
|
512
|
+
|
493
513
|
# Checks equality by comparing each attribute.
|
494
514
|
# @param [Object] Object to be compared
|
495
515
|
def ==(o)
|
@@ -529,6 +549,7 @@ module SematextCloud
|
|
529
549
|
notification_emails == o.notification_emails &&
|
530
550
|
notification_integrations == o.notification_integrations &&
|
531
551
|
notifications_enabled == o.notifications_enabled &&
|
552
|
+
priority == o.priority &&
|
532
553
|
query == o.query &&
|
533
554
|
report_name == o.report_name &&
|
534
555
|
rule_key == o.rule_key &&
|
@@ -554,7 +575,7 @@ module SematextCloud
|
|
554
575
|
# Calculates hash code according to all attributes.
|
555
576
|
# @return [Integer] Hash code
|
556
577
|
def hash
|
557
|
-
[account_email, allowed_app_types, analyzing_time, app_display_state, app_id, app_name, app_state, app_token, app_type, back_to_normal_needed, chart_key, color, creator_email, default_agg_type, description, disallowed_app_types, enabled, estimate_operation, estimate_value, filter_values, filter_values_obj, ignore_regular_events_enabled, integrations, last_data_received_date, last_sent, last_triggered, metadata, metric_key, metric_label, min_delay_between_notifications_in_minutes, name, notification_emails, notification_integrations, notifications_enabled, query, report_name, rule_key, rule_type, runbook, saved_query_id, schedule, sematext_service, send_to_email, timezone, use_only_alert_rule_integrations, user_permissions, value_column_name, value_name].hash
|
578
|
+
[account_email, allowed_app_types, analyzing_time, app_display_state, app_id, app_name, app_state, app_token, app_type, back_to_normal_needed, chart_key, color, creator_email, default_agg_type, description, disallowed_app_types, enabled, estimate_operation, estimate_value, filter_values, filter_values_obj, ignore_regular_events_enabled, integrations, last_data_received_date, last_sent, last_triggered, metadata, metric_key, metric_label, min_delay_between_notifications_in_minutes, name, notification_emails, notification_integrations, notifications_enabled, priority, query, report_name, rule_key, rule_type, runbook, saved_query_id, schedule, sematext_service, send_to_email, timezone, use_only_alert_rule_integrations, user_permissions, value_column_name, value_name].hash
|
558
579
|
end
|
559
580
|
|
560
581
|
# Builds the object from hash
|