Skip to content

Commit 3f808ad

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cbe6966 of spec repo
1 parent 9f2b67a commit 3f808ad

18 files changed

Lines changed: 389 additions & 38 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4506,10 +4506,11 @@ components:
45064506
type: array
45074507
type: object
45084508
HourlyUsageAttributionUsageType:
4509-
description: 'Supported products for hourly usage attribution requests.
4509+
description: 'Supported products for hourly usage attribution requests. Usage
4510+
types are in the format `<usage_type>_usage`.
45104511

4511-
The following values have been **deprecated**: `estimated_indexed_spans_usage`,
4512-
`estimated_ingested_spans_usage`.'
4512+
To obtain the complete list of valid usage types, make a request to the [Get
4513+
usage attribution types API](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types).'
45134514
enum:
45144515
- api_usage
45154516
- apm_fargate_usage
@@ -9059,7 +9060,11 @@ components:
90599060
type: array
90609061
type: object
90619062
MonthlyUsageAttributionSupportedMetrics:
9062-
description: Supported metrics for monthly usage attribution requests.
9063+
description: 'Supported metrics for monthly usage attribution requests. Usage
9064+
types are in the format `<usage_type>_usage`.
9065+
9066+
To obtain the complete list of valid usage types, make a request to the [Get
9067+
usage attribution types API](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types).'
90639068
enum:
90649069
- api_usage
90659070
- api_percentage
@@ -9390,10 +9395,7 @@ components:
93909395
- SCA_FARGATE_PERCENTAGE
93919396
- ALL
93929397
MonthlyUsageAttributionValues:
9393-
description: 'Fields in Usage Summary by tag(s).
9394-
9395-
The following values have been **deprecated**: `estimated_indexed_spans_usage`,
9396-
`estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`.'
9398+
description: Fields in Usage Summary by tag(s).
93979399
properties:
93989400
api_percentage:
93999401
description: The percentage of synthetic API test usage by tag(s).
@@ -37274,10 +37276,7 @@ paths:
3727437276
code example:\n\n```\nresponse := GetHourlyUsageAttribution(start_month)\ncursor
3727537277
:= response.metadata.pagination.next_record_id\nWHILE cursor != null BEGIN\n
3727637278
\ sleep(5 seconds) # Avoid running into rate limit\n response := GetHourlyUsageAttribution(start_month,
37277-
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```\nThe
37278-
following values have been **deprecated**:\n `estimated_indexed_spans_usage`,
37279-
`estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`,
37280-
`llm_observability_usage`, `llm_observability_percentage`."
37279+
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```"
3728137280
operationId: GetHourlyUsageAttribution
3728237281
parameters:
3728337282
- description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
@@ -37298,9 +37297,14 @@ paths:
3729837297
schema:
3729937298
format: date-time
3730037299
type: string
37301-
- description: 'Usage type to retrieve. The following values have been **deprecated**:
37300+
- description: 'Usage type to retrieve. Usage types are in the format `<usage_type>_usage`.
37301+
37302+
Example: `infra_host_usage`
3730237303

37303-
`estimated_indexed_spans_usage`, `estimated_ingested_spans_usage`.'
37304+
To obtain the complete list of active usage types that can be used to replace
37305+
37306+
`<usage_type>` in the field names, make a request to the [Get usage attribution
37307+
types API](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types).'
3730437308
in: query
3730537309
name: usage_type
3730637310
required: true
@@ -37853,10 +37857,15 @@ paths:
3785337857
- description: 'Comma-separated list of usage types to return, or `*` for all
3785437858
usage types.
3785537859

37856-
The following values have been **deprecated**:
37860+
Usage types are in the format `<usage_type>_usage` and `<usage_type>_percentage`.
37861+
37862+
Example: `infra_host_usage,infra_host_percentage`
3785737863

37858-
`estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`,
37859-
`estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.'
37864+
To obtain the complete list of usage attribution types that can be used
37865+
to replace
37866+
37867+
`<usage_type>` in the field names, make a request to the [Get usage attribution
37868+
types API](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types).'
3786037869
in: query
3786137870
name: fields
3786237871
required: true
@@ -37868,12 +37877,15 @@ paths:
3786837877
required: false
3786937878
schema:
3787037879
$ref: '#/components/schemas/UsageSortDirection'
37871-
- description: 'The field to sort by.
37880+
- description: 'The field to sort by. Sort fields are in the format `<usage_type>_usage`.
37881+
37882+
Example: `infra_host_usage`
3787237883

37873-
The following values have been **deprecated**:
37884+
To obtain the complete list of usage attribution types that can be used
37885+
to replace
3787437886

37875-
`estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`,
37876-
`estimated_ingested_spans_percentage`.'
37887+
`<usage_type>` in the field names, make a request to the [Get usage attribution
37888+
types API](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types).'
3787737889
in: query
3787837890
name: sort_name
3787937891
required: false

.generator/schemas/v2/openapi.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69185,6 +69185,42 @@ components:
6918569185
usage_type:
6918669186
$ref: '#/components/schemas/HourlyUsageType'
6918769187
type: object
69188+
UsageAttributionTypesAttributes:
69189+
description: List of usage attribution types.
69190+
properties:
69191+
values:
69192+
description: List of usage attribution types.
69193+
items:
69194+
description: A given usage type in a list.
69195+
example: infra_host
69196+
type: string
69197+
type: array
69198+
type: object
69199+
UsageAttributionTypesBody:
69200+
description: Usage attribution types data.
69201+
properties:
69202+
attributes:
69203+
$ref: '#/components/schemas/UsageAttributionTypesAttributes'
69204+
id:
69205+
description: Unique ID of the response.
69206+
type: string
69207+
type:
69208+
$ref: '#/components/schemas/UsageAttributionTypesType'
69209+
type: object
69210+
UsageAttributionTypesResponse:
69211+
description: Usage attribution types response.
69212+
properties:
69213+
data:
69214+
$ref: '#/components/schemas/UsageAttributionTypesBody'
69215+
type: object
69216+
UsageAttributionTypesType:
69217+
default: usage_attribution_types
69218+
description: Type of usage attribution types data.
69219+
enum:
69220+
- usage_attribution_types
69221+
type: string
69222+
x-enum-varnames:
69223+
- USAGE_ATTRIBUTION_TYPES
6918869224
UsageDataObject:
6918969225
description: Usage data.
6919069226
properties:
@@ -107077,6 +107113,41 @@ paths:
107077107113
permissions:
107078107114
- usage_read
107079107115
- billing_read
107116+
/api/v2/usage/usage-attribution-types:
107117+
get:
107118+
description: Get usage attribution types.
107119+
operationId: GetUsageAttributionTypes
107120+
responses:
107121+
'200':
107122+
content:
107123+
application/json;datetime-format=rfc3339:
107124+
schema:
107125+
$ref: '#/components/schemas/UsageAttributionTypesResponse'
107126+
description: OK
107127+
'403':
107128+
content:
107129+
application/json;datetime-format=rfc3339:
107130+
schema:
107131+
$ref: '#/components/schemas/APIErrorResponse'
107132+
description: Forbidden - User is not authorized
107133+
'429':
107134+
content:
107135+
application/json;datetime-format=rfc3339:
107136+
schema:
107137+
$ref: '#/components/schemas/APIErrorResponse'
107138+
description: Too many requests
107139+
security:
107140+
- apiKeyAuth: []
107141+
appKeyAuth: []
107142+
- AuthZ:
107143+
- usage_read
107144+
summary: Get usage attribution types
107145+
tags:
107146+
- Usage Metering
107147+
x-permission:
107148+
operator: OR
107149+
permissions:
107150+
- usage_read
107080107151
/api/v2/user_invitations:
107081107152
post:
107082107153
description: Sends emails to one or more users inviting them to join the organization.

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30391,6 +30391,34 @@ datadog\_api\_client.v2.model.usage\_attributes\_object module
3039130391
:members:
3039230392
:show-inheritance:
3039330393

30394+
datadog\_api\_client.v2.model.usage\_attribution\_types\_attributes module
30395+
--------------------------------------------------------------------------
30396+
30397+
.. automodule:: datadog_api_client.v2.model.usage_attribution_types_attributes
30398+
:members:
30399+
:show-inheritance:
30400+
30401+
datadog\_api\_client.v2.model.usage\_attribution\_types\_body module
30402+
--------------------------------------------------------------------
30403+
30404+
.. automodule:: datadog_api_client.v2.model.usage_attribution_types_body
30405+
:members:
30406+
:show-inheritance:
30407+
30408+
datadog\_api\_client.v2.model.usage\_attribution\_types\_response module
30409+
------------------------------------------------------------------------
30410+
30411+
.. automodule:: datadog_api_client.v2.model.usage_attribution_types_response
30412+
:members:
30413+
:show-inheritance:
30414+
30415+
datadog\_api\_client.v2.model.usage\_attribution\_types\_type module
30416+
--------------------------------------------------------------------
30417+
30418+
.. automodule:: datadog_api_client.v2.model.usage_attribution_types_type
30419+
:members:
30420+
:show-inheritance:
30421+
3039430422
datadog\_api\_client.v2.model.usage\_data\_object module
3039530423
--------------------------------------------------------
3039630424

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get usage attribution types returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.usage_metering_api import UsageMeteringApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = UsageMeteringApi(api_client)
11+
response = api_instance.get_usage_attribution_types()
12+
13+
print(response)

src/datadog_api_client/v1/api/usage_metering_api.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,13 +1280,12 @@ def get_hourly_usage_attribution(
12801280
cursor := response.metadata.pagination.next_record_id
12811281
END
12821282
1283-
The following values have been **deprecated** :
1284-
``estimated_indexed_spans_usage`` , ``estimated_indexed_spans_percentage`` , ``estimated_ingested_spans_usage`` , ``estimated_ingested_spans_percentage`` , ``llm_observability_usage`` , ``llm_observability_percentage``.
1285-
12861283
:param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour.
12871284
:type start_hr: datetime
1288-
:param usage_type: Usage type to retrieve. The following values have been **deprecated** :
1289-
``estimated_indexed_spans_usage`` , ``estimated_ingested_spans_usage``.
1285+
:param usage_type: Usage type to retrieve. Usage types are in the format ``<usage_type>_usage``.
1286+
Example: ``infra_host_usage``
1287+
To obtain the complete list of active usage types that can be used to replace
1288+
``<usage_type>`` in the field names, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
12901289
:type usage_type: HourlyUsageAttributionUsageType
12911290
:param end_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage ending
12921291
**before** this hour.
@@ -1448,16 +1447,19 @@ def get_monthly_usage_attribution(
14481447
Maximum of 15 months ago.
14491448
:type start_month: datetime
14501449
:param fields: Comma-separated list of usage types to return, or ``*`` for all usage types.
1451-
The following values have been **deprecated** :
1452-
``estimated_indexed_spans_usage`` , ``estimated_indexed_spans_percentage`` , ``estimated_ingested_spans_usage`` , ``estimated_ingested_spans_percentage`` , ``llm_observability_usage`` , ``llm_observability_percentage``.
1450+
Usage types are in the format ``<usage_type>_usage`` and ``<usage_type>_percentage``.
1451+
Example: ``infra_host_usage,infra_host_percentage``
1452+
To obtain the complete list of usage attribution types that can be used to replace
1453+
``<usage_type>`` in the field names, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
14531454
:type fields: MonthlyUsageAttributionSupportedMetrics
14541455
:param end_month: Datetime in ISO-8601 format, UTC, precise to month: ``[YYYY-MM]`` for usage ending this month.
14551456
:type end_month: datetime, optional
14561457
:param sort_direction: The direction to sort by: ``[desc, asc]``.
14571458
:type sort_direction: UsageSortDirection, optional
1458-
:param sort_name: The field to sort by.
1459-
The following values have been **deprecated** :
1460-
``estimated_indexed_spans_usage`` , ``estimated_indexed_spans_percentage`` , ``estimated_ingested_spans_usage`` , ``estimated_ingested_spans_percentage``.
1459+
:param sort_name: The field to sort by. Sort fields are in the format ``<usage_type>_usage``.
1460+
Example: ``infra_host_usage``
1461+
To obtain the complete list of usage attribution types that can be used to replace
1462+
``<usage_type>`` in the field names, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
14611463
:type sort_name: MonthlyUsageAttributionSupportedMetrics, optional
14621464
:param tag_breakdown_keys: Comma separated list of tag keys used to group usage. If no value is provided the usage will not be broken down by tags.
14631465

src/datadog_api_client/v1/model/hourly_usage_attribution_body.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def __init__(
9494
:param updated_at: Shows the most recent hour in the current month for all organizations where usages are calculated.
9595
:type updated_at: str, optional
9696
97-
:param usage_type: Supported products for hourly usage attribution requests.
98-
The following values have been **deprecated** : ``estimated_indexed_spans_usage`` , ``estimated_ingested_spans_usage``.
97+
:param usage_type: Supported products for hourly usage attribution requests. Usage types are in the format ``<usage_type>_usage``.
98+
To obtain the complete list of valid usage types, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
9999
:type usage_type: HourlyUsageAttributionUsageType, optional
100100
"""
101101
if hour is not unset:

src/datadog_api_client/v1/model/hourly_usage_attribution_usage_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
class HourlyUsageAttributionUsageType(ModelSimple):
1616
"""
17-
Supported products for hourly usage attribution requests.
18-
The following values have been **deprecated**: `estimated_indexed_spans_usage`, `estimated_ingested_spans_usage`.
17+
Supported products for hourly usage attribution requests. Usage types are in the format `<usage_type>_usage`.
18+
To obtain the complete list of valid usage types, make a request to the [Get usage attribution types API](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types).
1919
2020
:param value: Must be one of ["api_usage", "apm_fargate_usage", "apm_host_usage", "apm_usm_usage", "appsec_fargate_usage", "appsec_usage", "asm_serverless_traced_invocations_usage", "asm_serverless_traced_invocations_percentage", "bits_ai_investigations_usage", "browser_usage", "ci_pipeline_indexed_spans_usage", "ci_test_indexed_spans_usage", "ci_visibility_itr_usage", "cloud_siem_usage", "code_security_host_usage", "container_excl_agent_usage", "container_usage", "cspm_containers_usage", "cspm_hosts_usage", "custom_event_usage", "custom_ingested_timeseries_usage", "custom_timeseries_usage", "cws_containers_usage", "cws_fargate_task_usage", "cws_hosts_usage", "data_jobs_monitoring_usage", "data_stream_monitoring_usage", "dbm_hosts_usage", "dbm_queries_usage", "error_tracking_usage", "error_tracking_percentage", "estimated_indexed_spans_usage", "estimated_ingested_spans_usage", "fargate_usage", "flex_logs_starter", "flex_stored_logs", "functions_usage", "incident_management_monthly_active_users_usage", "indexed_spans_usage", "infra_host_usage", "ingested_logs_bytes_usage", "ingested_spans_bytes_usage", "invocations_usage", "lambda_traced_invocations_usage", "llm_observability_usage", "llm_spans_usage", "logs_indexed_15day_usage", "logs_indexed_180day_usage", "logs_indexed_1day_usage", "logs_indexed_30day_usage", "logs_indexed_360day_usage", "logs_indexed_3day_usage", "logs_indexed_45day_usage", "logs_indexed_60day_usage", "logs_indexed_7day_usage", "logs_indexed_90day_usage", "logs_indexed_custom_retention_usage", "mobile_app_testing_usage", "ndm_netflow_usage", "npm_host_usage", "network_device_wireless_usage", "obs_pipeline_bytes_usage", "obs_pipelines_vcpu_usage", "online_archive_usage", "product_analytics_session_usage", "profiled_container_usage", "profiled_fargate_usage", "profiled_host_usage", "published_app", "rum_browser_mobile_sessions_usage", "rum_ingested_usage", "rum_investigate_usage", "rum_replay_sessions_usage", "rum_session_replay_add_on_usage", "sca_fargate_usage", "sds_scanned_bytes_usage", "serverless_apps_usage", "siem_analyzed_logs_add_on_usage", "siem_ingested_bytes_usage", "snmp_usage", "universal_service_monitoring_usage", "vuln_management_hosts_usage", "workflow_executions_usage"].
2121
:type value: str

src/datadog_api_client/v1/model/monthly_usage_attribution_body.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def __init__(
8989
:type updated_at: datetime, optional
9090
9191
:param values: Fields in Usage Summary by tag(s).
92-
The following values have been **deprecated** : ``estimated_indexed_spans_usage`` , ``estimated_indexed_spans_percentage`` , ``estimated_ingested_spans_usage`` , ``estimated_ingested_spans_percentage``.
9392
:type values: MonthlyUsageAttributionValues, optional
9493
"""
9594
if month is not unset:

0 commit comments

Comments
 (0)