Class: LaunchDarklyApi::AccountUsageBetaApi
- Inherits:
-
Object
- Object
- LaunchDarklyApi::AccountUsageBetaApi
- Defined in:
- lib/launchdarkly_api/api/account_usage_beta_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_contexts_clientside_usage(opts = {}) ⇒ SeriesListRep
Get contexts clientside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds.
-
#get_contexts_clientside_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get contexts clientside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds.
-
#get_contexts_serverside_usage(opts = {}) ⇒ SeriesListRep
Get contexts serverside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds.
-
#get_contexts_serverside_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get contexts serverside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds.
-
#get_contexts_total_usage(opts = {}) ⇒ SeriesListRep
Get contexts total usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds.
-
#get_contexts_total_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get contexts total usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds.
-
#get_data_export_events_usage(opts = {}) ⇒ SeriesListRep
Get data export events usage Get a time series array showing the number of data export events from your account.
-
#get_data_export_events_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get data export events usage Get a time series array showing the number of data export events from your account.
-
#get_evaluations_usage(project_key, environment_key, feature_flag_key, opts = {}) ⇒ SeriesListRep
Get evaluations usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation.
-
#get_evaluations_usage_with_http_info(project_key, environment_key, feature_flag_key, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get evaluations usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation.
-
#get_events_usage(type, opts = {}) ⇒ SeriesListRep
Get events usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation.
-
#get_events_usage_with_http_info(type, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get events usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation.
-
#get_experimentation_events_usage(opts = {}) ⇒ SeriesListRep
Get experimentation events usage Get a time series array showing the number of experimentation events from your account.
-
#get_experimentation_events_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get experimentation events usage Get a time series array showing the number of experimentation events from your account.
-
#get_experimentation_keys_usage(opts = {}) ⇒ SeriesListRep
Get experimentation keys usage Get a time series array showing the number of experimentation keys from your account.
-
#get_experimentation_keys_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get experimentation keys usage Get a time series array showing the number of experimentation keys from your account.
-
#get_mau_sdks_by_type(opts = {}) ⇒ SdkListRep
Get MAU SDKs by type Get a list of SDKs.
-
#get_mau_sdks_by_type_with_http_info(opts = {}) ⇒ Array<(SdkListRep, Integer, Hash)>
Get MAU SDKs by type Get a list of SDKs.
-
#get_mau_usage(opts = {}) ⇒ SeriesListRep
Get MAU usage Get a time-series array of the number of monthly active users (MAU) seen by LaunchDarkly from your account.
-
#get_mau_usage_by_category(opts = {}) ⇒ SeriesListRep
Get MAU usage by category Get time-series arrays of the number of monthly active users (MAU) seen by LaunchDarkly from your account, broken down by the category of users.
-
#get_mau_usage_by_category_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get MAU usage by category Get time-series arrays of the number of monthly active users (MAU) seen by LaunchDarkly from your account, broken down by the category of users.
-
#get_mau_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get MAU usage Get a time-series array of the number of monthly active users (MAU) seen by LaunchDarkly from your account.
-
#get_observability_errors_usage(opts = {}) ⇒ SeriesListRep
Get observability errors usage Get time-series arrays of the number of observability errors.
-
#get_observability_errors_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability errors usage Get time-series arrays of the number of observability errors.
-
#get_observability_logs_usage(opts = {}) ⇒ SeriesListRep
Get observability logs usage Get time-series arrays of the number of observability logs.
-
#get_observability_logs_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability logs usage Get time-series arrays of the number of observability logs.
-
#get_observability_sessions_usage(opts = {}) ⇒ SeriesListRep
Get observability sessions usage Get time-series arrays of the number of observability sessions.
-
#get_observability_sessions_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability sessions usage Get time-series arrays of the number of observability sessions.
-
#get_observability_traces_usage(opts = {}) ⇒ SeriesListRep
Get observability traces usage Get time-series arrays of the number of observability traces.
-
#get_observability_traces_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability traces usage Get time-series arrays of the number of observability traces.
-
#get_service_connections_usage(opts = {}) ⇒ SeriesListRepFloat
Get service connections usage Get a time series array showing the number of service connection minutes from your account.
-
#get_service_connections_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRepFloat, Integer, Hash)>
Get service connections usage Get a time series array showing the number of service connection minutes from your account.
-
#get_stream_usage(source, opts = {}) ⇒ SeriesListRep
Get stream usage Get a time-series array of the number of streaming connections to LaunchDarkly in each time period.
-
#get_stream_usage_by_sdk_version(source, opts = {}) ⇒ SeriesListRep
Get stream usage by SDK version Get multiple series of the number of streaming connections to LaunchDarkly in each time period, separated by SDK type and version.
-
#get_stream_usage_by_sdk_version_with_http_info(source, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get stream usage by SDK version Get multiple series of the number of streaming connections to LaunchDarkly in each time period, separated by SDK type and version.
-
#get_stream_usage_sdkversion(source, opts = {}) ⇒ SdkVersionListRep
Get stream usage SDK versions Get a list of SDK version objects, which contain an SDK name and version.
-
#get_stream_usage_sdkversion_with_http_info(source, opts = {}) ⇒ Array<(SdkVersionListRep, Integer, Hash)>
Get stream usage SDK versions Get a list of SDK version objects, which contain an SDK name and version.
-
#get_stream_usage_with_http_info(source, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get stream usage Get a time-series array of the number of streaming connections to LaunchDarkly in each time period.
-
#initialize(api_client = ApiClient.default) ⇒ AccountUsageBetaApi
constructor
A new instance of AccountUsageBetaApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ AccountUsageBetaApi
Returns a new instance of AccountUsageBetaApi.
19 20 21 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_contexts_clientside_usage(opts = {}) ⇒ SeriesListRep
Get contexts clientside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds. Use this for breakdowns that go beyond the primary-only aggregation of MAU endpoints. The counts reflect data reported by client-side SDKs.<br/><br/>The supported granularity varies by aggregation type. The maximum time range is 365 days.
36 37 38 39 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 36 def get_contexts_clientside_usage(opts = {}) data, _status_code, _headers = get_contexts_clientside_usage_with_http_info(opts) data end |
#get_contexts_clientside_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get contexts clientside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds. Use this for breakdowns that go beyond the primary-only aggregation of MAU endpoints. The counts reflect data reported by client-side SDKs.<br/><br/>The supported granularity varies by aggregation type. The maximum time range is 365 days.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 55 def get_contexts_clientside_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_contexts_clientside_usage ...' end # resource path local_var_path = '/api/v2/usage/clientside-contexts' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'environmentKey'] = opts[:'environment_key'] if !opts[:'environment_key'].nil? query_params[:'contextKind'] = opts[:'context_kind'] if !opts[:'context_kind'].nil? query_params[:'sdkName'] = opts[:'sdk_name'] if !opts[:'sdk_name'].nil? query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil? query_params[:'groupBy'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_contexts_clientside_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_contexts_clientside_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contexts_serverside_usage(opts = {}) ⇒ SeriesListRep
Get contexts serverside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds. Use this for breakdowns that go beyond the primary-only aggregation of MAU endpoints. The counts reflect data reported by server-side SDKs.<br/><br/>The supported granularity varies by aggregation type. The maximum time range is 365 days.
123 124 125 126 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 123 def get_contexts_serverside_usage(opts = {}) data, _status_code, _headers = get_contexts_serverside_usage_with_http_info(opts) data end |
#get_contexts_serverside_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get contexts serverside usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds. Use this for breakdowns that go beyond the primary-only aggregation of MAU endpoints. The counts reflect data reported by server-side SDKs.<br/><br/>The supported granularity varies by aggregation type. The maximum time range is 365 days.
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 142 def get_contexts_serverside_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_contexts_serverside_usage ...' end # resource path local_var_path = '/api/v2/usage/serverside-contexts' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'environmentKey'] = opts[:'environment_key'] if !opts[:'environment_key'].nil? query_params[:'contextKind'] = opts[:'context_kind'] if !opts[:'context_kind'].nil? query_params[:'sdkName'] = opts[:'sdk_name'] if !opts[:'sdk_name'].nil? query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil? query_params[:'groupBy'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_contexts_serverside_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_contexts_serverside_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contexts_total_usage(opts = {}) ⇒ SeriesListRep
Get contexts total usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds. Use this for breakdowns that go beyond the primary-only aggregation of MAU endpoints.<br/><br/>The supported granularity varies by aggregation type. The maximum time range is 365 days.
211 212 213 214 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 211 def get_contexts_total_usage(opts = {}) data, _status_code, _headers = get_contexts_total_usage_with_http_info(opts) data end |
#get_contexts_total_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get contexts total usage Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds. Use this for breakdowns that go beyond the primary-only aggregation of MAU endpoints.<br/><br/>The supported granularity varies by aggregation type. The maximum time range is 365 days.
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 231 def get_contexts_total_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_contexts_total_usage ...' end # resource path local_var_path = '/api/v2/usage/total-contexts' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'environmentKey'] = opts[:'environment_key'] if !opts[:'environment_key'].nil? query_params[:'contextKind'] = opts[:'context_kind'] if !opts[:'context_kind'].nil? query_params[:'sdkName'] = opts[:'sdk_name'] if !opts[:'sdk_name'].nil? query_params[:'sdkType'] = opts[:'sdk_type'] if !opts[:'sdk_type'].nil? query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil? query_params[:'groupBy'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_contexts_total_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_contexts_total_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_data_export_events_usage(opts = {}) ⇒ SeriesListRep
Get data export events usage Get a time series array showing the number of data export events from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
298 299 300 301 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 298 def get_data_export_events_usage(opts = {}) data, _status_code, _headers = get_data_export_events_usage_with_http_info(opts) data end |
#get_data_export_events_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get data export events usage Get a time series array showing the number of data export events from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 315 def get_data_export_events_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_data_export_events_usage ...' end # resource path local_var_path = '/api/v2/usage/data-export-events' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'environmentKey'] = opts[:'environment_key'] if !opts[:'environment_key'].nil? query_params[:'eventKind'] = opts[:'event_kind'] if !opts[:'event_kind'].nil? query_params[:'groupBy'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_data_export_events_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_data_export_events_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_evaluations_usage(project_key, environment_key, feature_flag_key, opts = {}) ⇒ SeriesListRep
Get evaluations usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
377 378 379 380 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 377 def get_evaluations_usage(project_key, environment_key, feature_flag_key, opts = {}) data, _status_code, _headers = get_evaluations_usage_with_http_info(project_key, environment_key, feature_flag_key, opts) data end |
#get_evaluations_usage_with_http_info(project_key, environment_key, feature_flag_key, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get evaluations usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 392 def get_evaluations_usage_with_http_info(project_key, environment_key, feature_flag_key, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_evaluations_usage ...' end # verify the required parameter 'project_key' is set if @api_client.config.client_side_validation && project_key.nil? fail ArgumentError, "Missing the required parameter 'project_key' when calling AccountUsageBetaApi.get_evaluations_usage" end # verify the required parameter 'environment_key' is set if @api_client.config.client_side_validation && environment_key.nil? fail ArgumentError, "Missing the required parameter 'environment_key' when calling AccountUsageBetaApi.get_evaluations_usage" end # verify the required parameter 'feature_flag_key' is set if @api_client.config.client_side_validation && feature_flag_key.nil? fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling AccountUsageBetaApi.get_evaluations_usage" end # resource path local_var_path = '/api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey}'.sub('{' + 'projectKey' + '}', CGI.escape(project_key.to_s)).sub('{' + 'environmentKey' + '}', CGI.escape(environment_key.to_s)).sub('{' + 'featureFlagKey' + '}', CGI.escape(feature_flag_key.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'tz'] = opts[:'tz'] if !opts[:'tz'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_evaluations_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_evaluations_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_events_usage(type, opts = {}) ⇒ SeriesListRep
Get events usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
458 459 460 461 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 458 def get_events_usage(type, opts = {}) data, _status_code, _headers = get_events_usage_with_http_info(type, opts) data end |
#get_events_usage_with_http_info(type, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get events usage Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 470 def get_events_usage_with_http_info(type, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_events_usage ...' end # verify the required parameter 'type' is set if @api_client.config.client_side_validation && type.nil? fail ArgumentError, "Missing the required parameter 'type' when calling AccountUsageBetaApi.get_events_usage" end # resource path local_var_path = '/api/v2/usage/events/{type}'.sub('{' + 'type' + '}', CGI.escape(type.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_events_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_events_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_experimentation_events_usage(opts = {}) ⇒ SeriesListRep
Get experimentation events usage Get a time series array showing the number of experimentation events from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
533 534 535 536 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 533 def get_experimentation_events_usage(opts = {}) data, _status_code, _headers = get_experimentation_events_usage_with_http_info(opts) data end |
#get_experimentation_events_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get experimentation events usage Get a time series array showing the number of experimentation events from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 551 def get_experimentation_events_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_experimentation_events_usage ...' end # resource path local_var_path = '/api/v2/usage/experimentation-events' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'environmentKey'] = opts[:'environment_key'] if !opts[:'environment_key'].nil? query_params[:'eventKey'] = opts[:'event_key'] if !opts[:'event_key'].nil? query_params[:'eventKind'] = opts[:'event_kind'] if !opts[:'event_kind'].nil? query_params[:'groupBy'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_experimentation_events_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_experimentation_events_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_experimentation_keys_usage(opts = {}) ⇒ SeriesListRep
Get experimentation keys usage Get a time series array showing the number of experimentation keys from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
616 617 618 619 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 616 def get_experimentation_keys_usage(opts = {}) data, _status_code, _headers = get_experimentation_keys_usage_with_http_info(opts) data end |
#get_experimentation_keys_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get experimentation keys usage Get a time series array showing the number of experimentation keys from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 633 def get_experimentation_keys_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_experimentation_keys_usage ...' end # resource path local_var_path = '/api/v2/usage/experimentation-keys' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'environmentKey'] = opts[:'environment_key'] if !opts[:'environment_key'].nil? query_params[:'experimentId'] = opts[:'experiment_id'] if !opts[:'experiment_id'].nil? query_params[:'groupBy'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_experimentation_keys_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_experimentation_keys_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_mau_sdks_by_type(opts = {}) ⇒ SdkListRep
Get MAU SDKs by type Get a list of SDKs. These are all of the SDKs that have connected to LaunchDarkly by monthly active users (MAU) in the requested time period.<br/><br/>Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read [Account usage metrics](launchdarkly.com/docs/home/account/metrics).
692 693 694 695 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 692 def get_mau_sdks_by_type(opts = {}) data, _status_code, _headers = get_mau_sdks_by_type_with_http_info(opts) data end |
#get_mau_sdks_by_type_with_http_info(opts = {}) ⇒ Array<(SdkListRep, Integer, Hash)>
Get MAU SDKs by type Get a list of SDKs. These are all of the SDKs that have connected to LaunchDarkly by monthly active users (MAU) in the requested time period.<br/><br/>Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read [Account usage metrics](launchdarkly.com/docs/home/account/metrics).
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 704 def get_mau_sdks_by_type_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_mau_sdks_by_type ...' end # resource path local_var_path = '/api/v2/usage/mau/sdks' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'sdktype'] = opts[:'sdktype'] if !opts[:'sdktype'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SdkListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_mau_sdks_by_type", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_mau_sdks_by_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_mau_usage(opts = {}) ⇒ SeriesListRep
Get MAU usage Get a time-series array of the number of monthly active users (MAU) seen by LaunchDarkly from your account. The granularity is always daily.<br/><br/>Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read [Account usage metrics](launchdarkly.com/docs/home/account/metrics).
765 766 767 768 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 765 def get_mau_usage(opts = {}) data, _status_code, _headers = get_mau_usage_with_http_info(opts) data end |
#get_mau_usage_by_category(opts = {}) ⇒ SeriesListRep
Get MAU usage by category Get time-series arrays of the number of monthly active users (MAU) seen by LaunchDarkly from your account, broken down by the category of users. The category is either ‘browser`, `mobile`, or `backend`.<br/><br/>Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read [Account usage metrics](launchdarkly.com/docs/home/account/metrics).
844 845 846 847 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 844 def get_mau_usage_by_category(opts = {}) data, _status_code, _headers = get_mau_usage_by_category_with_http_info(opts) data end |
#get_mau_usage_by_category_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get MAU usage by category Get time-series arrays of the number of monthly active users (MAU) seen by LaunchDarkly from your account, broken down by the category of users. The category is either `browser`, `mobile`, or `backend`.<br/><br/>Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read [Account usage metrics](launchdarkly.com/docs/home/account/metrics).
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 855 def get_mau_usage_by_category_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_mau_usage_by_category ...' end # resource path local_var_path = '/api/v2/usage/mau/bycategory' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_mau_usage_by_category", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_mau_usage_by_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_mau_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get MAU usage Get a time-series array of the number of monthly active users (MAU) seen by LaunchDarkly from your account. The granularity is always daily.<br/><br/>Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read [Account usage metrics](launchdarkly.com/docs/home/account/metrics).
784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 784 def get_mau_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_mau_usage ...' end # resource path local_var_path = '/api/v2/usage/mau' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'project'] = opts[:'project'] if !opts[:'project'].nil? query_params[:'environment'] = opts[:'environment'] if !opts[:'environment'].nil? query_params[:'sdktype'] = opts[:'sdktype'] if !opts[:'sdktype'].nil? query_params[:'sdk'] = opts[:'sdk'] if !opts[:'sdk'].nil? query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil? query_params[:'groupby'] = opts[:'groupby'] if !opts[:'groupby'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'contextKind'] = opts[:'context_kind'] if !opts[:'context_kind'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_mau_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_mau_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_observability_errors_usage(opts = {}) ⇒ SeriesListRep
Get observability errors usage Get time-series arrays of the number of observability errors. Supports ‘daily` and `monthly` granularity.
910 911 912 913 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 910 def get_observability_errors_usage(opts = {}) data, _status_code, _headers = get_observability_errors_usage_with_http_info(opts) data end |
#get_observability_errors_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability errors usage Get time-series arrays of the number of observability errors. Supports `daily` and `monthly` granularity.
924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 924 def get_observability_errors_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_observability_errors_usage ...' end # resource path local_var_path = '/api/v2/usage/observability/errors' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_observability_errors_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_observability_errors_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_observability_logs_usage(opts = {}) ⇒ SeriesListRep
Get observability logs usage Get time-series arrays of the number of observability logs. Supports ‘daily` and `monthly` granularity.
982 983 984 985 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 982 def get_observability_logs_usage(opts = {}) data, _status_code, _headers = get_observability_logs_usage_with_http_info(opts) data end |
#get_observability_logs_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability logs usage Get time-series arrays of the number of observability logs. Supports `daily` and `monthly` granularity.
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 996 def get_observability_logs_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_observability_logs_usage ...' end # resource path local_var_path = '/api/v2/usage/observability/logs' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_observability_logs_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_observability_logs_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_observability_sessions_usage(opts = {}) ⇒ SeriesListRep
Get observability sessions usage Get time-series arrays of the number of observability sessions. Supports ‘daily` and `monthly` granularity.
1054 1055 1056 1057 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1054 def get_observability_sessions_usage(opts = {}) data, _status_code, _headers = get_observability_sessions_usage_with_http_info(opts) data end |
#get_observability_sessions_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability sessions usage Get time-series arrays of the number of observability sessions. Supports `daily` and `monthly` granularity.
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1068 def get_observability_sessions_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_observability_sessions_usage ...' end # resource path local_var_path = '/api/v2/usage/observability/sessions' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_observability_sessions_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_observability_sessions_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_observability_traces_usage(opts = {}) ⇒ SeriesListRep
Get observability traces usage Get time-series arrays of the number of observability traces. Supports ‘daily` and `monthly` granularity.
1126 1127 1128 1129 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1126 def get_observability_traces_usage(opts = {}) data, _status_code, _headers = get_observability_traces_usage_with_http_info(opts) data end |
#get_observability_traces_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get observability traces usage Get time-series arrays of the number of observability traces. Supports `daily` and `monthly` granularity.
1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1140 def get_observability_traces_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_observability_traces_usage ...' end # resource path local_var_path = '/api/v2/usage/observability/traces' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_observability_traces_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_observability_traces_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_service_connections_usage(opts = {}) ⇒ SeriesListRepFloat
Get service connections usage Get a time series array showing the number of service connection minutes from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
1205 1206 1207 1208 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1205 def get_service_connections_usage(opts = {}) data, _status_code, _headers = get_service_connections_usage_with_http_info(opts) data end |
#get_service_connections_usage_with_http_info(opts = {}) ⇒ Array<(SeriesListRepFloat, Integer, Hash)>
Get service connections usage Get a time series array showing the number of service connection minutes from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1226 def get_service_connections_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_service_connections_usage ...' end # resource path local_var_path = '/api/v2/usage/service-connections' # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'projectKey'] = opts[:'project_key'] if !opts[:'project_key'].nil? query_params[:'environmentKey'] = opts[:'environment_key'] if !opts[:'environment_key'].nil? query_params[:'connectionType'] = opts[:'connection_type'] if !opts[:'connection_type'].nil? query_params[:'relayVersion'] = opts[:'relay_version'] if !opts[:'relay_version'].nil? query_params[:'sdkName'] = opts[:'sdk_name'] if !opts[:'sdk_name'].nil? query_params[:'sdkVersion'] = opts[:'sdk_version'] if !opts[:'sdk_version'].nil? query_params[:'sdkType'] = opts[:'sdk_type'] if !opts[:'sdk_type'].nil? query_params[:'groupBy'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'aggregationType'] = opts[:'aggregation_type'] if !opts[:'aggregation_type'].nil? query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRepFloat' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_service_connections_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_service_connections_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_stream_usage(source, opts = {}) ⇒ SeriesListRep
Get stream usage Get a time-series array of the number of streaming connections to LaunchDarkly in each time period. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
1290 1291 1292 1293 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1290 def get_stream_usage(source, opts = {}) data, _status_code, _headers = get_stream_usage_with_http_info(source, opts) data end |
#get_stream_usage_by_sdk_version(source, opts = {}) ⇒ SeriesListRep
Get stream usage by SDK version Get multiple series of the number of streaming connections to LaunchDarkly in each time period, separated by SDK type and version. Information about each series is in the metadata array. The granularity of the data depends on the age of the data requested. If the requested range is within the past 2 hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
1364 1365 1366 1367 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1364 def get_stream_usage_by_sdk_version(source, opts = {}) data, _status_code, _headers = get_stream_usage_by_sdk_version_with_http_info(source, opts) data end |
#get_stream_usage_by_sdk_version_with_http_info(source, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get stream usage by SDK version Get multiple series of the number of streaming connections to LaunchDarkly in each time period, separated by SDK type and version. Information about each series is in the metadata array. The granularity of the data depends on the age of the data requested. If the requested range is within the past 2 hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1379 def get_stream_usage_by_sdk_version_with_http_info(source, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_stream_usage_by_sdk_version ...' end # verify the required parameter 'source' is set if @api_client.config.client_side_validation && source.nil? fail ArgumentError, "Missing the required parameter 'source' when calling AccountUsageBetaApi.get_stream_usage_by_sdk_version" end # resource path local_var_path = '/api/v2/usage/streams/{source}/bysdkversion'.sub('{' + 'source' + '}', CGI.escape(source.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'tz'] = opts[:'tz'] if !opts[:'tz'].nil? query_params[:'sdk'] = opts[:'sdk'] if !opts[:'sdk'].nil? query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_stream_usage_by_sdk_version", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_stream_usage_by_sdk_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_stream_usage_sdkversion(source, opts = {}) ⇒ SdkVersionListRep
Get stream usage SDK versions Get a list of SDK version objects, which contain an SDK name and version. These are all of the SDKs that have connected to LaunchDarkly from your account in the past 60 days.
1437 1438 1439 1440 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1437 def get_stream_usage_sdkversion(source, opts = {}) data, _status_code, _headers = get_stream_usage_sdkversion_with_http_info(source, opts) data end |
#get_stream_usage_sdkversion_with_http_info(source, opts = {}) ⇒ Array<(SdkVersionListRep, Integer, Hash)>
Get stream usage SDK versions Get a list of SDK version objects, which contain an SDK name and version. These are all of the SDKs that have connected to LaunchDarkly from your account in the past 60 days.
1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1447 def get_stream_usage_sdkversion_with_http_info(source, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_stream_usage_sdkversion ...' end # verify the required parameter 'source' is set if @api_client.config.client_side_validation && source.nil? fail ArgumentError, "Missing the required parameter 'source' when calling AccountUsageBetaApi.get_stream_usage_sdkversion" end # resource path local_var_path = '/api/v2/usage/streams/{source}/sdkversions'.sub('{' + 'source' + '}', CGI.escape(source.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SdkVersionListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_stream_usage_sdkversion", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_stream_usage_sdkversion\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_stream_usage_with_http_info(source, opts = {}) ⇒ Array<(SeriesListRep, Integer, Hash)>
Get stream usage Get a time-series array of the number of streaming connections to LaunchDarkly in each time period. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 |
# File 'lib/launchdarkly_api/api/account_usage_beta_api.rb', line 1303 def get_stream_usage_with_http_info(source, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountUsageBetaApi.get_stream_usage ...' end # verify the required parameter 'source' is set if @api_client.config.client_side_validation && source.nil? fail ArgumentError, "Missing the required parameter 'source' when calling AccountUsageBetaApi.get_stream_usage" end # resource path local_var_path = '/api/v2/usage/streams/{source}'.sub('{' + 'source' + '}', CGI.escape(source.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil? query_params[:'tz'] = opts[:'tz'] if !opts[:'tz'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SeriesListRep' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"AccountUsageBetaApi.get_stream_usage", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountUsageBetaApi#get_stream_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |