Skip to content

Commit 77b1fb8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 553a1e1 of spec repo
1 parent 8f65703 commit 77b1fb8

4 files changed

Lines changed: 37 additions & 14 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31063,9 +31063,17 @@ components:
3106331063
type: string
3106431064
values:
3106531065
description: |-
31066-
Column values in row order. The element type matches the column's `type`;
31067-
for example a `VARCHAR` column carries strings, a `TIMESTAMP` column carries
31068-
Unix-millisecond integers. `null` is allowed for missing values.
31066+
Column values in row order, one entry per result row. The element type
31067+
follows the column's `type`. The following serialization rules should be
31068+
taken into account:
31069+
31070+
- `BIGINT` values are encoded as JSON numbers in the signed 64-bit integer range.
31071+
- `DECIMAL` values are encoded as JSON numbers with 64-bit double precision.
31072+
- `TIMESTAMP` and `DATE` values are encoded as Unix-millisecond integers; a
31073+
`DATE` resolves to midnight UTC.
31074+
- `JSON` values are returned as a JSON-encoded string.
31075+
31076+
`null` is allowed for any column type where a value is missing.
3106931077
example:
3107031078
- web-store
3107131079
- checkout
@@ -55874,6 +55882,12 @@ components:
5587455882
description: Status of the source span. Included only when metrics are requested.
5587555883
example: ok
5587655884
type: string
55885+
timestamp:
55886+
description: >-
55887+
Unix timestamp of the source span in milliseconds. Included only when metrics are requested.
55888+
example: 1711000123456
55889+
format: int64
55890+
type: integer
5587755891
total_tokens:
5587855892
description: Total number of tokens of the source span. Included only when metrics are requested.
5587955893
example: 192
@@ -135602,9 +135616,6 @@ paths:
135602135616
summary: Execute a tabular DDSQL query
135603135617
tags:
135604135618
- DDSQL
135605-
x-unstable: |-
135606-
**Note**: This endpoint is in preview and is subject to change.
135607-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
135608135619
/api/v2/ddsql/query/tabular/fetch:
135609135620
post:
135610135621
description: |-
@@ -135713,9 +135724,6 @@ paths:
135713135724
summary: Fetch the result of a DDSQL query
135714135725
tags:
135715135726
- DDSQL
135716-
x-unstable: |-
135717-
**Note**: This endpoint is in preview and is subject to change.
135718-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
135719135727
/api/v2/deletion/data/{product}:
135720135728
post:
135721135729
description: Creates a data deletion request by providing a query and a timeframe targeting the proper data.
@@ -155150,6 +155158,7 @@ paths:
155150155158
output_tokens: 64
155151155159
span_id: "1234567890123456789"
155152155160
status: ok
155161+
timestamp: 1711000123456
155153155162
total_tokens: 192
155154155163
created_at: "2024-01-15T10:44:00Z"
155155155164
description: "Questions about invoices, charges, and refunds."

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ def __init__(
490490
"v2.get_all_datasets": False,
491491
"v2.get_dataset": False,
492492
"v2.update_dataset": False,
493-
"v2.execute_ddsql_tabular_query": False,
494-
"v2.fetch_ddsql_tabular_query": False,
495493
"v2.cancel_data_deletion_request": False,
496494
"v2.create_data_deletion_request": False,
497495
"v2.get_data_deletion_requests": False,

src/datadog_api_client/v2/model/ddsql_tabular_query_column.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@ def __init__(self_, name: str, type: str, values: List[Any], **kwargs):
4444
for the full, up-to-date list.
4545
:type type: str
4646
47-
:param values: Column values in row order. The element type matches the column's ``type`` ;
48-
for example a ``VARCHAR`` column carries strings, a ``TIMESTAMP`` column carries
49-
Unix-millisecond integers. ``null`` is allowed for missing values.
47+
:param values: Column values in row order, one entry per result row. The element type
48+
follows the column's ``type``. The following serialization rules should be
49+
taken into account:
50+
51+
* ``BIGINT`` values are encoded as JSON numbers in the signed 64-bit integer range.
52+
* ``DECIMAL`` values are encoded as JSON numbers with 64-bit double precision.
53+
* ``TIMESTAMP`` and ``DATE`` values are encoded as Unix-millisecond integers; a
54+
``DATE`` resolves to midnight UTC.
55+
* ``JSON`` values are returned as a JSON-encoded string.
56+
57+
``null`` is allowed for any column type where a value is missing.
5058
:type values: [bool, date, datetime, dict, float, int, list, str, UUID, none_type]
5159
"""
5260
super().__init__(kwargs)

src/datadog_api_client/v2/model/llm_obs_patterns_clustered_point_ref.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def openapi_types(_):
4343
"output_tokens": (float,),
4444
"span_id": (str,),
4545
"status": (str,),
46+
"timestamp": (int,),
4647
"total_tokens": (float,),
4748
}
4849

@@ -54,6 +55,7 @@ def openapi_types(_):
5455
"output_tokens": "output_tokens",
5556
"span_id": "span_id",
5657
"status": "status",
58+
"timestamp": "timestamp",
5759
"total_tokens": "total_tokens",
5860
}
5961

@@ -66,6 +68,7 @@ def __init__(
6668
input_tokens: Union[float, UnsetType] = unset,
6769
output_tokens: Union[float, UnsetType] = unset,
6870
status: Union[str, UnsetType] = unset,
71+
timestamp: Union[int, UnsetType] = unset,
6972
total_tokens: Union[float, UnsetType] = unset,
7073
**kwargs,
7174
):
@@ -95,6 +98,9 @@ def __init__(
9598
:param status: Status of the source span. Included only when metrics are requested.
9699
:type status: str, optional
97100
101+
:param timestamp: Unix timestamp of the source span in milliseconds. Included only when metrics are requested.
102+
:type timestamp: int, optional
103+
98104
:param total_tokens: Total number of tokens of the source span. Included only when metrics are requested.
99105
:type total_tokens: float, optional
100106
"""
@@ -110,6 +116,8 @@ def __init__(
110116
kwargs["output_tokens"] = output_tokens
111117
if status is not unset:
112118
kwargs["status"] = status
119+
if timestamp is not unset:
120+
kwargs["timestamp"] = timestamp
113121
if total_tokens is not unset:
114122
kwargs["total_tokens"] = total_tokens
115123
super().__init__(kwargs)

0 commit comments

Comments
 (0)