Skip to content

Commit ac4d816

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add llm_spans and deprecate llm_observability for Hourly Usage Attribution and Monthly Usage Attribution (#3167)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 317aa0d commit ac4d816

6 files changed

Lines changed: 49 additions & 3 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,6 +4315,7 @@ components:
43154315
- invocations_usage
43164316
- lambda_traced_invocations_usage
43174317
- llm_observability_usage
4318+
- llm_spans_usage
43184319
- logs_indexed_15day_usage
43194320
- logs_indexed_180day_usage
43204321
- logs_indexed_1day_usage
@@ -4396,6 +4397,7 @@ components:
43964397
- INVOCATIONS_USAGE
43974398
- LAMBDA_TRACED_INVOCATIONS_USAGE
43984399
- LLM_OBSERVABILITY_USAGE
4400+
- LLM_SPANS_USAGE
43994401
- LOGS_INDEXED_15DAY_USAGE
44004402
- LOGS_INDEXED_180DAY_USAGE
44014403
- LOGS_INDEXED_1DAY_USAGE
@@ -8752,6 +8754,8 @@ components:
87528754
- lambda_traced_invocations_percentage
87538755
- llm_observability_usage
87548756
- llm_observability_percentage
8757+
- llm_spans_usage
8758+
- llm_spans_percentage
87558759
- mobile_app_testing_percentage
87568760
- mobile_app_testing_usage
87578761
- ndm_netflow_usage
@@ -8909,6 +8913,8 @@ components:
89098913
- LAMBDA_TRACED_INVOCATIONS_PERCENTAGE
89108914
- LLM_OBSERVABILITY_USAGE
89118915
- LLM_OBSERVABILITY_PERCENTAGE
8916+
- LLM_SPANS_USAGE
8917+
- LLM_SPANS_PERCENTAGE
89128918
- MOBILE_APP_TESTING_USAGE
89138919
- MOBILE_APP_TESTING_PERCENTAGE
89148920
- NDM_NETFLOW_USAGE
@@ -9329,6 +9335,14 @@ components:
93299335
description: The LLM Observability usage by tag(s).
93309336
format: double
93319337
type: number
9338+
llm_spans_percentage:
9339+
description: The percentage of LLM Spans usage by tag(s).
9340+
format: double
9341+
type: number
9342+
llm_spans_usage:
9343+
description: The LLM Spans usage by tag(s).
9344+
format: double
9345+
type: number
93329346
logs_indexed_15day_percentage:
93339347
description: The percentage of Indexed Logs (15-day Retention) usage by
93349348
tag(s).
@@ -36599,7 +36613,10 @@ paths:
3659936613
code example:\n\n```\nresponse := GetHourlyUsageAttribution(start_month)\ncursor
3660036614
:= response.metadata.pagination.next_record_id\nWHILE cursor != null BEGIN\n
3660136615
\ sleep(5 seconds) # Avoid running into rate limit\n response := GetHourlyUsageAttribution(start_month,
36602-
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```"
36616+
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```\nThe
36617+
following values have been **deprecated**:\n `estimated_indexed_spans_usage`,
36618+
`estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`,
36619+
`llm_observability_usage`, `llm_observability_percentage`."
3660336620
operationId: GetHourlyUsageAttribution
3660436621
parameters:
3660536622
- description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
@@ -37178,7 +37195,7 @@ paths:
3717837195
The following values have been **deprecated**:
3717937196

3718037197
`estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`,
37181-
`estimated_ingested_spans_percentage`.'
37198+
`estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.'
3718237199
in: query
3718337200
name: fields
3718437201
required: true

packages/datadog-api-client-v1/apis/UsageMeteringApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4499,7 +4499,7 @@ export interface UsageMeteringApiGetMonthlyUsageAttributionRequest {
44994499
/**
45004500
* Comma-separated list of usage types to return, or `*` for all usage types.
45014501
* The following values have been **deprecated**:
4502-
* `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`.
4502+
* `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
45034503
* @type MonthlyUsageAttributionSupportedMetrics
45044504
*/
45054505
fields: MonthlyUsageAttributionSupportedMetrics;
@@ -5040,6 +5040,8 @@ export class UsageMeteringApi {
50405040
* cursor := response.metadata.pagination.next_record_id
50415041
* END
50425042
* ```
5043+
* The following values have been **deprecated**:
5044+
* `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
50435045
* @param param The request object
50445046
*/
50455047
public getHourlyUsageAttribution(

packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export type HourlyUsageAttributionUsageType =
5454
| typeof INVOCATIONS_USAGE
5555
| typeof LAMBDA_TRACED_INVOCATIONS_USAGE
5656
| typeof LLM_OBSERVABILITY_USAGE
57+
| typeof LLM_SPANS_USAGE
5758
| typeof LOGS_INDEXED_15DAY_USAGE
5859
| typeof LOGS_INDEXED_180DAY_USAGE
5960
| typeof LOGS_INDEXED_1DAY_USAGE
@@ -140,6 +141,7 @@ export const INVOCATIONS_USAGE = "invocations_usage";
140141
export const LAMBDA_TRACED_INVOCATIONS_USAGE =
141142
"lambda_traced_invocations_usage";
142143
export const LLM_OBSERVABILITY_USAGE = "llm_observability_usage";
144+
export const LLM_SPANS_USAGE = "llm_spans_usage";
143145
export const LOGS_INDEXED_15DAY_USAGE = "logs_indexed_15day_usage";
144146
export const LOGS_INDEXED_180DAY_USAGE = "logs_indexed_180day_usage";
145147
export const LOGS_INDEXED_1DAY_USAGE = "logs_indexed_1day_usage";

packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export type MonthlyUsageAttributionSupportedMetrics =
7979
| typeof LAMBDA_TRACED_INVOCATIONS_PERCENTAGE
8080
| typeof LLM_OBSERVABILITY_USAGE
8181
| typeof LLM_OBSERVABILITY_PERCENTAGE
82+
| typeof LLM_SPANS_USAGE
83+
| typeof LLM_SPANS_PERCENTAGE
8284
| typeof MOBILE_APP_TESTING_USAGE
8385
| typeof MOBILE_APP_TESTING_PERCENTAGE
8486
| typeof NDM_NETFLOW_USAGE
@@ -248,6 +250,8 @@ export const LAMBDA_TRACED_INVOCATIONS_PERCENTAGE =
248250
"lambda_traced_invocations_percentage";
249251
export const LLM_OBSERVABILITY_USAGE = "llm_observability_usage";
250252
export const LLM_OBSERVABILITY_PERCENTAGE = "llm_observability_percentage";
253+
export const LLM_SPANS_USAGE = "llm_spans_usage";
254+
export const LLM_SPANS_PERCENTAGE = "llm_spans_percentage";
251255
export const MOBILE_APP_TESTING_USAGE = "mobile_app_testing_percentage";
252256
export const MOBILE_APP_TESTING_PERCENTAGE = "mobile_app_testing_usage";
253257
export const NDM_NETFLOW_USAGE = "ndm_netflow_usage";

packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,14 @@ export class MonthlyUsageAttributionValues {
323323
* The LLM Observability usage by tag(s).
324324
*/
325325
"llmObservabilityUsage"?: number;
326+
/**
327+
* The percentage of LLM Spans usage by tag(s).
328+
*/
329+
"llmSpansPercentage"?: number;
330+
/**
331+
* The LLM Spans usage by tag(s).
332+
*/
333+
"llmSpansUsage"?: number;
326334
/**
327335
* The percentage of Indexed Logs (15-day Retention) usage by tag(s).
328336
*/
@@ -1026,6 +1034,16 @@ export class MonthlyUsageAttributionValues {
10261034
type: "number",
10271035
format: "double",
10281036
},
1037+
llmSpansPercentage: {
1038+
baseName: "llm_spans_percentage",
1039+
type: "number",
1040+
format: "double",
1041+
},
1042+
llmSpansUsage: {
1043+
baseName: "llm_spans_usage",
1044+
type: "number",
1045+
format: "double",
1046+
},
10291047
logsIndexed15DayPercentage: {
10301048
baseName: "logs_indexed_15day_percentage",
10311049
type: "number",

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ const enumsMap: { [key: string]: any[] } = {
870870
"invocations_usage",
871871
"lambda_traced_invocations_usage",
872872
"llm_observability_usage",
873+
"llm_spans_usage",
873874
"logs_indexed_15day_usage",
874875
"logs_indexed_180day_usage",
875876
"logs_indexed_1day_usage",
@@ -1136,6 +1137,8 @@ const enumsMap: { [key: string]: any[] } = {
11361137
"lambda_traced_invocations_percentage",
11371138
"llm_observability_usage",
11381139
"llm_observability_percentage",
1140+
"llm_spans_usage",
1141+
"llm_spans_percentage",
11391142
"mobile_app_testing_percentage",
11401143
"mobile_app_testing_usage",
11411144
"ndm_netflow_usage",

0 commit comments

Comments
 (0)