Skip to content

Commit

Permalink
Regenerate client from commit 2bcb16df of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Sep 27, 2024
1 parent 7a03c80 commit 193ff05
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 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.6",
"regenerated": "2024-09-26 19:34:36.904910",
"spec_repo_commit": "83debf9e"
"regenerated": "2024-09-27 17:45:38.637915",
"spec_repo_commit": "2bcb16df"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-26 19:34:36.918924",
"spec_repo_commit": "83debf9e"
"regenerated": "2024-09-27 17:45:38.752669",
"spec_repo_commit": "2bcb16df"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28272,7 +28272,7 @@ paths:
for cost ending this month.'
in: query
name: end_month
required: true
required: false
schema:
format: date-time
type: string
Expand Down
10 changes: 5 additions & 5 deletions src/datadog_api_client/v2/api/usage_metering_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ def __init__(self, api_client=None):
"location": "query",
},
"end_month": {
"required": True,
"openapi_types": (datetime,),
"attribute": "end_month",
"location": "query",
Expand Down Expand Up @@ -627,9 +626,9 @@ def get_hourly_usage(
def get_monthly_cost_attribution(
self,
start_month: datetime,
end_month: datetime,
fields: str,
*,
end_month: Union[datetime, UnsetType] = unset,
sort_direction: Union[SortDirection, UnsetType] = unset,
sort_name: Union[str, UnsetType] = unset,
tag_breakdown_keys: Union[str, UnsetType] = unset,
Expand Down Expand Up @@ -658,14 +657,14 @@ def get_monthly_cost_attribution(
:param start_month: Datetime in ISO-8601 format, UTC, precise to month: ``[YYYY-MM]`` for cost beginning in this month.
:type start_month: datetime
:param end_month: Datetime in ISO-8601 format, UTC, precise to month: ``[YYYY-MM]`` for cost ending this month.
:type end_month: datetime
:param fields: Comma-separated list specifying cost types (e.g., ``<billing_dimension>_on_demand_cost`` , ``<billing_dimension>_committed_cost`` , ``<billing_dimension>_total_cost`` ) and the
proportions ( ``<billing_dimension>_percentage_in_org`` , ``<billing_dimension>_percentage_in_account`` ). Use ``*`` to retrieve all fields.
Example: ``infra_host_on_demand_cost,infra_host_percentage_in_account``
To obtain the complete list of active billing dimensions that can be used to replace
``<billing_dimension>`` in the field names, make a request to the `Get active billing dimensions API <https://docs.datadoghq.com/api/latest/usage-metering/#get-active-billing-dimensions-for-cost-attribution>`_.
:type fields: str
:param end_month: Datetime in ISO-8601 format, UTC, precise to month: ``[YYYY-MM]`` for cost ending this month.
:type end_month: datetime, optional
:param sort_direction: The direction to sort by: ``[desc, asc]``.
:type sort_direction: SortDirection, optional
:param sort_name: The billing dimension to sort by. Always sorted by total cost. Example: ``infra_host``.
Expand All @@ -682,7 +681,8 @@ def get_monthly_cost_attribution(
kwargs: Dict[str, Any] = {}
kwargs["start_month"] = start_month

kwargs["end_month"] = end_month
if end_month is not unset:
kwargs["end_month"] = end_month

kwargs["fields"] = fields

Expand Down

0 comments on commit 193ff05

Please sign in to comment.