Skip to content

Commit

Permalink
Expose include_breakdown param for v2 hourly_usage (#1333)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Apr 21, 2023
1 parent 0fae4e0 commit 1f4bd50
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-20 17:24:52.051684",
"spec_repo_commit": "32e3b934"
"regenerated": "2023-04-20 22:10:27.896024",
"spec_repo_commit": "24cbf678"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-20 17:24:52.064554",
"spec_repo_commit": "32e3b934"
"regenerated": "2023-04-20 22:10:27.908937",
"spec_repo_commit": "24cbf678"
}
}
}
8 changes: 8 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23623,6 +23623,14 @@ paths:
schema:
default: false
type: boolean
- description: Include breakdown of usage by subcategories where applicable
(for product family logs only). Defaults to false.
in: query
name: filter[include_breakdown]
required: false
schema:
default: false
type: boolean
- description: 'Comma separated list of product family versions to use in the
format `product_family:version`. For example,

Expand Down
1 change: 1 addition & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,7 @@
"filter_timestamp_end" => "Time",
"filter_product_families" => "String",
"filter_include_descendants" => "Boolean",
"filter_include_breakdown" => "Boolean",
"filter_versions" => "String",
"page_limit" => "Integer",
"page_next_record_id" => "String",
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog_api_client/v2/api/usage_metering_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def get_hourly_usage(filter_timestamp_start, filter_product_families, opts = {})
# @param opts [Hash] the optional parameters
# @option opts [Time] :filter_timestamp_end Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
# @option opts [Boolean] :filter_include_descendants Include child org usage in the response. Defaults to false.
# @option opts [Boolean] :filter_include_breakdown Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false.
# @option opts [String] :filter_versions Comma separated list of product family versions to use in the format `product_family:version`. For example, `infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested product family. Currently all families have one version `1.0.0`.
# @option opts [Integer] :page_limit Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified.
# @option opts [String] :page_next_record_id List following results with a next_record_id provided in the previous query.
Expand Down Expand Up @@ -291,6 +292,7 @@ def get_hourly_usage_with_http_info(filter_timestamp_start, filter_product_famil
query_params[:'filter[product_families]'] = filter_product_families
query_params[:'filter[timestamp][end]'] = opts[:'filter_timestamp_end'] if !opts[:'filter_timestamp_end'].nil?
query_params[:'filter[include_descendants]'] = opts[:'filter_include_descendants'] if !opts[:'filter_include_descendants'].nil?
query_params[:'filter[include_breakdown]'] = opts[:'filter_include_breakdown'] if !opts[:'filter_include_breakdown'].nil?
query_params[:'filter[versions]'] = opts[:'filter_versions'] if !opts[:'filter_versions'].nil?
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
query_params[:'page[next_record_id]'] = opts[:'page_next_record_id'] if !opts[:'page_next_record_id'].nil?
Expand Down

0 comments on commit 1f4bd50

Please sign in to comment.