launchdarkly_api 2.0.10 → 2.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +153 -151
  3. data/docs/AuditLogApi.md +7 -7
  4. data/docs/{Action.md → CopyActions.md} +1 -1
  5. data/docs/CustomProperty.md +1 -1
  6. data/docs/CustomRole.md +1 -1
  7. data/docs/CustomRoleBody.md +1 -1
  8. data/docs/CustomRoles.md +1 -1
  9. data/docs/CustomRolesApi.md +7 -6
  10. data/docs/CustomerMetricsApi.md +511 -0
  11. data/docs/DataExportDestinationsApi.md +293 -0
  12. data/docs/Destination.md +14 -0
  13. data/docs/DestinationAmazonKinesis.md +10 -0
  14. data/docs/DestinationBody.md +11 -0
  15. data/docs/DestinationGooglePubSub.md +9 -0
  16. data/docs/DestinationMParticle.md +11 -0
  17. data/docs/{CustomRoleKeyOrId.md → DestinationSegment.md} +2 -1
  18. data/docs/Destinations.md +9 -0
  19. data/docs/Environment.md +2 -0
  20. data/docs/EnvironmentPost.md +5 -0
  21. data/docs/EnvironmentsApi.md +11 -10
  22. data/docs/EvaluationUsageError.md +9 -0
  23. data/docs/Events.md +8 -0
  24. data/docs/FeatureFlag.md +4 -1
  25. data/docs/FeatureFlagConfig.md +0 -1
  26. data/docs/FeatureFlagCopyBody.md +12 -0
  27. data/docs/FeatureFlagCopyObject.md +9 -0
  28. data/docs/FeatureFlagStatus.md +1 -1
  29. data/docs/FeatureFlagStatusAcrossEnvironments.md +10 -0
  30. data/docs/FeatureFlagStatusForQueriedEnvironment.md +10 -0
  31. data/docs/FeatureFlagsApi.md +136 -17
  32. data/docs/MAU.md +10 -0
  33. data/docs/{Actions.md → MAUMetadata.md} +1 -1
  34. data/docs/MAUbyCategory.md +10 -0
  35. data/docs/Member.md +2 -0
  36. data/docs/Members.md +1 -1
  37. data/docs/MembersBody.md +1 -1
  38. data/docs/Policy.md +4 -2
  39. data/docs/ProjectBody.md +2 -0
  40. data/docs/ProjectsApi.md +7 -6
  41. data/docs/Rollout.md +1 -0
  42. data/docs/Statement.md +4 -4
  43. data/docs/Stream.md +10 -0
  44. data/docs/StreamBySDK.md +10 -0
  45. data/docs/StreamBySDKLinks.md +9 -0
  46. data/docs/StreamBySDKLinksMetadata.md +10 -0
  47. data/docs/StreamLinks.md +10 -0
  48. data/docs/StreamSDKVersion.md +9 -0
  49. data/docs/StreamSDKVersionData.md +9 -0
  50. data/docs/StreamUsageError.md +9 -0
  51. data/docs/StreamUsageLinks.md +10 -0
  52. data/docs/StreamUsageMetadata.md +10 -0
  53. data/docs/StreamUsageSeries.md +9 -0
  54. data/docs/Streams.md +8 -0
  55. data/docs/TeamMembersApi.md +7 -6
  56. data/docs/Usage.md +9 -0
  57. data/docs/{CustomProperties.md → UsageError.md} +2 -1
  58. data/docs/UsageLinks.md +10 -0
  59. data/docs/UserSegmentsApi.md +18 -17
  60. data/docs/UserSettingsApi.md +11 -11
  61. data/docs/UsersApi.md +15 -15
  62. data/docs/Webhook.md +1 -0
  63. data/docs/WebhookBody.md +2 -0
  64. data/docs/WebhooksApi.md +7 -6
  65. data/launchdarkly_api.gemspec +5 -6
  66. data/lib/launchdarkly_api/api/audit_log_api.rb +13 -19
  67. data/lib/launchdarkly_api/api/custom_roles_api.rb +23 -37
  68. data/lib/launchdarkly_api/api/customer_metrics_api.rb +519 -0
  69. data/lib/launchdarkly_api/api/data_export_destinations_api.rb +330 -0
  70. data/lib/launchdarkly_api/api/environments_api.rb +20 -31
  71. data/lib/launchdarkly_api/api/feature_flags_api.rb +150 -43
  72. data/lib/launchdarkly_api/api/projects_api.rb +23 -37
  73. data/lib/launchdarkly_api/api/root_api.rb +6 -9
  74. data/lib/launchdarkly_api/api/team_members_api.rb +23 -37
  75. data/lib/launchdarkly_api/api/user_segments_api.rb +23 -37
  76. data/lib/launchdarkly_api/api/user_settings_api.rb +12 -21
  77. data/lib/launchdarkly_api/api/users_api.rb +17 -29
  78. data/lib/launchdarkly_api/api/webhooks_api.rb +23 -37
  79. data/lib/launchdarkly_api/api_client.rb +10 -10
  80. data/lib/launchdarkly_api/api_error.rb +2 -2
  81. data/lib/launchdarkly_api/configuration.rb +3 -3
  82. data/lib/launchdarkly_api/models/audit_log_entries.rb +7 -12
  83. data/lib/launchdarkly_api/models/audit_log_entry.rb +7 -12
  84. data/lib/launchdarkly_api/models/audit_log_entry_target.rb +7 -12
  85. data/lib/launchdarkly_api/models/clause.rb +7 -12
  86. data/lib/launchdarkly_api/models/copy_actions.rb +34 -0
  87. data/lib/launchdarkly_api/models/custom_property.rb +13 -14
  88. data/lib/launchdarkly_api/models/custom_property_values.rb +7 -11
  89. data/lib/launchdarkly_api/models/custom_role.rb +9 -13
  90. data/lib/launchdarkly_api/models/custom_role_body.rb +12 -16
  91. data/lib/launchdarkly_api/models/custom_roles.rb +11 -14
  92. data/lib/launchdarkly_api/models/destination.rb +276 -0
  93. data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +201 -0
  94. data/lib/launchdarkly_api/models/destination_body.rb +263 -0
  95. data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +192 -0
  96. data/lib/launchdarkly_api/models/destination_m_particle.rb +210 -0
  97. data/lib/launchdarkly_api/models/destination_segment.rb +183 -0
  98. data/lib/launchdarkly_api/models/destinations.rb +194 -0
  99. data/lib/launchdarkly_api/models/environment.rb +29 -14
  100. data/lib/launchdarkly_api/models/environment_post.rb +64 -17
  101. data/lib/launchdarkly_api/models/evaluation_usage_error.rb +192 -0
  102. data/lib/launchdarkly_api/models/{action.rb → events.rb} +17 -13
  103. data/lib/launchdarkly_api/models/fallthrough.rb +7 -12
  104. data/lib/launchdarkly_api/models/feature_flag.rb +46 -16
  105. data/lib/launchdarkly_api/models/feature_flag_body.rb +10 -15
  106. data/lib/launchdarkly_api/models/feature_flag_config.rb +8 -24
  107. data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +226 -0
  108. data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +199 -0
  109. data/lib/launchdarkly_api/models/feature_flag_status.rb +22 -26
  110. data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +203 -0
  111. data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +236 -0
  112. data/lib/launchdarkly_api/models/feature_flag_statuses.rb +7 -12
  113. data/lib/launchdarkly_api/models/feature_flags.rb +7 -12
  114. data/lib/launchdarkly_api/models/id.rb +7 -11
  115. data/lib/launchdarkly_api/models/link.rb +7 -12
  116. data/lib/launchdarkly_api/models/links.rb +7 -12
  117. data/lib/launchdarkly_api/models/ma_uby_category.rb +205 -0
  118. data/lib/launchdarkly_api/models/mau.rb +205 -0
  119. data/lib/launchdarkly_api/models/{actions.rb → mau_metadata.rb} +8 -13
  120. data/lib/launchdarkly_api/models/member.rb +26 -13
  121. data/lib/launchdarkly_api/models/members.rb +11 -14
  122. data/lib/launchdarkly_api/models/members_body.rb +9 -14
  123. data/lib/launchdarkly_api/models/patch_comment.rb +7 -12
  124. data/lib/launchdarkly_api/models/patch_operation.rb +10 -15
  125. data/lib/launchdarkly_api/models/policy.rb +40 -17
  126. data/lib/launchdarkly_api/models/prerequisite.rb +7 -12
  127. data/lib/launchdarkly_api/models/project.rb +7 -12
  128. data/lib/launchdarkly_api/models/project_body.rb +30 -15
  129. data/lib/launchdarkly_api/models/projects.rb +7 -12
  130. data/lib/launchdarkly_api/models/role.rb +7 -8
  131. data/lib/launchdarkly_api/models/rollout.rb +17 -13
  132. data/lib/launchdarkly_api/models/rule.rb +7 -12
  133. data/lib/launchdarkly_api/models/statement.rb +35 -31
  134. data/lib/launchdarkly_api/models/statements.rb +7 -12
  135. data/lib/launchdarkly_api/models/stream.rb +205 -0
  136. data/lib/launchdarkly_api/models/stream_by_sdk.rb +205 -0
  137. data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +192 -0
  138. data/lib/launchdarkly_api/models/{resources.rb → stream_by_sdk_links_metadata.rb} +34 -12
  139. data/lib/launchdarkly_api/models/stream_links.rb +204 -0
  140. data/lib/launchdarkly_api/models/stream_sdk_version.rb +194 -0
  141. data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +194 -0
  142. data/lib/launchdarkly_api/models/stream_usage_error.rb +192 -0
  143. data/lib/launchdarkly_api/models/stream_usage_links.rb +204 -0
  144. data/lib/launchdarkly_api/models/stream_usage_metadata.rb +203 -0
  145. data/lib/launchdarkly_api/models/stream_usage_series.rb +194 -0
  146. data/lib/launchdarkly_api/models/{custom_properties.rb → streams.rb} +17 -13
  147. data/lib/launchdarkly_api/models/target.rb +7 -12
  148. data/lib/launchdarkly_api/models/usage.rb +194 -0
  149. data/lib/launchdarkly_api/models/{custom_role_key_or_id.rb → usage_error.rb} +17 -13
  150. data/lib/launchdarkly_api/models/usage_links.rb +204 -0
  151. data/lib/launchdarkly_api/models/user.rb +7 -12
  152. data/lib/launchdarkly_api/models/user_flag_setting.rb +7 -12
  153. data/lib/launchdarkly_api/models/user_flag_settings.rb +7 -12
  154. data/lib/launchdarkly_api/models/user_record.rb +7 -12
  155. data/lib/launchdarkly_api/models/user_segment.rb +10 -15
  156. data/lib/launchdarkly_api/models/user_segment_body.rb +9 -14
  157. data/lib/launchdarkly_api/models/user_segment_rule.rb +7 -12
  158. data/lib/launchdarkly_api/models/user_segments.rb +7 -12
  159. data/lib/launchdarkly_api/models/user_settings_body.rb +7 -12
  160. data/lib/launchdarkly_api/models/users.rb +7 -12
  161. data/lib/launchdarkly_api/models/variation.rb +8 -13
  162. data/lib/launchdarkly_api/models/webhook.rb +17 -13
  163. data/lib/launchdarkly_api/models/webhook_body.rb +33 -17
  164. data/lib/launchdarkly_api/models/webhooks.rb +7 -12
  165. data/lib/launchdarkly_api/models/weighted_variation.rb +7 -12
  166. data/lib/launchdarkly_api/version.rb +3 -3
  167. data/lib/launchdarkly_api.rb +36 -8
  168. data/openapi.yml +1004 -115
  169. data/spec/api/audit_log_api_spec.rb +6 -8
  170. data/spec/api/custom_roles_api_spec.rb +8 -13
  171. data/spec/api/customer_metrics_api_spec.rb +141 -0
  172. data/spec/api/data_export_destinations_api_spec.rb +98 -0
  173. data/spec/api/environments_api_spec.rb +7 -11
  174. data/spec/api/feature_flags_api_spec.rb +36 -16
  175. data/spec/api/projects_api_spec.rb +8 -13
  176. data/spec/api/root_api_spec.rb +3 -4
  177. data/spec/api/team_members_api_spec.rb +8 -13
  178. data/spec/api/user_segments_api_spec.rb +8 -13
  179. data/spec/api/user_settings_api_spec.rb +5 -8
  180. data/spec/api/users_api_spec.rb +7 -11
  181. data/spec/api/webhooks_api_spec.rb +8 -13
  182. data/spec/api_client_spec.rb +36 -36
  183. data/spec/configuration_spec.rb +10 -10
  184. data/spec/models/audit_log_entries_spec.rb +4 -5
  185. data/spec/models/audit_log_entry_spec.rb +14 -15
  186. data/spec/models/audit_log_entry_target_spec.rb +5 -6
  187. data/spec/models/clause_spec.rb +6 -7
  188. data/spec/models/{action_spec.rb → copy_actions_spec.rb} +8 -9
  189. data/spec/models/custom_property_spec.rb +4 -5
  190. data/spec/models/custom_property_values_spec.rb +2 -3
  191. data/spec/models/custom_role_body_spec.rb +6 -7
  192. data/spec/models/custom_role_spec.rb +8 -9
  193. data/spec/models/custom_roles_spec.rb +4 -5
  194. data/spec/models/destination_amazon_kinesis_spec.rb +53 -0
  195. data/spec/models/destination_body_spec.rb +63 -0
  196. data/spec/models/destination_google_pub_sub_spec.rb +47 -0
  197. data/spec/models/destination_m_particle_spec.rb +59 -0
  198. data/spec/models/destination_segment_spec.rb +41 -0
  199. data/spec/models/destination_spec.rb +81 -0
  200. data/spec/models/destinations_spec.rb +47 -0
  201. data/spec/models/environment_post_spec.rb +36 -7
  202. data/spec/models/environment_spec.rb +25 -14
  203. data/spec/models/evaluation_usage_error_spec.rb +47 -0
  204. data/spec/models/events_spec.rb +41 -0
  205. data/spec/models/fallthrough_spec.rb +4 -5
  206. data/spec/models/feature_flag_body_spec.rb +9 -10
  207. data/spec/models/feature_flag_config_spec.rb +14 -21
  208. data/spec/models/feature_flag_copy_body_spec.rb +65 -0
  209. data/spec/models/feature_flag_copy_object_spec.rb +47 -0
  210. data/spec/models/feature_flag_spec.rb +35 -18
  211. data/spec/models/feature_flag_status_across_environments_spec.rb +53 -0
  212. data/spec/models/feature_flag_status_for_queried_environment_spec.rb +57 -0
  213. data/spec/models/feature_flag_status_spec.rb +14 -15
  214. data/spec/models/feature_flag_statuses_spec.rb +4 -5
  215. data/spec/models/feature_flags_spec.rb +4 -5
  216. data/spec/models/id_spec.rb +2 -3
  217. data/spec/models/link_spec.rb +4 -5
  218. data/spec/models/links_spec.rb +4 -5
  219. data/spec/models/ma_uby_category_spec.rb +53 -0
  220. data/spec/models/{actions_spec.rb → mau_metadata_spec.rb} +8 -9
  221. data/spec/models/mau_spec.rb +53 -0
  222. data/spec/models/member_spec.rb +21 -10
  223. data/spec/models/members_body_spec.rb +8 -9
  224. data/spec/models/members_spec.rb +4 -5
  225. data/spec/models/patch_comment_spec.rb +4 -5
  226. data/spec/models/patch_operation_spec.rb +5 -6
  227. data/spec/models/policy_spec.rb +17 -6
  228. data/spec/models/prerequisite_spec.rb +4 -5
  229. data/spec/models/project_body_spec.rb +17 -6
  230. data/spec/models/project_spec.rb +8 -9
  231. data/spec/models/projects_spec.rb +4 -5
  232. data/spec/models/role_spec.rb +2 -3
  233. data/spec/models/rollout_spec.rb +9 -4
  234. data/spec/models/rule_spec.rb +6 -7
  235. data/spec/models/statement_spec.rb +13 -14
  236. data/spec/models/statements_spec.rb +2 -3
  237. data/spec/models/stream_by_sdk_links_metadata_spec.rb +53 -0
  238. data/spec/models/stream_by_sdk_links_spec.rb +47 -0
  239. data/spec/models/stream_by_sdk_spec.rb +53 -0
  240. data/spec/models/stream_links_spec.rb +53 -0
  241. data/spec/models/stream_sdk_version_data_spec.rb +47 -0
  242. data/spec/models/stream_sdk_version_spec.rb +47 -0
  243. data/spec/models/stream_spec.rb +53 -0
  244. data/spec/models/stream_usage_error_spec.rb +47 -0
  245. data/spec/models/stream_usage_links_spec.rb +53 -0
  246. data/spec/models/stream_usage_metadata_spec.rb +53 -0
  247. data/spec/models/stream_usage_series_spec.rb +47 -0
  248. data/spec/models/streams_spec.rb +41 -0
  249. data/spec/models/target_spec.rb +4 -5
  250. data/spec/models/usage_error_spec.rb +41 -0
  251. data/spec/models/usage_links_spec.rb +53 -0
  252. data/spec/models/usage_spec.rb +47 -0
  253. data/spec/models/user_flag_setting_spec.rb +5 -6
  254. data/spec/models/user_flag_settings_spec.rb +4 -5
  255. data/spec/models/user_record_spec.rb +7 -8
  256. data/spec/models/user_segment_body_spec.rb +6 -7
  257. data/spec/models/user_segment_rule_spec.rb +5 -6
  258. data/spec/models/user_segment_spec.rb +12 -13
  259. data/spec/models/user_segments_spec.rb +4 -5
  260. data/spec/models/user_settings_body_spec.rb +3 -4
  261. data/spec/models/user_spec.rb +13 -14
  262. data/spec/models/users_spec.rb +5 -6
  263. data/spec/models/variation_spec.rb +5 -6
  264. data/spec/models/webhook_body_spec.rb +19 -8
  265. data/spec/models/webhook_spec.rb +15 -10
  266. data/spec/models/webhooks_spec.rb +4 -5
  267. data/spec/models/weighted_variation_spec.rb +4 -5
  268. data/spec/spec_helper.rb +2 -2
  269. metadata +187 -74
  270. data/docs/Resource.md +0 -7
  271. data/docs/Resources.md +0 -7
  272. data/lib/launchdarkly_api/models/resource.rb +0 -179
  273. data/spec/models/custom_properties_spec.rb +0 -36
  274. data/spec/models/custom_role_key_or_id_spec.rb +0 -36
  275. data/spec/models/resource_spec.rb +0 -36
  276. data/spec/models/resources_spec.rb +0 -36
@@ -0,0 +1,511 @@
1
+ # LaunchDarklyApi::CustomerMetricsApi
2
+
3
+ All URIs are relative to *https://app.launchdarkly.com/api/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_evaluations**](CustomerMetricsApi.md#get_evaluations) | **GET** /usage/evaluations/{envId}/{flagKey} | Get events usage by event id and the feature flag key.
8
+ [**get_event**](CustomerMetricsApi.md#get_event) | **GET** /usage/events/{type} | Get events usage by event type.
9
+ [**get_events**](CustomerMetricsApi.md#get_events) | **GET** /usage/events | Get events usage endpoints.
10
+ [**get_mau**](CustomerMetricsApi.md#get_mau) | **GET** /usage/mau | Get monthly active user data.
11
+ [**get_mau_by_category**](CustomerMetricsApi.md#get_mau_by_category) | **GET** /usage/mau/bycategory | Get monthly active user data by category.
12
+ [**get_stream**](CustomerMetricsApi.md#get_stream) | **GET** /usage/streams/{source} | Get a stream endpoint and return timeseries data.
13
+ [**get_stream_by_sdk**](CustomerMetricsApi.md#get_stream_by_sdk) | **GET** /usage/streams/{source}/bysdkversion | Get a stream timeseries data by source show sdk version metadata.
14
+ [**get_stream_sdk_version**](CustomerMetricsApi.md#get_stream_sdk_version) | **GET** /usage/streams/{source}/sdkversions | Get a stream timeseries data by source and show all sdk version associated.
15
+ [**get_streams**](CustomerMetricsApi.md#get_streams) | **GET** /usage/streams | Returns a list of all streams.
16
+ [**get_usage**](CustomerMetricsApi.md#get_usage) | **GET** /usage | Returns of the usage endpoints available.
17
+
18
+
19
+ # **get_evaluations**
20
+ > StreamSDKVersion get_evaluations(env_id, flag_key)
21
+
22
+ Get events usage by event id and the feature flag key.
23
+
24
+ ### Example
25
+ ```ruby
26
+ # load the gem
27
+ require 'launchdarkly_api'
28
+ # setup authorization
29
+ LaunchDarklyApi.configure do |config|
30
+ # Configure API key authorization: Token
31
+ config.api_key['Authorization'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ #config.api_key_prefix['Authorization'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
37
+
38
+ env_id = 'env_id_example' # String | The environment id for the flag evaluations in question.
39
+
40
+ flag_key = 'flag_key_example' # String | The key of the flag we want metrics for.
41
+
42
+
43
+ begin
44
+ #Get events usage by event id and the feature flag key.
45
+ result = api_instance.get_evaluations(env_id, flag_key)
46
+ p result
47
+ rescue LaunchDarklyApi::ApiError => e
48
+ puts "Exception when calling CustomerMetricsApi->get_evaluations: #{e}"
49
+ end
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+ Name | Type | Description | Notes
55
+ ------------- | ------------- | ------------- | -------------
56
+ **env_id** | **String**| The environment id for the flag evaluations in question. |
57
+ **flag_key** | **String**| The key of the flag we want metrics for. |
58
+
59
+ ### Return type
60
+
61
+ [**StreamSDKVersion**](StreamSDKVersion.md)
62
+
63
+ ### Authorization
64
+
65
+ [Token](../README.md#Token)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: application/json
70
+ - **Accept**: application/json
71
+
72
+
73
+
74
+ # **get_event**
75
+ > StreamSDKVersion get_event(type)
76
+
77
+ Get events usage by event type.
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'launchdarkly_api'
83
+ # setup authorization
84
+ LaunchDarklyApi.configure do |config|
85
+ # Configure API key authorization: Token
86
+ config.api_key['Authorization'] = 'YOUR API KEY'
87
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
88
+ #config.api_key_prefix['Authorization'] = 'Bearer'
89
+ end
90
+
91
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
92
+
93
+ type = 'type_example' # String | The type of event we would like to track.
94
+
95
+
96
+ begin
97
+ #Get events usage by event type.
98
+ result = api_instance.get_event(type)
99
+ p result
100
+ rescue LaunchDarklyApi::ApiError => e
101
+ puts "Exception when calling CustomerMetricsApi->get_event: #{e}"
102
+ end
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+ Name | Type | Description | Notes
108
+ ------------- | ------------- | ------------- | -------------
109
+ **type** | **String**| The type of event we would like to track. |
110
+
111
+ ### Return type
112
+
113
+ [**StreamSDKVersion**](StreamSDKVersion.md)
114
+
115
+ ### Authorization
116
+
117
+ [Token](../README.md#Token)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: application/json
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **get_events**
127
+ > Events get_events
128
+
129
+ Get events usage endpoints.
130
+
131
+ ### Example
132
+ ```ruby
133
+ # load the gem
134
+ require 'launchdarkly_api'
135
+ # setup authorization
136
+ LaunchDarklyApi.configure do |config|
137
+ # Configure API key authorization: Token
138
+ config.api_key['Authorization'] = 'YOUR API KEY'
139
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
140
+ #config.api_key_prefix['Authorization'] = 'Bearer'
141
+ end
142
+
143
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
144
+
145
+ begin
146
+ #Get events usage endpoints.
147
+ result = api_instance.get_events
148
+ p result
149
+ rescue LaunchDarklyApi::ApiError => e
150
+ puts "Exception when calling CustomerMetricsApi->get_events: #{e}"
151
+ end
152
+ ```
153
+
154
+ ### Parameters
155
+ This endpoint does not need any parameter.
156
+
157
+ ### Return type
158
+
159
+ [**Events**](Events.md)
160
+
161
+ ### Authorization
162
+
163
+ [Token](../README.md#Token)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: application/json
168
+ - **Accept**: application/json
169
+
170
+
171
+
172
+ # **get_mau**
173
+ > MAU get_mau
174
+
175
+ Get monthly active user data.
176
+
177
+ ### Example
178
+ ```ruby
179
+ # load the gem
180
+ require 'launchdarkly_api'
181
+ # setup authorization
182
+ LaunchDarklyApi.configure do |config|
183
+ # Configure API key authorization: Token
184
+ config.api_key['Authorization'] = 'YOUR API KEY'
185
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
186
+ #config.api_key_prefix['Authorization'] = 'Bearer'
187
+ end
188
+
189
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
190
+
191
+ begin
192
+ #Get monthly active user data.
193
+ result = api_instance.get_mau
194
+ p result
195
+ rescue LaunchDarklyApi::ApiError => e
196
+ puts "Exception when calling CustomerMetricsApi->get_mau: #{e}"
197
+ end
198
+ ```
199
+
200
+ ### Parameters
201
+ This endpoint does not need any parameter.
202
+
203
+ ### Return type
204
+
205
+ [**MAU**](MAU.md)
206
+
207
+ ### Authorization
208
+
209
+ [Token](../README.md#Token)
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: application/json
214
+ - **Accept**: application/json
215
+
216
+
217
+
218
+ # **get_mau_by_category**
219
+ > MAUbyCategory get_mau_by_category
220
+
221
+ Get monthly active user data by category.
222
+
223
+ ### Example
224
+ ```ruby
225
+ # load the gem
226
+ require 'launchdarkly_api'
227
+ # setup authorization
228
+ LaunchDarklyApi.configure do |config|
229
+ # Configure API key authorization: Token
230
+ config.api_key['Authorization'] = 'YOUR API KEY'
231
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
232
+ #config.api_key_prefix['Authorization'] = 'Bearer'
233
+ end
234
+
235
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
236
+
237
+ begin
238
+ #Get monthly active user data by category.
239
+ result = api_instance.get_mau_by_category
240
+ p result
241
+ rescue LaunchDarklyApi::ApiError => e
242
+ puts "Exception when calling CustomerMetricsApi->get_mau_by_category: #{e}"
243
+ end
244
+ ```
245
+
246
+ ### Parameters
247
+ This endpoint does not need any parameter.
248
+
249
+ ### Return type
250
+
251
+ [**MAUbyCategory**](MAUbyCategory.md)
252
+
253
+ ### Authorization
254
+
255
+ [Token](../README.md#Token)
256
+
257
+ ### HTTP request headers
258
+
259
+ - **Content-Type**: application/json
260
+ - **Accept**: application/json
261
+
262
+
263
+
264
+ # **get_stream**
265
+ > Stream get_stream(source)
266
+
267
+ Get a stream endpoint and return timeseries data.
268
+
269
+ ### Example
270
+ ```ruby
271
+ # load the gem
272
+ require 'launchdarkly_api'
273
+ # setup authorization
274
+ LaunchDarklyApi.configure do |config|
275
+ # Configure API key authorization: Token
276
+ config.api_key['Authorization'] = 'YOUR API KEY'
277
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
278
+ #config.api_key_prefix['Authorization'] = 'Bearer'
279
+ end
280
+
281
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
282
+
283
+ source = 'source_example' # String | The source of where the stream comes from.
284
+
285
+
286
+ begin
287
+ #Get a stream endpoint and return timeseries data.
288
+ result = api_instance.get_stream(source)
289
+ p result
290
+ rescue LaunchDarklyApi::ApiError => e
291
+ puts "Exception when calling CustomerMetricsApi->get_stream: #{e}"
292
+ end
293
+ ```
294
+
295
+ ### Parameters
296
+
297
+ Name | Type | Description | Notes
298
+ ------------- | ------------- | ------------- | -------------
299
+ **source** | **String**| The source of where the stream comes from. |
300
+
301
+ ### Return type
302
+
303
+ [**Stream**](Stream.md)
304
+
305
+ ### Authorization
306
+
307
+ [Token](../README.md#Token)
308
+
309
+ ### HTTP request headers
310
+
311
+ - **Content-Type**: application/json
312
+ - **Accept**: application/json
313
+
314
+
315
+
316
+ # **get_stream_by_sdk**
317
+ > StreamBySDK get_stream_by_sdk(source)
318
+
319
+ Get a stream timeseries data by source show sdk version metadata.
320
+
321
+ ### Example
322
+ ```ruby
323
+ # load the gem
324
+ require 'launchdarkly_api'
325
+ # setup authorization
326
+ LaunchDarklyApi.configure do |config|
327
+ # Configure API key authorization: Token
328
+ config.api_key['Authorization'] = 'YOUR API KEY'
329
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
330
+ #config.api_key_prefix['Authorization'] = 'Bearer'
331
+ end
332
+
333
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
334
+
335
+ source = 'source_example' # String | The source of where the stream comes from.
336
+
337
+
338
+ begin
339
+ #Get a stream timeseries data by source show sdk version metadata.
340
+ result = api_instance.get_stream_by_sdk(source)
341
+ p result
342
+ rescue LaunchDarklyApi::ApiError => e
343
+ puts "Exception when calling CustomerMetricsApi->get_stream_by_sdk: #{e}"
344
+ end
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ Name | Type | Description | Notes
350
+ ------------- | ------------- | ------------- | -------------
351
+ **source** | **String**| The source of where the stream comes from. |
352
+
353
+ ### Return type
354
+
355
+ [**StreamBySDK**](StreamBySDK.md)
356
+
357
+ ### Authorization
358
+
359
+ [Token](../README.md#Token)
360
+
361
+ ### HTTP request headers
362
+
363
+ - **Content-Type**: application/json
364
+ - **Accept**: application/json
365
+
366
+
367
+
368
+ # **get_stream_sdk_version**
369
+ > StreamSDKVersion get_stream_sdk_version(source)
370
+
371
+ Get a stream timeseries data by source and show all sdk version associated.
372
+
373
+ ### Example
374
+ ```ruby
375
+ # load the gem
376
+ require 'launchdarkly_api'
377
+ # setup authorization
378
+ LaunchDarklyApi.configure do |config|
379
+ # Configure API key authorization: Token
380
+ config.api_key['Authorization'] = 'YOUR API KEY'
381
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
382
+ #config.api_key_prefix['Authorization'] = 'Bearer'
383
+ end
384
+
385
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
386
+
387
+ source = 'source_example' # String | The source of where the stream comes from.
388
+
389
+
390
+ begin
391
+ #Get a stream timeseries data by source and show all sdk version associated.
392
+ result = api_instance.get_stream_sdk_version(source)
393
+ p result
394
+ rescue LaunchDarklyApi::ApiError => e
395
+ puts "Exception when calling CustomerMetricsApi->get_stream_sdk_version: #{e}"
396
+ end
397
+ ```
398
+
399
+ ### Parameters
400
+
401
+ Name | Type | Description | Notes
402
+ ------------- | ------------- | ------------- | -------------
403
+ **source** | **String**| The source of where the stream comes from. |
404
+
405
+ ### Return type
406
+
407
+ [**StreamSDKVersion**](StreamSDKVersion.md)
408
+
409
+ ### Authorization
410
+
411
+ [Token](../README.md#Token)
412
+
413
+ ### HTTP request headers
414
+
415
+ - **Content-Type**: application/json
416
+ - **Accept**: application/json
417
+
418
+
419
+
420
+ # **get_streams**
421
+ > Streams get_streams
422
+
423
+ Returns a list of all streams.
424
+
425
+ ### Example
426
+ ```ruby
427
+ # load the gem
428
+ require 'launchdarkly_api'
429
+ # setup authorization
430
+ LaunchDarklyApi.configure do |config|
431
+ # Configure API key authorization: Token
432
+ config.api_key['Authorization'] = 'YOUR API KEY'
433
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
434
+ #config.api_key_prefix['Authorization'] = 'Bearer'
435
+ end
436
+
437
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
438
+
439
+ begin
440
+ #Returns a list of all streams.
441
+ result = api_instance.get_streams
442
+ p result
443
+ rescue LaunchDarklyApi::ApiError => e
444
+ puts "Exception when calling CustomerMetricsApi->get_streams: #{e}"
445
+ end
446
+ ```
447
+
448
+ ### Parameters
449
+ This endpoint does not need any parameter.
450
+
451
+ ### Return type
452
+
453
+ [**Streams**](Streams.md)
454
+
455
+ ### Authorization
456
+
457
+ [Token](../README.md#Token)
458
+
459
+ ### HTTP request headers
460
+
461
+ - **Content-Type**: application/json
462
+ - **Accept**: application/json
463
+
464
+
465
+
466
+ # **get_usage**
467
+ > Usage get_usage
468
+
469
+ Returns of the usage endpoints available.
470
+
471
+ ### Example
472
+ ```ruby
473
+ # load the gem
474
+ require 'launchdarkly_api'
475
+ # setup authorization
476
+ LaunchDarklyApi.configure do |config|
477
+ # Configure API key authorization: Token
478
+ config.api_key['Authorization'] = 'YOUR API KEY'
479
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
480
+ #config.api_key_prefix['Authorization'] = 'Bearer'
481
+ end
482
+
483
+ api_instance = LaunchDarklyApi::CustomerMetricsApi.new
484
+
485
+ begin
486
+ #Returns of the usage endpoints available.
487
+ result = api_instance.get_usage
488
+ p result
489
+ rescue LaunchDarklyApi::ApiError => e
490
+ puts "Exception when calling CustomerMetricsApi->get_usage: #{e}"
491
+ end
492
+ ```
493
+
494
+ ### Parameters
495
+ This endpoint does not need any parameter.
496
+
497
+ ### Return type
498
+
499
+ [**Usage**](Usage.md)
500
+
501
+ ### Authorization
502
+
503
+ [Token](../README.md#Token)
504
+
505
+ ### HTTP request headers
506
+
507
+ - **Content-Type**: application/json
508
+ - **Accept**: application/json
509
+
510
+
511
+