SematextCloud 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/LICENSE +13 -0
  4. data/README.md +149 -0
  5. data/Rakefile +8 -0
  6. data/SematextCloud.gemspec +45 -0
  7. data/docs/AlertNotificationRequest.md +9 -0
  8. data/docs/AlertNotificationsApi.md +118 -0
  9. data/docs/AlertRule.md +53 -0
  10. data/docs/AlertRuleScheduleTimeRangeDto.md +7 -0
  11. data/docs/AlertRuleScheduleWeekdayDto.md +10 -0
  12. data/docs/AlertsApi.md +270 -0
  13. data/docs/App.md +32 -0
  14. data/docs/AppDescription.md +6 -0
  15. data/docs/AppMetadata.md +10 -0
  16. data/docs/AppsApi.md +369 -0
  17. data/docs/AwsSettingsControllerApi.md +63 -0
  18. data/docs/BasicAuthMethodDto.md +7 -0
  19. data/docs/BasicOrganizationDto.md +9 -0
  20. data/docs/BillingApi.md +176 -0
  21. data/docs/BillingInfo.md +8 -0
  22. data/docs/CloudWatchSettings.md +9 -0
  23. data/docs/CreateAppInfo.md +10 -0
  24. data/docs/DataSeriesFilter.md +8 -0
  25. data/docs/DataSeriesRequest.md +12 -0
  26. data/docs/Error.md +7 -0
  27. data/docs/FilterValue.md +11 -0
  28. data/docs/GenericApiResponse.md +9 -0
  29. data/docs/Invitation.md +15 -0
  30. data/docs/LogsAppApi.md +58 -0
  31. data/docs/MetricsApi.md +227 -0
  32. data/docs/MonitoringAppApi.md +58 -0
  33. data/docs/NotificationIntegration.md +15 -0
  34. data/docs/Plan.md +18 -0
  35. data/docs/ReportInfo.md +13 -0
  36. data/docs/ResetPasswordApi.md +58 -0
  37. data/docs/SavedQueriesApi.md +220 -0
  38. data/docs/SavedQuery.md +18 -0
  39. data/docs/ServiceIntegration.md +17 -0
  40. data/docs/SubscriptionsApi.md +114 -0
  41. data/docs/TagApiControllerApi.md +212 -0
  42. data/docs/UpdateAppInfo.md +14 -0
  43. data/docs/UserInfo.md +6 -0
  44. data/docs/UserPermissions.md +8 -0
  45. data/docs/UserRole.md +8 -0
  46. data/lib/SematextCloud.rb +78 -0
  47. data/lib/SematextCloud/api/alert_notifications_api.rb +137 -0
  48. data/lib/SematextCloud/api/alerts_api.rb +283 -0
  49. data/lib/SematextCloud/api/apps_api.rb +381 -0
  50. data/lib/SematextCloud/api/aws_settings_controller_api.rb +83 -0
  51. data/lib/SematextCloud/api/billing_api.rb +197 -0
  52. data/lib/SematextCloud/api/logs_app_api.rb +75 -0
  53. data/lib/SematextCloud/api/metrics_api.rb +247 -0
  54. data/lib/SematextCloud/api/monitoring_app_api.rb +75 -0
  55. data/lib/SematextCloud/api/reset_password_api.rb +75 -0
  56. data/lib/SematextCloud/api/saved_queries_api.rb +237 -0
  57. data/lib/SematextCloud/api/subscriptions_api.rb +133 -0
  58. data/lib/SematextCloud/api/tag_api_controller_api.rb +247 -0
  59. data/lib/SematextCloud/api_client.rb +389 -0
  60. data/lib/SematextCloud/api_error.rb +38 -0
  61. data/lib/SematextCloud/configuration.rb +209 -0
  62. data/lib/SematextCloud/models/alert_notification_request.rb +212 -0
  63. data/lib/SematextCloud/models/alert_rule.rb +652 -0
  64. data/lib/SematextCloud/models/alert_rule_schedule_time_range_dto.rb +192 -0
  65. data/lib/SematextCloud/models/alert_rule_schedule_weekday_dto.rb +221 -0
  66. data/lib/SematextCloud/models/app.rb +419 -0
  67. data/lib/SematextCloud/models/app_description.rb +183 -0
  68. data/lib/SematextCloud/models/app_metadata.rb +268 -0
  69. data/lib/SematextCloud/models/basic_auth_method_dto.rb +226 -0
  70. data/lib/SematextCloud/models/basic_organization_dto.rb +246 -0
  71. data/lib/SematextCloud/models/billing_info.rb +201 -0
  72. data/lib/SematextCloud/models/cloud_watch_settings.rb +256 -0
  73. data/lib/SematextCloud/models/create_app_info.rb +220 -0
  74. data/lib/SematextCloud/models/data_series_filter.rb +237 -0
  75. data/lib/SematextCloud/models/data_series_request.rb +283 -0
  76. data/lib/SematextCloud/models/error.rb +192 -0
  77. data/lib/SematextCloud/models/filter_value.rb +230 -0
  78. data/lib/SematextCloud/models/generic_api_response.rb +214 -0
  79. data/lib/SematextCloud/models/invitation.rb +326 -0
  80. data/lib/SematextCloud/models/notification_integration.rb +324 -0
  81. data/lib/SematextCloud/models/plan.rb +337 -0
  82. data/lib/SematextCloud/models/report_info.rb +247 -0
  83. data/lib/SematextCloud/models/saved_query.rb +291 -0
  84. data/lib/SematextCloud/models/service_integration.rb +282 -0
  85. data/lib/SematextCloud/models/update_app_info.rb +289 -0
  86. data/lib/SematextCloud/models/user_info.rb +183 -0
  87. data/lib/SematextCloud/models/user_permissions.rb +201 -0
  88. data/lib/SematextCloud/models/user_role.rb +247 -0
  89. data/lib/SematextCloud/version.rb +15 -0
  90. data/spec/api/alert_notifications_api_spec.rb +60 -0
  91. data/spec/api/alerts_api_spec.rb +90 -0
  92. data/spec/api/apps_api_spec.rb +113 -0
  93. data/spec/api/aws_settings_controller_api_spec.rb +48 -0
  94. data/spec/api/billing_api_spec.rb +72 -0
  95. data/spec/api/logs_app_api_spec.rb +46 -0
  96. data/spec/api/metrics_api_spec.rb +83 -0
  97. data/spec/api/monitoring_app_api_spec.rb +46 -0
  98. data/spec/api/reset_password_api_spec.rb +46 -0
  99. data/spec/api/saved_queries_api_spec.rb +80 -0
  100. data/spec/api/subscriptions_api_spec.rb +58 -0
  101. data/spec/api/tag_api_controller_api_spec.rb +88 -0
  102. data/spec/api_client_spec.rb +226 -0
  103. data/spec/configuration_spec.rb +42 -0
  104. data/spec/models/alert_notification_request_spec.rb +59 -0
  105. data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +47 -0
  106. data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +65 -0
  107. data/spec/models/alert_rule_spec.rb +327 -0
  108. data/spec/models/app_description_spec.rb +41 -0
  109. data/spec/models/app_metadata_spec.rb +77 -0
  110. data/spec/models/app_spec.rb +197 -0
  111. data/spec/models/basic_auth_method_dto_spec.rb +51 -0
  112. data/spec/models/basic_organization_dto_spec.rb +63 -0
  113. data/spec/models/billing_info_spec.rb +53 -0
  114. data/spec/models/cloud_watch_settings_spec.rb +67 -0
  115. data/spec/models/create_app_info_spec.rb +65 -0
  116. data/spec/models/data_series_filter_spec.rb +57 -0
  117. data/spec/models/data_series_request_spec.rb +81 -0
  118. data/spec/models/error_spec.rb +47 -0
  119. data/spec/models/filter_value_spec.rb +71 -0
  120. data/spec/models/generic_api_response_spec.rb +59 -0
  121. data/spec/models/invitation_spec.rb +107 -0
  122. data/spec/models/notification_integration_spec.rb +107 -0
  123. data/spec/models/plan_spec.rb +121 -0
  124. data/spec/models/report_info_spec.rb +83 -0
  125. data/spec/models/saved_query_spec.rb +113 -0
  126. data/spec/models/service_integration_spec.rb +107 -0
  127. data/spec/models/update_app_info_spec.rb +93 -0
  128. data/spec/models/user_info_spec.rb +41 -0
  129. data/spec/models/user_permissions_spec.rb +53 -0
  130. data/spec/models/user_role_spec.rb +61 -0
  131. data/spec/spec_helper.rb +111 -0
  132. metadata +395 -0
@@ -0,0 +1,7 @@
1
+ # SematextCloud::BasicAuthMethodDto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **auth_type** | **String** | | [optional]
7
+ **uuid** | **String** | | [optional]
@@ -0,0 +1,9 @@
1
+ # SematextCloud::BasicOrganizationDto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **auth_methods** | [**Array<BasicAuthMethodDto>**](BasicAuthMethodDto.md) | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **status** | **String** | | [optional]
9
+ **uuid** | **String** | | [optional]
@@ -0,0 +1,176 @@
1
+ # SematextCloud::BillingApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_detailed_invoice_using_get**](BillingApi.md#get_detailed_invoice_using_get) | **GET** /users-web/api/v3/billing/invoice/{service}/{year}/{month} | Get invoice details
8
+ [**list_available_plans_using_get**](BillingApi.md#list_available_plans_using_get) | **GET** /users-web/api/v3/billing/availablePlans | Get available plans
9
+ [**update_plan_using_put**](BillingApi.md#update_plan_using_put) | **PUT** /users-web/api/v3/billing/info/{appId} | Update plan for an app
10
+
11
+
12
+ # **get_detailed_invoice_using_get**
13
+ > GenericApiResponse get_detailed_invoice_using_get(service, year, month)
14
+
15
+ Get invoice details
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'SematextCloud'
21
+ # setup authorization
22
+ SematextCloud.configure do |config|
23
+ # Configure API key authorization: api_key
24
+ config.api_key['Authorization'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Authorization'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = SematextCloud::BillingApi.new
30
+
31
+ service = 'service_example' # String | service
32
+
33
+ year = 56 # Integer | year
34
+
35
+ month = 56 # Integer | month
36
+
37
+
38
+ begin
39
+ #Get invoice details
40
+ result = api_instance.get_detailed_invoice_using_get(service, year, month)
41
+ p result
42
+ rescue SematextCloud::ApiError => e
43
+ puts "Exception when calling BillingApi->get_detailed_invoice_using_get: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **service** | **String**| service |
52
+ **year** | **Integer**| year |
53
+ **month** | **Integer**| month |
54
+
55
+ ### Return type
56
+
57
+ [**GenericApiResponse**](GenericApiResponse.md)
58
+
59
+ ### Authorization
60
+
61
+ [api_key](../README.md#api_key)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json
66
+ - **Accept**: application/json
67
+
68
+
69
+
70
+ # **list_available_plans_using_get**
71
+ > GenericApiResponse list_available_plans_using_get(opts)
72
+
73
+ Get available plans
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'SematextCloud'
79
+ # setup authorization
80
+ SematextCloud.configure do |config|
81
+ # Configure API key authorization: api_key
82
+ config.api_key['Authorization'] = 'YOUR API KEY'
83
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
+ #config.api_key_prefix['Authorization'] = 'Bearer'
85
+ end
86
+
87
+ api_instance = SematextCloud::BillingApi.new
88
+
89
+ opts = {
90
+ integration_id: 789, # Integer | integrationId
91
+ app_type: 'app_type_example' # String | appType
92
+ }
93
+
94
+ begin
95
+ #Get available plans
96
+ result = api_instance.list_available_plans_using_get(opts)
97
+ p result
98
+ rescue SematextCloud::ApiError => e
99
+ puts "Exception when calling BillingApi->list_available_plans_using_get: #{e}"
100
+ end
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ Name | Type | Description | Notes
106
+ ------------- | ------------- | ------------- | -------------
107
+ **integration_id** | **Integer**| integrationId | [optional]
108
+ **app_type** | **String**| appType | [optional]
109
+
110
+ ### Return type
111
+
112
+ [**GenericApiResponse**](GenericApiResponse.md)
113
+
114
+ ### Authorization
115
+
116
+ [api_key](../README.md#api_key)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: application/json
121
+ - **Accept**: application/json
122
+
123
+
124
+
125
+ # **update_plan_using_put**
126
+ > GenericApiResponse update_plan_using_put(app_id, dto)
127
+
128
+ Update plan for an app
129
+
130
+ ### Example
131
+ ```ruby
132
+ # load the gem
133
+ require 'SematextCloud'
134
+ # setup authorization
135
+ SematextCloud.configure do |config|
136
+ # Configure API key authorization: api_key
137
+ config.api_key['Authorization'] = 'YOUR API KEY'
138
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
139
+ #config.api_key_prefix['Authorization'] = 'Bearer'
140
+ end
141
+
142
+ api_instance = SematextCloud::BillingApi.new
143
+
144
+ app_id = 789 # Integer | appId
145
+
146
+ dto = SematextCloud::BillingInfo.new # BillingInfo | dto
147
+
148
+
149
+ begin
150
+ #Update plan for an app
151
+ result = api_instance.update_plan_using_put(app_id, dto)
152
+ p result
153
+ rescue SematextCloud::ApiError => e
154
+ puts "Exception when calling BillingApi->update_plan_using_put: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ Name | Type | Description | Notes
161
+ ------------- | ------------- | ------------- | -------------
162
+ **app_id** | **Integer**| appId |
163
+ **dto** | [**BillingInfo**](BillingInfo.md)| dto |
164
+
165
+ ### Return type
166
+
167
+ [**GenericApiResponse**](GenericApiResponse.md)
168
+
169
+ ### Authorization
170
+
171
+ [api_key](../README.md#api_key)
172
+
173
+ ### HTTP request headers
174
+
175
+ - **Content-Type**: application/json
176
+ - **Accept**: application/json
@@ -0,0 +1,8 @@
1
+ # SematextCloud::BillingInfo
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **credit_card_id** | **Integer** | | [optional]
7
+ **payment_method** | **String** | | [optional]
8
+ **plan_id** | **Integer** | | [optional]
@@ -0,0 +1,9 @@
1
+ # SematextCloud::CloudWatchSettings
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **access_key** | **String** | | [optional]
7
+ **fetch_frequency** | **String** | | [optional]
8
+ **region** | **String** | | [optional]
9
+ **secret_key** | **String** | | [optional]
@@ -0,0 +1,10 @@
1
+ # SematextCloud::CreateAppInfo
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **app_type** | **String** | | [optional]
7
+ **discount_code** | **String** | | [optional]
8
+ **initial_plan_id** | **Integer** | | [optional]
9
+ **meta_data** | [**AppMetadata**](AppMetadata.md) | AWS app meta data. Applicable only for `aws` appType | [optional]
10
+ **name** | **String** | | [optional]
@@ -0,0 +1,8 @@
1
+ # SematextCloud::DataSeriesFilter
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **aggregation** | **String** | | [optional]
7
+ **multi_value** | **BOOLEAN** | | [optional]
8
+ **values** | **Array<String>** | | [optional]
@@ -0,0 +1,12 @@
1
+ # SematextCloud::DataSeriesRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **default_interval** | **Integer** | | [optional]
7
+ **_end** | **String** | End time of interval. Can be expressed as timestamp in milliseconds or UTC date in yyyy-MM-dd HH:mm:ss format | [optional]
8
+ **filters** | [**Hash<String, DataSeriesFilter>**](DataSeriesFilter.md) | Map of allowed filter values and aggregation strategy. List of available filter values can be fetched using metric filters endpoint and default aggregation strategy depends on metric | [optional]
9
+ **granularity** | **String** | Data points interval granularity between two data points.Default value is \"AUTO\" - calculated based on selected time span. Not required while getting filters. | [optional]
10
+ **interval** | **String** | | [optional]
11
+ **metric** | **String** | Metric name or metric group prefix |
12
+ **start** | **String** | Start time of interval. Can be expressed as timestamp in milliseconds or UTC date in yyyy-MM-dd HH:mm:ss format | [optional]
@@ -0,0 +1,7 @@
1
+ # SematextCloud::Error
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **code** | **String** | | [optional]
7
+ **message** | **String** | | [optional]
@@ -0,0 +1,11 @@
1
+ # SematextCloud::FilterValue
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **agg_type** | **String** | | [optional]
7
+ **filter_name** | **String** | | [optional]
8
+ **key** | **String** | | [optional]
9
+ **label** | **String** | | [optional]
10
+ **name** | **String** | | [optional]
11
+ **values** | **Array<String>** | | [optional]
@@ -0,0 +1,9 @@
1
+ # SematextCloud::GenericApiResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | **Object** | Contains actual data when response is successful. Key and Value is specific to each endpoint | [optional]
7
+ **errors** | [**Array<Error>**](Error.md) | | [optional]
8
+ **message** | **String** | | [optional]
9
+ **success** | **BOOLEAN** | | [optional]
@@ -0,0 +1,15 @@
1
+ # SematextCloud::Invitation
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **app** | [**App**](App.md) | For invite request, only app.id needs to be set. | [optional]
7
+ **apps** | [**Array<App>**](App.md) | For invite request, only apps.id needs to be set. | [optional]
8
+ **id** | **Integer** | | [optional]
9
+ **invite_date** | **DateTime** | | [optional]
10
+ **invite_status** | **String** | | [optional]
11
+ **invitee_email** | **String** | | [optional]
12
+ **invitee_role** | **String** | | [optional]
13
+ **invitee_status** | **String** | | [optional]
14
+ **inviter_email** | **String** | | [optional]
15
+ **uuid** | **String** | | [optional]
@@ -0,0 +1,58 @@
1
+ # SematextCloud::LogsAppApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_logsene_application**](LogsAppApi.md#create_logsene_application) | **POST** /logsene-reports/api/v3/apps | Create Logs App
8
+
9
+
10
+ # **create_logsene_application**
11
+ > GenericApiResponse create_logsene_application(application_details)
12
+
13
+ Create Logs App
14
+
15
+ ### Example
16
+ ```ruby
17
+ # load the gem
18
+ require 'SematextCloud'
19
+ # setup authorization
20
+ SematextCloud.configure do |config|
21
+ # Configure API key authorization: api_key
22
+ config.api_key['Authorization'] = 'YOUR API KEY'
23
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
24
+ #config.api_key_prefix['Authorization'] = 'Bearer'
25
+ end
26
+
27
+ api_instance = SematextCloud::LogsAppApi.new
28
+
29
+ application_details = SematextCloud::CreateAppInfo.new # CreateAppInfo | Details of the application to be created
30
+
31
+
32
+ begin
33
+ #Create Logs App
34
+ result = api_instance.create_logsene_application(application_details)
35
+ p result
36
+ rescue SematextCloud::ApiError => e
37
+ puts "Exception when calling LogsAppApi->create_logsene_application: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **application_details** | [**CreateAppInfo**](CreateAppInfo.md)| Details of the application to be created |
46
+
47
+ ### Return type
48
+
49
+ [**GenericApiResponse**](GenericApiResponse.md)
50
+
51
+ ### Authorization
52
+
53
+ [api_key](../README.md#api_key)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json
58
+ - **Accept**: application/json
@@ -0,0 +1,227 @@
1
+ # SematextCloud::MetricsApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_data_series_using_post**](MetricsApi.md#list_data_series_using_post) | **POST** /spm-reports/api/v3/apps/{appId}/metrics/data | Get metrics data points for an app
8
+ [**list_filters_using_post**](MetricsApi.md#list_filters_using_post) | **POST** /spm-reports/api/v3/apps/{appId}/metrics/filters | Get metrics filters and their values for an app
9
+ [**list_metrics_keys_using_get**](MetricsApi.md#list_metrics_keys_using_get) | **GET** /spm-reports/api/v3/apps/{appId}/metrics/keys | Get metrics keys for an app
10
+ [**list_metrics_using_get**](MetricsApi.md#list_metrics_using_get) | **GET** /spm-reports/api/v3/apps/{appId}/metrics | Get metrics info for an app
11
+
12
+
13
+ # **list_data_series_using_post**
14
+ > GenericApiResponse list_data_series_using_post(app_id, request_body)
15
+
16
+ Get metrics data points for an app
17
+
18
+ Default value of interval is 5m
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'SematextCloud'
24
+ # setup authorization
25
+ SematextCloud.configure do |config|
26
+ # Configure API key authorization: api_key
27
+ config.api_key['Authorization'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ #config.api_key_prefix['Authorization'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = SematextCloud::MetricsApi.new
33
+
34
+ app_id = 789 # Integer | appId
35
+
36
+ request_body = SematextCloud::DataSeriesRequest.new # DataSeriesRequest | Metric data points request
37
+
38
+
39
+ begin
40
+ #Get metrics data points for an app
41
+ result = api_instance.list_data_series_using_post(app_id, request_body)
42
+ p result
43
+ rescue SematextCloud::ApiError => e
44
+ puts "Exception when calling MetricsApi->list_data_series_using_post: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ Name | Type | Description | Notes
51
+ ------------- | ------------- | ------------- | -------------
52
+ **app_id** | **Integer**| appId |
53
+ **request_body** | [**DataSeriesRequest**](DataSeriesRequest.md)| Metric data points request |
54
+
55
+ ### Return type
56
+
57
+ [**GenericApiResponse**](GenericApiResponse.md)
58
+
59
+ ### Authorization
60
+
61
+ [api_key](../README.md#api_key)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json
66
+ - **Accept**: application/json
67
+
68
+
69
+
70
+ # **list_filters_using_post**
71
+ > GenericApiResponse list_filters_using_post(app_id, request_body)
72
+
73
+ Get metrics filters and their values for an app
74
+
75
+ Default value of interval is 5m
76
+
77
+ ### Example
78
+ ```ruby
79
+ # load the gem
80
+ require 'SematextCloud'
81
+ # setup authorization
82
+ SematextCloud.configure do |config|
83
+ # Configure API key authorization: api_key
84
+ config.api_key['Authorization'] = 'YOUR API KEY'
85
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
86
+ #config.api_key_prefix['Authorization'] = 'Bearer'
87
+ end
88
+
89
+ api_instance = SematextCloud::MetricsApi.new
90
+
91
+ app_id = 789 # Integer | appId
92
+
93
+ request_body = SematextCloud::DataSeriesRequest.new # DataSeriesRequest | Metric filters request
94
+
95
+
96
+ begin
97
+ #Get metrics filters and their values for an app
98
+ result = api_instance.list_filters_using_post(app_id, request_body)
99
+ p result
100
+ rescue SematextCloud::ApiError => e
101
+ puts "Exception when calling MetricsApi->list_filters_using_post: #{e}"
102
+ end
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+ Name | Type | Description | Notes
108
+ ------------- | ------------- | ------------- | -------------
109
+ **app_id** | **Integer**| appId |
110
+ **request_body** | [**DataSeriesRequest**](DataSeriesRequest.md)| Metric filters request |
111
+
112
+ ### Return type
113
+
114
+ [**GenericApiResponse**](GenericApiResponse.md)
115
+
116
+ ### Authorization
117
+
118
+ [api_key](../README.md#api_key)
119
+
120
+ ### HTTP request headers
121
+
122
+ - **Content-Type**: application/json
123
+ - **Accept**: application/json
124
+
125
+
126
+
127
+ # **list_metrics_keys_using_get**
128
+ > GenericApiResponse list_metrics_keys_using_get(app_id)
129
+
130
+ Get metrics keys for an app
131
+
132
+ ### Example
133
+ ```ruby
134
+ # load the gem
135
+ require 'SematextCloud'
136
+ # setup authorization
137
+ SematextCloud.configure do |config|
138
+ # Configure API key authorization: api_key
139
+ config.api_key['Authorization'] = 'YOUR API KEY'
140
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
141
+ #config.api_key_prefix['Authorization'] = 'Bearer'
142
+ end
143
+
144
+ api_instance = SematextCloud::MetricsApi.new
145
+
146
+ app_id = 789 # Integer | appId
147
+
148
+
149
+ begin
150
+ #Get metrics keys for an app
151
+ result = api_instance.list_metrics_keys_using_get(app_id)
152
+ p result
153
+ rescue SematextCloud::ApiError => e
154
+ puts "Exception when calling MetricsApi->list_metrics_keys_using_get: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ Name | Type | Description | Notes
161
+ ------------- | ------------- | ------------- | -------------
162
+ **app_id** | **Integer**| appId |
163
+
164
+ ### Return type
165
+
166
+ [**GenericApiResponse**](GenericApiResponse.md)
167
+
168
+ ### Authorization
169
+
170
+ [api_key](../README.md#api_key)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: application/json
175
+ - **Accept**: application/json
176
+
177
+
178
+
179
+ # **list_metrics_using_get**
180
+ > GenericApiResponse list_metrics_using_get(app_id)
181
+
182
+ Get metrics info for an app
183
+
184
+ ### Example
185
+ ```ruby
186
+ # load the gem
187
+ require 'SematextCloud'
188
+ # setup authorization
189
+ SematextCloud.configure do |config|
190
+ # Configure API key authorization: api_key
191
+ config.api_key['Authorization'] = 'YOUR API KEY'
192
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
193
+ #config.api_key_prefix['Authorization'] = 'Bearer'
194
+ end
195
+
196
+ api_instance = SematextCloud::MetricsApi.new
197
+
198
+ app_id = 789 # Integer | appId
199
+
200
+
201
+ begin
202
+ #Get metrics info for an app
203
+ result = api_instance.list_metrics_using_get(app_id)
204
+ p result
205
+ rescue SematextCloud::ApiError => e
206
+ puts "Exception when calling MetricsApi->list_metrics_using_get: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ Name | Type | Description | Notes
213
+ ------------- | ------------- | ------------- | -------------
214
+ **app_id** | **Integer**| appId |
215
+
216
+ ### Return type
217
+
218
+ [**GenericApiResponse**](GenericApiResponse.md)
219
+
220
+ ### Authorization
221
+
222
+ [api_key](../README.md#api_key)
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: application/json
227
+ - **Accept**: application/json