togai_client 1.0.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 +7 -0
- data/Gemfile +9 -0
- data/README.md +61 -0
- data/Rakefile +10 -0
- data/docs/Account.md +24 -0
- data/docs/AccountAliases.md +20 -0
- data/docs/AccountPaginatedResponse.md +22 -0
- data/docs/AccountsApi.md +595 -0
- data/docs/AddAccountAliasesRequest.md +18 -0
- data/docs/AssociatePricePlanRequest.md +24 -0
- data/docs/AssociatePricePlanResponse.md +22 -0
- data/docs/BaseSuccessResponse.md +18 -0
- data/docs/BundleStrategy.md +24 -0
- data/docs/BundleStrategyUsageMetersValue.md +18 -0
- data/docs/Computation.md +31 -0
- data/docs/CreateAccountRequest.md +22 -0
- data/docs/CreateCustomerRequest.md +26 -0
- data/docs/CreateCustomerResponse.md +26 -0
- data/docs/CreateEventSchemaRequest.md +24 -0
- data/docs/CreatePricePlanRequest.md +24 -0
- data/docs/CreateUsageMeterRequest.md +26 -0
- data/docs/Customer.md +30 -0
- data/docs/CustomerPaginatedResponse.md +22 -0
- data/docs/CustomersApi.md +363 -0
- data/docs/DimensionsSchema.md +18 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/Event.md +28 -0
- data/docs/EventAttribute.md +22 -0
- data/docs/EventAttributeSchema.md +20 -0
- data/docs/EventIngestionApi.md +146 -0
- data/docs/EventManagementApi.md +159 -0
- data/docs/EventPipelineInfo.md +26 -0
- data/docs/EventPipelineInfoAccount.md +20 -0
- data/docs/EventPipelineInfoCustomer.md +20 -0
- data/docs/EventPipelineInfoEventSchema.md +20 -0
- data/docs/EventPipelineInfoPricePlansInner.md +26 -0
- data/docs/EventPipelineInfoUsageMetersInner.md +24 -0
- data/docs/EventSchema.md +32 -0
- data/docs/EventSchemaListData.md +34 -0
- data/docs/EventSchemaListDataAllOf.md +18 -0
- data/docs/EventSchemaListPaginatedResponse.md +22 -0
- data/docs/EventSchemaVersionsResponse.md +18 -0
- data/docs/EventSchemasApi.md +581 -0
- data/docs/EventWithStatus.md +20 -0
- data/docs/EventWithStatusAndEventPipelineInfo.md +22 -0
- data/docs/EventWithStatusAndEventPipelineInfoAllOf.md +18 -0
- data/docs/GetEventResponse.md +18 -0
- data/docs/GetEventsResponse.md +20 -0
- data/docs/GetMetricsRequest.md +22 -0
- data/docs/GetMetricsResponse.md +18 -0
- data/docs/IngestBatchEventRequest.md +18 -0
- data/docs/IngestBatchEventResponse.md +18 -0
- data/docs/IngestError.md +20 -0
- data/docs/IngestEventRequest.md +18 -0
- data/docs/IngestEventResponse.md +18 -0
- data/docs/IngestionStatus.md +20 -0
- data/docs/MetricDataPoints.md +22 -0
- data/docs/MetricDataPointsGroupedBy.md +20 -0
- data/docs/MetricName.md +15 -0
- data/docs/MetricQuery.md +26 -0
- data/docs/MetricQueryFilterEntry.md +20 -0
- data/docs/MetricQueryResponse.md +22 -0
- data/docs/MetricsApi.md +79 -0
- data/docs/PaginationOptions.md +20 -0
- data/docs/PlanOverride.md +24 -0
- data/docs/PricePlan.md +26 -0
- data/docs/PricePlanListData.md +32 -0
- data/docs/PricePlanPaginatedResponse.md +22 -0
- data/docs/PricePlansApi.md +363 -0
- data/docs/PricingCycle.md +24 -0
- data/docs/PricingCycleStartOffset.md +20 -0
- data/docs/PricingSchedule.md +22 -0
- data/docs/RateCard.md +22 -0
- data/docs/RateCardBundle.md +22 -0
- data/docs/RateCardUsageValue.md +24 -0
- data/docs/RemoveAccountAliasesRequest.md +18 -0
- data/docs/SignupRequest.md +22 -0
- data/docs/SignupResponse.md +20 -0
- data/docs/StatusResponse.md +24 -0
- data/docs/StatusResponseHeaders.md +18 -0
- data/docs/UpdateAccountRequest.md +18 -0
- data/docs/UpdateCustomerRequest.md +22 -0
- data/docs/UpdateEventSchemaRequest.md +22 -0
- data/docs/UpdatePricePlanRequest.md +22 -0
- data/docs/UpdateUsageMeterRequest.md +24 -0
- data/docs/UsageMeter.md +34 -0
- data/docs/UsageMeterPaginatedResponse.md +22 -0
- data/docs/UsageMetersApi.md +521 -0
- data/docs/UsageStrategy.md +22 -0
- data/docs/UserDetails.md +26 -0
- data/git_push.sh +57 -0
- data/lib/togai_client/api/accounts_api.rb +679 -0
- data/lib/togai_client/api/customers_api.rb +365 -0
- data/lib/togai_client/api/event_ingestion_api.rb +158 -0
- data/lib/togai_client/api/event_management_api.rb +164 -0
- data/lib/togai_client/api/event_schemas_api.rb +579 -0
- data/lib/togai_client/api/metrics_api.rb +86 -0
- data/lib/togai_client/api/price_plans_api.rb +365 -0
- data/lib/togai_client/api/usage_meters_api.rb +572 -0
- data/lib/togai_client/api_client.rb +392 -0
- data/lib/togai_client/api_error.rb +57 -0
- data/lib/togai_client/configuration.rb +287 -0
- data/lib/togai_client/models/account.rb +373 -0
- data/lib/togai_client/models/account_aliases.rb +277 -0
- data/lib/togai_client/models/account_paginated_response.rb +239 -0
- data/lib/togai_client/models/add_account_aliases_request.rb +247 -0
- data/lib/togai_client/models/associate_price_plan_request.rb +274 -0
- data/lib/togai_client/models/associate_price_plan_response.rb +275 -0
- data/lib/togai_client/models/base_success_response.rb +224 -0
- data/lib/togai_client/models/bundle_strategy.rb +325 -0
- data/lib/togai_client/models/bundle_strategy_usage_meters_value.rb +224 -0
- data/lib/togai_client/models/computation.rb +294 -0
- data/lib/togai_client/models/create_account_request.rb +324 -0
- data/lib/togai_client/models/create_customer_request.rb +374 -0
- data/lib/togai_client/models/create_customer_response.rb +373 -0
- data/lib/togai_client/models/create_event_schema_request.rb +351 -0
- data/lib/togai_client/models/create_price_plan_request.rb +298 -0
- data/lib/togai_client/models/create_usage_meter_request.rb +368 -0
- data/lib/togai_client/models/customer.rb +442 -0
- data/lib/togai_client/models/customer_paginated_response.rb +239 -0
- data/lib/togai_client/models/dimensions_schema.rb +256 -0
- data/lib/togai_client/models/error_response.rb +244 -0
- data/lib/togai_client/models/event.rb +379 -0
- data/lib/togai_client/models/event_attribute.rb +304 -0
- data/lib/togai_client/models/event_attribute_schema.rb +281 -0
- data/lib/togai_client/models/event_pipeline_info.rb +260 -0
- data/lib/togai_client/models/event_pipeline_info_account.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_customer.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_event_schema.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_price_plans_inner.rb +283 -0
- data/lib/togai_client/models/event_pipeline_info_usage_meters_inner.rb +295 -0
- data/lib/togai_client/models/event_schema.rb +438 -0
- data/lib/togai_client/models/event_schema_list_data.rb +456 -0
- data/lib/togai_client/models/event_schema_list_data_all_of.rb +221 -0
- data/lib/togai_client/models/event_schema_list_paginated_response.rb +239 -0
- data/lib/togai_client/models/event_schema_versions_response.rb +227 -0
- data/lib/togai_client/models/event_with_status.rb +239 -0
- data/lib/togai_client/models/event_with_status_and_event_pipeline_info.rb +255 -0
- data/lib/togai_client/models/event_with_status_and_event_pipeline_info_all_of.rb +219 -0
- data/lib/togai_client/models/get_event_response.rb +222 -0
- data/lib/togai_client/models/get_events_response.rb +279 -0
- data/lib/togai_client/models/get_metrics_request.rb +265 -0
- data/lib/togai_client/models/get_metrics_response.rb +227 -0
- data/lib/togai_client/models/ingest_batch_event_request.rb +255 -0
- data/lib/togai_client/models/ingest_batch_event_response.rb +245 -0
- data/lib/togai_client/models/ingest_error.rb +229 -0
- data/lib/togai_client/models/ingest_event_request.rb +220 -0
- data/lib/togai_client/models/ingest_event_response.rb +244 -0
- data/lib/togai_client/models/ingestion_status.rb +284 -0
- data/lib/togai_client/models/metric_data_points.rb +289 -0
- data/lib/togai_client/models/metric_data_points_grouped_by.rb +238 -0
- data/lib/togai_client/models/metric_name.rb +38 -0
- data/lib/togai_client/models/metric_query.rb +331 -0
- data/lib/togai_client/models/metric_query_filter_entry.rb +241 -0
- data/lib/togai_client/models/metric_query_response.rb +255 -0
- data/lib/togai_client/models/pagination_options.rb +262 -0
- data/lib/togai_client/models/plan_override.rb +262 -0
- data/lib/togai_client/models/price_plan.rb +349 -0
- data/lib/togai_client/models/price_plan_list_data.rb +393 -0
- data/lib/togai_client/models/price_plan_paginated_response.rb +239 -0
- data/lib/togai_client/models/pricing_cycle.rb +313 -0
- data/lib/togai_client/models/pricing_cycle_start_offset.rb +241 -0
- data/lib/togai_client/models/pricing_schedule.rb +248 -0
- data/lib/togai_client/models/rate_card.rb +279 -0
- data/lib/togai_client/models/rate_card_bundle.rb +328 -0
- data/lib/togai_client/models/rate_card_usage_value.rb +343 -0
- data/lib/togai_client/models/remove_account_aliases_request.rb +247 -0
- data/lib/togai_client/models/signup_request.rb +293 -0
- data/lib/togai_client/models/signup_response.rb +260 -0
- data/lib/togai_client/models/status_response.rb +246 -0
- data/lib/togai_client/models/status_response_headers.rb +219 -0
- data/lib/togai_client/models/update_account_request.rb +245 -0
- data/lib/togai_client/models/update_customer_request.rb +304 -0
- data/lib/togai_client/models/update_event_schema_request.rb +306 -0
- data/lib/togai_client/models/update_price_plan_request.rb +254 -0
- data/lib/togai_client/models/update_usage_meter_request.rb +323 -0
- data/lib/togai_client/models/usage_meter.rb +440 -0
- data/lib/togai_client/models/usage_meter_paginated_response.rb +239 -0
- data/lib/togai_client/models/usage_strategy.rb +281 -0
- data/lib/togai_client/models/user_details.rb +380 -0
- data/lib/togai_client/version.rb +15 -0
- data/lib/togai_client.rb +125 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- data/togai_client.gemspec +38 -0
- metadata +271 -0
@@ -0,0 +1,581 @@
|
|
1
|
+
# TogaiClient::EventSchemasApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://sandbox-api.togai.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**activate_event_schema**](EventSchemasApi.md#activate_event_schema) | **POST** /event_schema/{event_schema_name}/activate | Activate an event schema |
|
8
|
+
| [**create_event_schema**](EventSchemasApi.md#create_event_schema) | **POST** /event_schema | Create an event schema |
|
9
|
+
| [**deactivate_event_schema**](EventSchemasApi.md#deactivate_event_schema) | **POST** /event_schema/{event_schema_name}/deactivate | Deactivate an event schema |
|
10
|
+
| [**delete_event_schema**](EventSchemasApi.md#delete_event_schema) | **DELETE** /event_schema/{event_schema_name} | Delete an event schema |
|
11
|
+
| [**get_event_schema**](EventSchemasApi.md#get_event_schema) | **GET** /event_schema/{event_schema_name} | Get an event schema |
|
12
|
+
| [**list_event_schema_versions**](EventSchemasApi.md#list_event_schema_versions) | **GET** /event_schema/{event_schema_name}/versions | List all event schema versions |
|
13
|
+
| [**list_event_schemas**](EventSchemasApi.md#list_event_schemas) | **GET** /event_schema | List event schemas |
|
14
|
+
| [**update_event_schema**](EventSchemasApi.md#update_event_schema) | **PATCH** /event_schema/{event_schema_name} | Update an event schema |
|
15
|
+
|
16
|
+
|
17
|
+
## activate_event_schema
|
18
|
+
|
19
|
+
> <EventSchema> activate_event_schema(event_schema_name)
|
20
|
+
|
21
|
+
Activate an event schema
|
22
|
+
|
23
|
+
Activate an event schema
|
24
|
+
|
25
|
+
### Examples
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'time'
|
29
|
+
require 'togai_client'
|
30
|
+
# setup authorization
|
31
|
+
TogaiClient.configure do |config|
|
32
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
33
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
37
|
+
event_schema_name = 'event_schema_name_example' # String |
|
38
|
+
|
39
|
+
begin
|
40
|
+
# Activate an event schema
|
41
|
+
result = api_instance.activate_event_schema(event_schema_name)
|
42
|
+
p result
|
43
|
+
rescue TogaiClient::ApiError => e
|
44
|
+
puts "Error when calling EventSchemasApi->activate_event_schema: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
#### Using the activate_event_schema_with_http_info variant
|
49
|
+
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
51
|
+
|
52
|
+
> <Array(<EventSchema>, Integer, Hash)> activate_event_schema_with_http_info(event_schema_name)
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
begin
|
56
|
+
# Activate an event schema
|
57
|
+
data, status_code, headers = api_instance.activate_event_schema_with_http_info(event_schema_name)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => <EventSchema>
|
61
|
+
rescue TogaiClient::ApiError => e
|
62
|
+
puts "Error when calling EventSchemasApi->activate_event_schema_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **event_schema_name** | **String** | | |
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
[**EventSchema**](EventSchema.md)
|
75
|
+
|
76
|
+
### Authorization
|
77
|
+
|
78
|
+
[bearerAuth](../README.md#bearerAuth)
|
79
|
+
|
80
|
+
### HTTP request headers
|
81
|
+
|
82
|
+
- **Content-Type**: Not defined
|
83
|
+
- **Accept**: application/json
|
84
|
+
|
85
|
+
|
86
|
+
## create_event_schema
|
87
|
+
|
88
|
+
> <EventSchema> create_event_schema(create_event_schema_request)
|
89
|
+
|
90
|
+
Create an event schema
|
91
|
+
|
92
|
+
Create an event schema
|
93
|
+
|
94
|
+
### Examples
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
require 'time'
|
98
|
+
require 'togai_client'
|
99
|
+
# setup authorization
|
100
|
+
TogaiClient.configure do |config|
|
101
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
102
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
103
|
+
end
|
104
|
+
|
105
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
106
|
+
create_event_schema_request = TogaiClient::CreateEventSchemaRequest.new({name: 'name_example', attributes: [TogaiClient::EventAttributeSchema.new({name: 'distance'})], dimensions: [TogaiClient::DimensionsSchema.new({name: 'city'})]}) # CreateEventSchemaRequest | Payload to create event schema
|
107
|
+
|
108
|
+
begin
|
109
|
+
# Create an event schema
|
110
|
+
result = api_instance.create_event_schema(create_event_schema_request)
|
111
|
+
p result
|
112
|
+
rescue TogaiClient::ApiError => e
|
113
|
+
puts "Error when calling EventSchemasApi->create_event_schema: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
#### Using the create_event_schema_with_http_info variant
|
118
|
+
|
119
|
+
This returns an Array which contains the response data, status code and headers.
|
120
|
+
|
121
|
+
> <Array(<EventSchema>, Integer, Hash)> create_event_schema_with_http_info(create_event_schema_request)
|
122
|
+
|
123
|
+
```ruby
|
124
|
+
begin
|
125
|
+
# Create an event schema
|
126
|
+
data, status_code, headers = api_instance.create_event_schema_with_http_info(create_event_schema_request)
|
127
|
+
p status_code # => 2xx
|
128
|
+
p headers # => { ... }
|
129
|
+
p data # => <EventSchema>
|
130
|
+
rescue TogaiClient::ApiError => e
|
131
|
+
puts "Error when calling EventSchemasApi->create_event_schema_with_http_info: #{e}"
|
132
|
+
end
|
133
|
+
```
|
134
|
+
|
135
|
+
### Parameters
|
136
|
+
|
137
|
+
| Name | Type | Description | Notes |
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
139
|
+
| **create_event_schema_request** | [**CreateEventSchemaRequest**](CreateEventSchemaRequest.md) | Payload to create event schema | |
|
140
|
+
|
141
|
+
### Return type
|
142
|
+
|
143
|
+
[**EventSchema**](EventSchema.md)
|
144
|
+
|
145
|
+
### Authorization
|
146
|
+
|
147
|
+
[bearerAuth](../README.md#bearerAuth)
|
148
|
+
|
149
|
+
### HTTP request headers
|
150
|
+
|
151
|
+
- **Content-Type**: application/json
|
152
|
+
- **Accept**: application/json
|
153
|
+
|
154
|
+
|
155
|
+
## deactivate_event_schema
|
156
|
+
|
157
|
+
> <EventSchema> deactivate_event_schema(event_schema_name)
|
158
|
+
|
159
|
+
Deactivate an event schema
|
160
|
+
|
161
|
+
Deactivate an event schema
|
162
|
+
|
163
|
+
### Examples
|
164
|
+
|
165
|
+
```ruby
|
166
|
+
require 'time'
|
167
|
+
require 'togai_client'
|
168
|
+
# setup authorization
|
169
|
+
TogaiClient.configure do |config|
|
170
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
171
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
172
|
+
end
|
173
|
+
|
174
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
175
|
+
event_schema_name = 'event_schema_name_example' # String |
|
176
|
+
|
177
|
+
begin
|
178
|
+
# Deactivate an event schema
|
179
|
+
result = api_instance.deactivate_event_schema(event_schema_name)
|
180
|
+
p result
|
181
|
+
rescue TogaiClient::ApiError => e
|
182
|
+
puts "Error when calling EventSchemasApi->deactivate_event_schema: #{e}"
|
183
|
+
end
|
184
|
+
```
|
185
|
+
|
186
|
+
#### Using the deactivate_event_schema_with_http_info variant
|
187
|
+
|
188
|
+
This returns an Array which contains the response data, status code and headers.
|
189
|
+
|
190
|
+
> <Array(<EventSchema>, Integer, Hash)> deactivate_event_schema_with_http_info(event_schema_name)
|
191
|
+
|
192
|
+
```ruby
|
193
|
+
begin
|
194
|
+
# Deactivate an event schema
|
195
|
+
data, status_code, headers = api_instance.deactivate_event_schema_with_http_info(event_schema_name)
|
196
|
+
p status_code # => 2xx
|
197
|
+
p headers # => { ... }
|
198
|
+
p data # => <EventSchema>
|
199
|
+
rescue TogaiClient::ApiError => e
|
200
|
+
puts "Error when calling EventSchemasApi->deactivate_event_schema_with_http_info: #{e}"
|
201
|
+
end
|
202
|
+
```
|
203
|
+
|
204
|
+
### Parameters
|
205
|
+
|
206
|
+
| Name | Type | Description | Notes |
|
207
|
+
| ---- | ---- | ----------- | ----- |
|
208
|
+
| **event_schema_name** | **String** | | |
|
209
|
+
|
210
|
+
### Return type
|
211
|
+
|
212
|
+
[**EventSchema**](EventSchema.md)
|
213
|
+
|
214
|
+
### Authorization
|
215
|
+
|
216
|
+
[bearerAuth](../README.md#bearerAuth)
|
217
|
+
|
218
|
+
### HTTP request headers
|
219
|
+
|
220
|
+
- **Content-Type**: Not defined
|
221
|
+
- **Accept**: application/json
|
222
|
+
|
223
|
+
|
224
|
+
## delete_event_schema
|
225
|
+
|
226
|
+
> <BaseSuccessResponse> delete_event_schema(event_schema_name)
|
227
|
+
|
228
|
+
Delete an event schema
|
229
|
+
|
230
|
+
Delete an event schema
|
231
|
+
|
232
|
+
### Examples
|
233
|
+
|
234
|
+
```ruby
|
235
|
+
require 'time'
|
236
|
+
require 'togai_client'
|
237
|
+
# setup authorization
|
238
|
+
TogaiClient.configure do |config|
|
239
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
240
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
241
|
+
end
|
242
|
+
|
243
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
244
|
+
event_schema_name = 'event_schema_name_example' # String |
|
245
|
+
|
246
|
+
begin
|
247
|
+
# Delete an event schema
|
248
|
+
result = api_instance.delete_event_schema(event_schema_name)
|
249
|
+
p result
|
250
|
+
rescue TogaiClient::ApiError => e
|
251
|
+
puts "Error when calling EventSchemasApi->delete_event_schema: #{e}"
|
252
|
+
end
|
253
|
+
```
|
254
|
+
|
255
|
+
#### Using the delete_event_schema_with_http_info variant
|
256
|
+
|
257
|
+
This returns an Array which contains the response data, status code and headers.
|
258
|
+
|
259
|
+
> <Array(<BaseSuccessResponse>, Integer, Hash)> delete_event_schema_with_http_info(event_schema_name)
|
260
|
+
|
261
|
+
```ruby
|
262
|
+
begin
|
263
|
+
# Delete an event schema
|
264
|
+
data, status_code, headers = api_instance.delete_event_schema_with_http_info(event_schema_name)
|
265
|
+
p status_code # => 2xx
|
266
|
+
p headers # => { ... }
|
267
|
+
p data # => <BaseSuccessResponse>
|
268
|
+
rescue TogaiClient::ApiError => e
|
269
|
+
puts "Error when calling EventSchemasApi->delete_event_schema_with_http_info: #{e}"
|
270
|
+
end
|
271
|
+
```
|
272
|
+
|
273
|
+
### Parameters
|
274
|
+
|
275
|
+
| Name | Type | Description | Notes |
|
276
|
+
| ---- | ---- | ----------- | ----- |
|
277
|
+
| **event_schema_name** | **String** | | |
|
278
|
+
|
279
|
+
### Return type
|
280
|
+
|
281
|
+
[**BaseSuccessResponse**](BaseSuccessResponse.md)
|
282
|
+
|
283
|
+
### Authorization
|
284
|
+
|
285
|
+
[bearerAuth](../README.md#bearerAuth)
|
286
|
+
|
287
|
+
### HTTP request headers
|
288
|
+
|
289
|
+
- **Content-Type**: Not defined
|
290
|
+
- **Accept**: application/json
|
291
|
+
|
292
|
+
|
293
|
+
## get_event_schema
|
294
|
+
|
295
|
+
> <EventSchema> get_event_schema(event_schema_name, opts)
|
296
|
+
|
297
|
+
Get an event schema
|
298
|
+
|
299
|
+
Get an event schema
|
300
|
+
|
301
|
+
### Examples
|
302
|
+
|
303
|
+
```ruby
|
304
|
+
require 'time'
|
305
|
+
require 'togai_client'
|
306
|
+
# setup authorization
|
307
|
+
TogaiClient.configure do |config|
|
308
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
309
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
310
|
+
end
|
311
|
+
|
312
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
313
|
+
event_schema_name = 'event_schema_name_example' # String |
|
314
|
+
opts = {
|
315
|
+
version: 56 # Integer | Optional version to get a specific version. Gets latest version if it is not provided.
|
316
|
+
}
|
317
|
+
|
318
|
+
begin
|
319
|
+
# Get an event schema
|
320
|
+
result = api_instance.get_event_schema(event_schema_name, opts)
|
321
|
+
p result
|
322
|
+
rescue TogaiClient::ApiError => e
|
323
|
+
puts "Error when calling EventSchemasApi->get_event_schema: #{e}"
|
324
|
+
end
|
325
|
+
```
|
326
|
+
|
327
|
+
#### Using the get_event_schema_with_http_info variant
|
328
|
+
|
329
|
+
This returns an Array which contains the response data, status code and headers.
|
330
|
+
|
331
|
+
> <Array(<EventSchema>, Integer, Hash)> get_event_schema_with_http_info(event_schema_name, opts)
|
332
|
+
|
333
|
+
```ruby
|
334
|
+
begin
|
335
|
+
# Get an event schema
|
336
|
+
data, status_code, headers = api_instance.get_event_schema_with_http_info(event_schema_name, opts)
|
337
|
+
p status_code # => 2xx
|
338
|
+
p headers # => { ... }
|
339
|
+
p data # => <EventSchema>
|
340
|
+
rescue TogaiClient::ApiError => e
|
341
|
+
puts "Error when calling EventSchemasApi->get_event_schema_with_http_info: #{e}"
|
342
|
+
end
|
343
|
+
```
|
344
|
+
|
345
|
+
### Parameters
|
346
|
+
|
347
|
+
| Name | Type | Description | Notes |
|
348
|
+
| ---- | ---- | ----------- | ----- |
|
349
|
+
| **event_schema_name** | **String** | | |
|
350
|
+
| **version** | **Integer** | Optional version to get a specific version. Gets latest version if it is not provided. | [optional] |
|
351
|
+
|
352
|
+
### Return type
|
353
|
+
|
354
|
+
[**EventSchema**](EventSchema.md)
|
355
|
+
|
356
|
+
### Authorization
|
357
|
+
|
358
|
+
[bearerAuth](../README.md#bearerAuth)
|
359
|
+
|
360
|
+
### HTTP request headers
|
361
|
+
|
362
|
+
- **Content-Type**: Not defined
|
363
|
+
- **Accept**: application/json
|
364
|
+
|
365
|
+
|
366
|
+
## list_event_schema_versions
|
367
|
+
|
368
|
+
> <EventSchemaVersionsResponse> list_event_schema_versions(event_schema_name)
|
369
|
+
|
370
|
+
List all event schema versions
|
371
|
+
|
372
|
+
List all event schema versions
|
373
|
+
|
374
|
+
### Examples
|
375
|
+
|
376
|
+
```ruby
|
377
|
+
require 'time'
|
378
|
+
require 'togai_client'
|
379
|
+
# setup authorization
|
380
|
+
TogaiClient.configure do |config|
|
381
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
382
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
383
|
+
end
|
384
|
+
|
385
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
386
|
+
event_schema_name = 'event_schema_name_example' # String |
|
387
|
+
|
388
|
+
begin
|
389
|
+
# List all event schema versions
|
390
|
+
result = api_instance.list_event_schema_versions(event_schema_name)
|
391
|
+
p result
|
392
|
+
rescue TogaiClient::ApiError => e
|
393
|
+
puts "Error when calling EventSchemasApi->list_event_schema_versions: #{e}"
|
394
|
+
end
|
395
|
+
```
|
396
|
+
|
397
|
+
#### Using the list_event_schema_versions_with_http_info variant
|
398
|
+
|
399
|
+
This returns an Array which contains the response data, status code and headers.
|
400
|
+
|
401
|
+
> <Array(<EventSchemaVersionsResponse>, Integer, Hash)> list_event_schema_versions_with_http_info(event_schema_name)
|
402
|
+
|
403
|
+
```ruby
|
404
|
+
begin
|
405
|
+
# List all event schema versions
|
406
|
+
data, status_code, headers = api_instance.list_event_schema_versions_with_http_info(event_schema_name)
|
407
|
+
p status_code # => 2xx
|
408
|
+
p headers # => { ... }
|
409
|
+
p data # => <EventSchemaVersionsResponse>
|
410
|
+
rescue TogaiClient::ApiError => e
|
411
|
+
puts "Error when calling EventSchemasApi->list_event_schema_versions_with_http_info: #{e}"
|
412
|
+
end
|
413
|
+
```
|
414
|
+
|
415
|
+
### Parameters
|
416
|
+
|
417
|
+
| Name | Type | Description | Notes |
|
418
|
+
| ---- | ---- | ----------- | ----- |
|
419
|
+
| **event_schema_name** | **String** | | |
|
420
|
+
|
421
|
+
### Return type
|
422
|
+
|
423
|
+
[**EventSchemaVersionsResponse**](EventSchemaVersionsResponse.md)
|
424
|
+
|
425
|
+
### Authorization
|
426
|
+
|
427
|
+
[bearerAuth](../README.md#bearerAuth)
|
428
|
+
|
429
|
+
### HTTP request headers
|
430
|
+
|
431
|
+
- **Content-Type**: Not defined
|
432
|
+
- **Accept**: application/json
|
433
|
+
|
434
|
+
|
435
|
+
## list_event_schemas
|
436
|
+
|
437
|
+
> <EventSchemaListPaginatedResponse> list_event_schemas(opts)
|
438
|
+
|
439
|
+
List event schemas
|
440
|
+
|
441
|
+
List event schemas with pagination and sort
|
442
|
+
|
443
|
+
### Examples
|
444
|
+
|
445
|
+
```ruby
|
446
|
+
require 'time'
|
447
|
+
require 'togai_client'
|
448
|
+
# setup authorization
|
449
|
+
TogaiClient.configure do |config|
|
450
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
451
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
452
|
+
end
|
453
|
+
|
454
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
455
|
+
opts = {
|
456
|
+
statuses: 'statuses_example', # String | Filter by provided statuses
|
457
|
+
next_token: 'eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEyMywgInNvcnRPcmRlciI6ICJhc2MifQ==', # String |
|
458
|
+
page_size: '10', # String |
|
459
|
+
sort_order: 'ASC' # String |
|
460
|
+
}
|
461
|
+
|
462
|
+
begin
|
463
|
+
# List event schemas
|
464
|
+
result = api_instance.list_event_schemas(opts)
|
465
|
+
p result
|
466
|
+
rescue TogaiClient::ApiError => e
|
467
|
+
puts "Error when calling EventSchemasApi->list_event_schemas: #{e}"
|
468
|
+
end
|
469
|
+
```
|
470
|
+
|
471
|
+
#### Using the list_event_schemas_with_http_info variant
|
472
|
+
|
473
|
+
This returns an Array which contains the response data, status code and headers.
|
474
|
+
|
475
|
+
> <Array(<EventSchemaListPaginatedResponse>, Integer, Hash)> list_event_schemas_with_http_info(opts)
|
476
|
+
|
477
|
+
```ruby
|
478
|
+
begin
|
479
|
+
# List event schemas
|
480
|
+
data, status_code, headers = api_instance.list_event_schemas_with_http_info(opts)
|
481
|
+
p status_code # => 2xx
|
482
|
+
p headers # => { ... }
|
483
|
+
p data # => <EventSchemaListPaginatedResponse>
|
484
|
+
rescue TogaiClient::ApiError => e
|
485
|
+
puts "Error when calling EventSchemasApi->list_event_schemas_with_http_info: #{e}"
|
486
|
+
end
|
487
|
+
```
|
488
|
+
|
489
|
+
### Parameters
|
490
|
+
|
491
|
+
| Name | Type | Description | Notes |
|
492
|
+
| ---- | ---- | ----------- | ----- |
|
493
|
+
| **statuses** | **String** | Filter by provided statuses | [optional] |
|
494
|
+
| **next_token** | **String** | | [optional] |
|
495
|
+
| **page_size** | **String** | | [optional] |
|
496
|
+
| **sort_order** | **String** | | [optional] |
|
497
|
+
|
498
|
+
### Return type
|
499
|
+
|
500
|
+
[**EventSchemaListPaginatedResponse**](EventSchemaListPaginatedResponse.md)
|
501
|
+
|
502
|
+
### Authorization
|
503
|
+
|
504
|
+
[bearerAuth](../README.md#bearerAuth)
|
505
|
+
|
506
|
+
### HTTP request headers
|
507
|
+
|
508
|
+
- **Content-Type**: Not defined
|
509
|
+
- **Accept**: application/json
|
510
|
+
|
511
|
+
|
512
|
+
## update_event_schema
|
513
|
+
|
514
|
+
> <EventSchema> update_event_schema(event_schema_name, update_event_schema_request)
|
515
|
+
|
516
|
+
Update an event schema
|
517
|
+
|
518
|
+
Update an event schema
|
519
|
+
|
520
|
+
### Examples
|
521
|
+
|
522
|
+
```ruby
|
523
|
+
require 'time'
|
524
|
+
require 'togai_client'
|
525
|
+
# setup authorization
|
526
|
+
TogaiClient.configure do |config|
|
527
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
528
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
529
|
+
end
|
530
|
+
|
531
|
+
api_instance = TogaiClient::EventSchemasApi.new
|
532
|
+
event_schema_name = 'event_schema_name_example' # String |
|
533
|
+
update_event_schema_request = TogaiClient::UpdateEventSchemaRequest.new({attributes: [TogaiClient::EventAttributeSchema.new({name: 'distance'})], dimensions: [TogaiClient::DimensionsSchema.new({name: 'city'})]}) # UpdateEventSchemaRequest | Payload to update event schema
|
534
|
+
|
535
|
+
begin
|
536
|
+
# Update an event schema
|
537
|
+
result = api_instance.update_event_schema(event_schema_name, update_event_schema_request)
|
538
|
+
p result
|
539
|
+
rescue TogaiClient::ApiError => e
|
540
|
+
puts "Error when calling EventSchemasApi->update_event_schema: #{e}"
|
541
|
+
end
|
542
|
+
```
|
543
|
+
|
544
|
+
#### Using the update_event_schema_with_http_info variant
|
545
|
+
|
546
|
+
This returns an Array which contains the response data, status code and headers.
|
547
|
+
|
548
|
+
> <Array(<EventSchema>, Integer, Hash)> update_event_schema_with_http_info(event_schema_name, update_event_schema_request)
|
549
|
+
|
550
|
+
```ruby
|
551
|
+
begin
|
552
|
+
# Update an event schema
|
553
|
+
data, status_code, headers = api_instance.update_event_schema_with_http_info(event_schema_name, update_event_schema_request)
|
554
|
+
p status_code # => 2xx
|
555
|
+
p headers # => { ... }
|
556
|
+
p data # => <EventSchema>
|
557
|
+
rescue TogaiClient::ApiError => e
|
558
|
+
puts "Error when calling EventSchemasApi->update_event_schema_with_http_info: #{e}"
|
559
|
+
end
|
560
|
+
```
|
561
|
+
|
562
|
+
### Parameters
|
563
|
+
|
564
|
+
| Name | Type | Description | Notes |
|
565
|
+
| ---- | ---- | ----------- | ----- |
|
566
|
+
| **event_schema_name** | **String** | | |
|
567
|
+
| **update_event_schema_request** | [**UpdateEventSchemaRequest**](UpdateEventSchemaRequest.md) | Payload to update event schema | |
|
568
|
+
|
569
|
+
### Return type
|
570
|
+
|
571
|
+
[**EventSchema**](EventSchema.md)
|
572
|
+
|
573
|
+
### Authorization
|
574
|
+
|
575
|
+
[bearerAuth](../README.md#bearerAuth)
|
576
|
+
|
577
|
+
### HTTP request headers
|
578
|
+
|
579
|
+
- **Content-Type**: application/json
|
580
|
+
- **Accept**: application/json
|
581
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TogaiClient::EventWithStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **event_payload** | [**Event**](Event.md) | | |
|
8
|
+
| **ingestion_status** | [**IngestionStatus**](IngestionStatus.md) | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'togai_client'
|
14
|
+
|
15
|
+
instance = TogaiClient::EventWithStatus.new(
|
16
|
+
event_payload: null,
|
17
|
+
ingestion_status: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TogaiClient::EventWithStatusAndEventPipelineInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **event_payload** | [**Event**](Event.md) | | |
|
8
|
+
| **ingestion_status** | [**IngestionStatus**](IngestionStatus.md) | | |
|
9
|
+
| **event_pipeline_info** | [**EventPipelineInfo**](EventPipelineInfo.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'togai_client'
|
15
|
+
|
16
|
+
instance = TogaiClient::EventWithStatusAndEventPipelineInfo.new(
|
17
|
+
event_payload: null,
|
18
|
+
ingestion_status: null,
|
19
|
+
event_pipeline_info: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TogaiClient::EventWithStatusAndEventPipelineInfoAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **event_pipeline_info** | [**EventPipelineInfo**](EventPipelineInfo.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'togai_client'
|
13
|
+
|
14
|
+
instance = TogaiClient::EventWithStatusAndEventPipelineInfoAllOf.new(
|
15
|
+
event_pipeline_info: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TogaiClient::GetEventResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **events** | [**Array<EventWithStatusAndEventPipelineInfo>**](EventWithStatusAndEventPipelineInfo.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'togai_client'
|
13
|
+
|
14
|
+
instance = TogaiClient::GetEventResponse.new(
|
15
|
+
events: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TogaiClient::GetEventsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **events** | [**Array<EventWithStatus>**](EventWithStatus.md) | | |
|
8
|
+
| **next_token** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'togai_client'
|
14
|
+
|
15
|
+
instance = TogaiClient::GetEventsResponse.new(
|
16
|
+
events: null,
|
17
|
+
next_token: eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEyMywgInNvcnRPcmRlciI6ICJhc2MifQ==
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TogaiClient::GetMetricsRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **start_time** | **Time** | | |
|
8
|
+
| **end_time** | **Time** | | |
|
9
|
+
| **metric_queries** | [**Array<MetricQuery>**](MetricQuery.md) | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'togai_client'
|
15
|
+
|
16
|
+
instance = TogaiClient::GetMetricsRequest.new(
|
17
|
+
start_time: null,
|
18
|
+
end_time: null,
|
19
|
+
metric_queries: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|